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

Lines Matching defs:port

18 static inline volatile u16 *port2adr(unsigned int port)
20 if (port >= 0x2000)
21 return (volatile __u16 *) (PA_MRSHPC + (port - 0x2000));
22 maybebadio((unsigned long)port);
23 return (volatile __u16*)port;
33 unsigned char sh7751se_inb(unsigned long port)
35 if (PXSEG(port))
36 return *(volatile unsigned char *)port;
38 return (*port2adr(port)) & 0xff;
41 unsigned char sh7751se_inb_p(unsigned long port)
45 if (PXSEG(port))
46 v = *(volatile unsigned char *)port;
48 v = (*port2adr(port)) & 0xff;
53 unsigned short sh7751se_inw(unsigned long port)
55 if (PXSEG(port))
56 return *(volatile unsigned short *)port;
57 else if (port >= 0x2000)
58 return *port2adr(port);
60 maybebadio(port);
64 unsigned int sh7751se_inl(unsigned long port)
66 if (PXSEG(port))
67 return *(volatile unsigned long *)port;
68 else if (port >= 0x2000)
69 return *port2adr(port);
71 maybebadio(port);
75 void sh7751se_outb(unsigned char value, unsigned long port)
78 if (PXSEG(port))
79 *(volatile unsigned char *)port = value;
81 *(port2adr(port)) = value;
84 void sh7751se_outb_p(unsigned char value, unsigned long port)
86 if (PXSEG(port))
87 *(volatile unsigned char *)port = value;
89 *(port2adr(port)) = value;
93 void sh7751se_outw(unsigned short value, unsigned long port)
95 if (PXSEG(port))
96 *(volatile unsigned short *)port = value;
97 else if (port >= 0x2000)
98 *port2adr(port) = value;
100 maybebadio(port);
103 void sh7751se_outl(unsigned int value, unsigned long port)
105 if (PXSEG(port))
106 *(volatile unsigned long *)port = value;
108 maybebadio(port);
111 void sh7751se_insl(unsigned long port, void *addr, unsigned long count)
113 maybebadio(port);
116 void sh7751se_outsl(unsigned long port, const void *addr, unsigned long count)
118 maybebadio(port);