Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 115162
b: refs/heads/master
c: 121e598
h: refs/heads/master
v: v3
  • Loading branch information
Bryan Wu committed Oct 16, 2008
1 parent a820c48 commit 261aecd
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: deffc6edacb74f080ca5918ef9c2cd30c2c9686e
refs/heads/master: 121e598f5d5a9cc7e3bbd203a5c97afa1c46c521
30 changes: 30 additions & 0 deletions trunk/arch/blackfin/include/asm/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,36 @@ extern void dma_insb(unsigned long port, void *addr, unsigned short count);
extern void dma_insw(unsigned long port, void *addr, unsigned short count);
extern void dma_insl(unsigned long port, void *addr, unsigned short count);

static inline void readsl(const void __iomem *addr, void *buf, int len)
{
insl((unsigned long)addr, buf, len);
}

static inline void readsw(const void __iomem *addr, void *buf, int len)
{
insw((unsigned long)addr, buf, len);
}

static inline void readsb(const void __iomem *addr, void *buf, int len)
{
insb((unsigned long)addr, buf, len);
}

static inline void writesl(const void __iomem *addr, const void *buf, int len)
{
outsl((unsigned long)addr, buf, len);
}

static inline void writesw(const void __iomem *addr, const void *buf, int len)
{
outsw((unsigned long)addr, buf, len);
}

static inline void writesb(const void __iomem *addr, const void *buf, int len)
{
outsb((unsigned long)addr, buf, len);
}

/*
* Map some physical address range into the kernel address space.
*/
Expand Down

0 comments on commit 261aecd

Please sign in to comment.