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

Lines Matching defs:port

19 port2adr(unsigned int port)
21 if (port >= 0x2000)
22 return (volatile __u16 *) (PA_MRSHPC + (port - 0x2000));
23 maybebadio((unsigned long)port);
24 return (volatile __u16*)port;
34 unsigned char sh7751systemh_inb(unsigned long port)
36 if (PXSEG(port))
37 return *(volatile unsigned char *)port;
38 else if (is_pci_ioaddr(port))
39 return *(volatile unsigned char *)pci_ioaddr(port);
40 else if (port <= 0x3F1)
41 return *(volatile unsigned char *)ETHER_IOMAP(port);
43 return (*port2adr(port))&0xff;
46 unsigned char sh7751systemh_inb_p(unsigned long port)
50 if (PXSEG(port))
51 v = *(volatile unsigned char *)port;
52 else if (is_pci_ioaddr(port))
53 v = *(volatile unsigned char *)pci_ioaddr(port);
54 else if (port <= 0x3F1)
55 v = *(volatile unsigned char *)ETHER_IOMAP(port);
57 v = (*port2adr(port))&0xff;
62 unsigned short sh7751systemh_inw(unsigned long port)
64 if (PXSEG(port))
65 return *(volatile unsigned short *)port;
66 else if (is_pci_ioaddr(port))
67 return *(volatile unsigned short *)pci_ioaddr(port);
68 else if (port >= 0x2000)
69 return *port2adr(port);
70 else if (port <= 0x3F1)
71 return *(volatile unsigned int *)ETHER_IOMAP(port);
73 maybebadio(port);
77 unsigned int sh7751systemh_inl(unsigned long port)
79 if (PXSEG(port))
80 return *(volatile unsigned long *)port;
81 else if (is_pci_ioaddr(port))
82 return *(volatile unsigned int *)pci_ioaddr(port);
83 else if (port >= 0x2000)
84 return *port2adr(port);
85 else if (port <= 0x3F1)
86 return *(volatile unsigned int *)ETHER_IOMAP(port);
88 maybebadio(port);
92 void sh7751systemh_outb(unsigned char value, unsigned long port)
95 if (PXSEG(port))
96 *(volatile unsigned char *)port = value;
97 else if (is_pci_ioaddr(port))
98 *((unsigned char*)pci_ioaddr(port)) = value;
99 else if (port <= 0x3F1)
100 *(volatile unsigned char *)ETHER_IOMAP(port) = value;
102 *(port2adr(port)) = value;
105 void sh7751systemh_outb_p(unsigned char value, unsigned long port)
107 if (PXSEG(port))
108 *(volatile unsigned char *)port = value;
109 else if (is_pci_ioaddr(port))
110 *((unsigned char*)pci_ioaddr(port)) = value;
111 else if (port <= 0x3F1)
112 *(volatile unsigned char *)ETHER_IOMAP(port) = value;
114 *(port2adr(port)) = value;
118 void sh7751systemh_outw(unsigned short value, unsigned long port)
120 if (PXSEG(port))
121 *(volatile unsigned short *)port = value;
122 else if (is_pci_ioaddr(port))
123 *((unsigned short *)pci_ioaddr(port)) = value;
124 else if (port >= 0x2000)
125 *port2adr(port) = value;
126 else if (port <= 0x3F1)
127 *(volatile unsigned short *)ETHER_IOMAP(port) = value;
129 maybebadio(port);
132 void sh7751systemh_outl(unsigned int value, unsigned long port)
134 if (PXSEG(port))
135 *(volatile unsigned long *)port = value;
136 else if (is_pci_ioaddr(port))
137 *((unsigned long*)pci_ioaddr(port)) = value;
139 maybebadio(port);
142 void sh7751systemh_insb(unsigned long port, void *addr, unsigned long count)
145 while (count--) *p++ = sh7751systemh_inb(port);
148 void sh7751systemh_insw(unsigned long port, void *addr, unsigned long count)
151 while (count--) *p++ = sh7751systemh_inw(port);
154 void sh7751systemh_insl(unsigned long port, void *addr, unsigned long count)
156 maybebadio(port);
159 void sh7751systemh_outsb(unsigned long port, const void *addr, unsigned long count)
162 while (count--) sh7751systemh_outb(*p++, port);
165 void sh7751systemh_outsw(unsigned long port, const void *addr, unsigned long count)
168 while (count--) sh7751systemh_outw(*p++, port);
171 void sh7751systemh_outsl(unsigned long port, const void *addr, unsigned long count)
173 maybebadio(port);