Lines Matching defs:port
20 static unsigned long sh_edosk7705_isa_port2addr(unsigned long port)
26 if (port >= 0x300 && port < 0x320)
27 return SMC_IOADDR + ((port - 0x300) * 2);
29 maybebadio(port);
30 return port;
39 unsigned char sh_edosk7705_inb(unsigned long port)
41 if (port >= 0x300 && port < 0x320 && port & 0x01)
42 return __raw_readw(port - 1) >> 8;
44 return __raw_readb(sh_edosk7705_isa_port2addr(port));
47 void sh_edosk7705_outb(unsigned char value, unsigned long port)
49 if (port >= 0x300 && port < 0x320 && port & 0x01) {
50 __raw_writew(((unsigned short)value << 8), port - 1);
54 __raw_writeb(value, sh_edosk7705_isa_port2addr(port));
57 void sh_edosk7705_insb(unsigned long port, void *addr, unsigned long count)
62 *p++ = sh_edosk7705_inb(port);
65 void sh_edosk7705_outsb(unsigned long port, const void *addr, unsigned long count)
70 sh_edosk7705_outb(*p++, port);