• 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/usrv/

Lines Matching refs:port

39 #define PORT2ADDR(port)	_port2addr(port)
41 static inline void *_port2addr(unsigned long port)
44 if (port >= UART0_IOSTART && port <= UART0_IOEND)
45 port = ((port - UART0_IOSTART) << 1) + UART0_REGSTART;
46 else if (port >= UART1_IOSTART && port <= UART1_IOEND)
47 port = ((port - UART1_IOSTART) << 1) + UART1_REGSTART;
49 return (void *)(port | (NONCACHE_OFFSET));
57 unsigned char _inb(unsigned long port)
59 if (port >= CFC_IOSTART && port <= CFC_IOEND) {
61 pcc_ioread_byte(0, port, &b, sizeof(b), 1, 0);
64 return *(volatile unsigned char *)PORT2ADDR(port);
67 unsigned short _inw(unsigned long port)
69 if (port >= CFC_IOSTART && port <= CFC_IOEND) {
71 pcc_ioread_word(0, port, &w, sizeof(w), 1, 0);
74 return *(volatile unsigned short *)PORT2ADDR(port);
77 unsigned long _inl(unsigned long port)
79 if (port >= CFC_IOSTART && port <= CFC_IOEND) {
81 pcc_ioread_word(0, port, &l, sizeof(l), 1, 0);
84 return *(volatile unsigned long *)PORT2ADDR(port);
87 unsigned char _inb_p(unsigned long port)
89 unsigned char v = _inb(port);
94 unsigned short _inw_p(unsigned long port)
96 unsigned short v = _inw(port);
101 unsigned long _inl_p(unsigned long port)
103 unsigned long v = _inl(port);
108 void _outb(unsigned char b, unsigned long port)
110 if (port >= CFC_IOSTART && port <= CFC_IOEND)
111 pcc_iowrite_byte(0, port, &b, sizeof(b), 1, 0);
113 *(volatile unsigned char *)PORT2ADDR(port) = b;
116 void _outw(unsigned short w, unsigned long port)
118 if (port >= CFC_IOSTART && port <= CFC_IOEND)
119 pcc_iowrite_word(0, port, &w, sizeof(w), 1, 0);
121 *(volatile unsigned short *)PORT2ADDR(port) = w;
124 void _outl(unsigned long l, unsigned long port)
126 if (port >= CFC_IOSTART && port <= CFC_IOEND)
127 pcc_iowrite_word(0, port, &l, sizeof(l), 1, 0);
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 >= CFC_IOSTART && port <= CFC_IOEND)
153 pcc_ioread_byte(0, port, addr, sizeof(unsigned char), count, 1);
156 unsigned char *portp = PORT2ADDR(port);
162 void _insw(unsigned int port, void * addr, unsigned long count)
167 if (port >= CFC_IOSTART && port <= CFC_IOEND)
168 pcc_ioread_word(0, port, addr, sizeof(unsigned short), count,
171 portp = PORT2ADDR(port);
177 void _insl(unsigned int port, void * addr, unsigned long count)
182 portp = PORT2ADDR(port);
187 void _outsb(unsigned int port, const void * addr, unsigned long count)
192 if (port >= CFC_IOSTART && port <= CFC_IOEND)
193 pcc_iowrite_byte(0, port, (void *)addr, sizeof(unsigned char),
196 portp = PORT2ADDR(port);
202 void _outsw(unsigned int port, const void * addr, unsigned long count)
207 if (port >= CFC_IOSTART && port <= CFC_IOEND)
208 pcc_iowrite_word(0, port, (void *)addr, sizeof(unsigned short),
211 portp = PORT2ADDR(port);
217 void _outsl(unsigned int port, const void * addr, unsigned long count)
222 portp = PORT2ADDR(port);