• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/sh/boards/titan/

Lines Matching defs:port

10 static inline unsigned int port2adr(unsigned int port)
12 maybebadio((unsigned long)port);
13 return port;
16 u8 titan_inb(unsigned long port)
18 if (PXSEG(port))
19 return ctrl_inb(port);
20 else if (is_pci_ioaddr(port))
21 return ctrl_inb(pci_ioaddr(port));
22 return ctrl_inw(port2adr(port)) & 0xff;
25 u8 titan_inb_p(unsigned long port)
29 if (PXSEG(port))
30 v = ctrl_inb(port);
31 else if (is_pci_ioaddr(port))
32 v = ctrl_inb(pci_ioaddr(port));
34 v = ctrl_inw(port2adr(port)) & 0xff;
39 u16 titan_inw(unsigned long port)
41 if (PXSEG(port))
42 return ctrl_inw(port);
43 else if (is_pci_ioaddr(port))
44 return ctrl_inw(pci_ioaddr(port));
45 else if (port >= 0x2000)
46 return ctrl_inw(port2adr(port));
48 maybebadio(port);
52 u32 titan_inl(unsigned long port)
54 if (PXSEG(port))
55 return ctrl_inl(port);
56 else if (is_pci_ioaddr(port))
57 return ctrl_inl(pci_ioaddr(port));
58 else if (port >= 0x2000)
59 return ctrl_inw(port2adr(port));
61 maybebadio(port);
65 void titan_outb(u8 value, unsigned long port)
67 if (PXSEG(port))
68 ctrl_outb(value, port);
69 else if (is_pci_ioaddr(port))
70 ctrl_outb(value, pci_ioaddr(port));
72 ctrl_outw(value, port2adr(port));
75 void titan_outb_p(u8 value, unsigned long port)
77 if (PXSEG(port))
78 ctrl_outb(value, port);
79 else if (is_pci_ioaddr(port))
80 ctrl_outb(value, pci_ioaddr(port));
82 ctrl_outw(value, port2adr(port));
86 void titan_outw(u16 value, unsigned long port)
88 if (PXSEG(port))
89 ctrl_outw(value, port);
90 else if (is_pci_ioaddr(port))
91 ctrl_outw(value, pci_ioaddr(port));
92 else if (port >= 0x2000)
93 ctrl_outw(value, port2adr(port));
95 maybebadio(port);
98 void titan_outl(u32 value, unsigned long port)
100 if (PXSEG(port))
101 ctrl_outl(value, port);
102 else if (is_pci_ioaddr(port))
103 ctrl_outl(value, pci_ioaddr(port));
105 maybebadio(port);
108 void titan_insl(unsigned long port, void *dst, unsigned long count)
110 maybebadio(port);
113 void titan_outsl(unsigned long port, const void *src, unsigned long count)
115 maybebadio(port);
118 void __iomem *titan_ioport_map(unsigned long port, unsigned int size)
120 if (PXSEG(port) || is_pci_memaddr(port))
121 return (void __iomem *)port;
122 else if (is_pci_ioaddr(port))
123 return (void __iomem *)pci_ioaddr(port);
125 return (void __iomem *)port2adr(port);