• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/m32r/platforms/oaks32r/

Lines Matching refs:port

14 #define PORT2ADDR(port)  _port2addr(port)
16 static inline void *_port2addr(unsigned long port)
18 return (void *)(port | NONCACHE_OFFSET);
21 static inline void *_port2addr_ne(unsigned long port)
23 return (void *)((port<<1) + NONCACHE_OFFSET + 0x02000000);
35 #define PORT2ADDR_NE(port) _port2addr_ne(port)
69 unsigned char _inb(unsigned long port)
71 if (port >= 0x300 && port < 0x320)
72 return _ne_inb(PORT2ADDR_NE(port));
74 return *(volatile unsigned char *)PORT2ADDR(port);
77 unsigned short _inw(unsigned long port)
79 if (port >= 0x300 && port < 0x320)
80 return _ne_inw(PORT2ADDR_NE(port));
82 return *(volatile unsigned short *)PORT2ADDR(port);
85 unsigned long _inl(unsigned long port)
87 return *(volatile unsigned long *)PORT2ADDR(port);
90 unsigned char _inb_p(unsigned long port)
92 unsigned char v = _inb(port);
97 unsigned short _inw_p(unsigned long port)
99 unsigned short v = _inw(port);
104 unsigned long _inl_p(unsigned long port)
106 unsigned long v = _inl(port);
111 void _outb(unsigned char b, unsigned long port)
113 if (port >= 0x300 && port < 0x320)
114 _ne_outb(b, PORT2ADDR_NE(port));
116 *(volatile unsigned char *)PORT2ADDR(port) = b;
119 void _outw(unsigned short w, unsigned long port)
121 if (port >= 0x300 && port < 0x320)
122 _ne_outw(w, PORT2ADDR_NE(port));
124 *(volatile unsigned short *)PORT2ADDR(port) = w;
127 void _outl(unsigned long l, unsigned long port)
129 *(volatile unsigned long *)PORT2ADDR(port) = l;
132 void _outb_p(unsigned char b, unsigned long port)
134 _outb(b, port);
138 void _outw_p(unsigned short w, unsigned long port)
140 _outw(w, port);
144 void _outl_p(unsigned long l, unsigned long port)
146 _outl(l, port);
150 void _insb(unsigned int port, void *addr, unsigned long count)
152 if (port >= 0x300 && port < 0x320)
153 _ne_insb(PORT2ADDR_NE(port), addr, count);
156 unsigned char *portp = PORT2ADDR(port);
162 void _insw(unsigned int port, void *addr, unsigned long count)
167 if (port >= 0x300 && port < 0x320) {
168 portp = PORT2ADDR_NE(port);
172 portp = PORT2ADDR(port);
178 void _insl(unsigned int port, void *addr, unsigned long count)
183 portp = PORT2ADDR(port);
188 void _outsb(unsigned int port, const void *addr, unsigned long count)
193 if (port >= 0x300 && port < 0x320) {
194 portp = PORT2ADDR_NE(port);
198 portp = PORT2ADDR(port);
204 void _outsw(unsigned int port, const void *addr, unsigned long count)
209 if (port >= 0x300 && port < 0x320) {
210 portp = PORT2ADDR_NE(port);
214 portp = PORT2ADDR(port);
220 void _outsl(unsigned int port, const void *addr, unsigned long count)
225 portp = PORT2ADDR(port);