1#ifndef __GENERIC_IO_H
2#define __GENERIC_IO_H
3
4#include <linux/linkage.h>
5#include <asm/byteorder.h>
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28extern unsigned int fastcall ioread8(void __iomem *);
29extern unsigned int fastcall ioread16(void __iomem *);
30extern unsigned int fastcall ioread16be(void __iomem *);
31extern unsigned int fastcall ioread32(void __iomem *);
32extern unsigned int fastcall ioread32be(void __iomem *);
33
34extern void fastcall iowrite8(u8, void __iomem *);
35extern void fastcall iowrite16(u16, void __iomem *);
36extern void fastcall iowrite16be(u16, void __iomem *);
37extern void fastcall iowrite32(u32, void __iomem *);
38extern void fastcall iowrite32be(u32, void __iomem *);
39
40
41
42
43
44
45
46
47
48
49
50
51extern void fastcall ioread8_rep(void __iomem *port, void *buf, unsigned long count);
52extern void fastcall ioread16_rep(void __iomem *port, void *buf, unsigned long count);
53extern void fastcall ioread32_rep(void __iomem *port, void *buf, unsigned long count);
54
55extern void fastcall iowrite8_rep(void __iomem *port, const void *buf, unsigned long count);
56extern void fastcall iowrite16_rep(void __iomem *port, const void *buf, unsigned long count);
57extern void fastcall iowrite32_rep(void __iomem *port, const void *buf, unsigned long count);
58
59
60extern void __iomem *ioport_map(unsigned long port, unsigned int nr);
61extern void ioport_unmap(void __iomem *);
62
63
64struct pci_dev;
65extern void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long max);
66extern void pci_iounmap(struct pci_dev *dev, void __iomem *);
67
68#endif
69