• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/sh/boards/mach-se/770x/

Lines Matching refs:port

16 port2adr(unsigned int port)
18 if (port & 0xff000000)
19 return ( volatile __u16 *) port;
20 if (port >= 0x2000)
21 return (volatile __u16 *) (PA_MRSHPC + (port - 0x2000));
22 else if (port >= 0x1000)
23 return (volatile __u16 *) (PA_83902 + (port << 1));
25 return (volatile __u16 *) (PA_SUPERIO + (port << 1));
29 shifted_port(unsigned long port)
32 if ((0x1f0 <= port && port < 0x1f8) || port == 0x3f6)
38 unsigned char se_inb(unsigned long port)
40 if (shifted_port(port))
41 return (*port2adr(port) >> 8);
43 return (*port2adr(port))&0xff;
46 unsigned char se_inb_p(unsigned long port)
50 if (shifted_port(port))
51 v = (*port2adr(port) >> 8);
53 v = (*port2adr(port))&0xff;
58 unsigned short se_inw(unsigned long port)
60 if (port >= 0x2000)
61 return *port2adr(port);
63 maybebadio(port);
67 unsigned int se_inl(unsigned long port)
69 maybebadio(port);
73 void se_outb(unsigned char value, unsigned long port)
75 if (shifted_port(port))
76 *(port2adr(port)) = value << 8;
78 *(port2adr(port)) = value;
81 void se_outb_p(unsigned char value, unsigned long port)
83 if (shifted_port(port))
84 *(port2adr(port)) = value << 8;
86 *(port2adr(port)) = value;
90 void se_outw(unsigned short value, unsigned long port)
92 if (port >= 0x2000)
93 *port2adr(port) = value;
95 maybebadio(port);
98 void se_outl(unsigned int value, unsigned long port)
100 maybebadio(port);
103 void se_insb(unsigned long port, void *addr, unsigned long count)
105 volatile __u16 *p = port2adr(port);
108 if (shifted_port(port)) {
117 void se_insw(unsigned long port, void *addr, unsigned long count)
119 volatile __u16 *p = port2adr(port);
125 void se_insl(unsigned long port, void *addr, unsigned long count)
127 maybebadio(port);
130 void se_outsb(unsigned long port, const void *addr, unsigned long count)
132 volatile __u16 *p = port2adr(port);
135 if (shifted_port(port)) {
144 void se_outsw(unsigned long port, const void *addr, unsigned long count)
146 volatile __u16 *p = port2adr(port);
153 void se_outsl(unsigned long port, const void *addr, unsigned long count)
155 maybebadio(port);