Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 47637
b: refs/heads/master
c: fdba0f2
h: refs/heads/master
i:
  47635: 190a536
v: v3
  • Loading branch information
Al Viro authored and Linus Torvalds committed Feb 11, 2007
1 parent 7390192 commit d884a75
Show file tree
Hide file tree
Showing 2 changed files with 30 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: 23db764d3db5a4bb1e104ad9310e5dc18e4ffa1b
refs/heads/master: fdba0f2da4b1db682b829b76302b2f25c376051c
29 changes: 29 additions & 0 deletions trunk/include/asm-sparc/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,35 @@ extern void iounmap(volatile void __iomem *addr);
#define iowrite16(val,X) writew(val,X)
#define iowrite32(val,X) writel(val,X)

static inline void ioread8_rep(void __iomem *port, void *buf, unsigned long count)
{
insb((unsigned long __force)port, buf, count);
}
static inline void ioread16_rep(void __iomem *port, void *buf, unsigned long count)
{
insw((unsigned long __force)port, buf, count);
}

static inline void ioread32_rep(void __iomem *port, void *buf, unsigned long count)
{
insl((unsigned long __force)port, buf, count);
}

static inline void iowrite8_rep(void __iomem *port, const void *buf, unsigned long count)
{
outsb((unsigned long __force)port, buf, count);
}

static inline void iowrite16_rep(void __iomem *port, const void *buf, unsigned long count)
{
outsw((unsigned long __force)port, buf, count);
}

static inline void iowrite32_rep(void __iomem *port, const void *buf, unsigned long count)
{
outsl((unsigned long __force)port, buf, count);
}

/* Create a virtual mapping cookie for an IO port range */
extern void __iomem *ioport_map(unsigned long port, unsigned int nr);
extern void ioport_unmap(void __iomem *);
Expand Down

0 comments on commit d884a75

Please sign in to comment.