static void delay1000(void) { int i; for (i=0; i<1000; i++) ctrl_delay(); }
void titan_outb_p(u8 value, unsigned long port) { if (PXSEG(port)) ctrl_outb(value, port); else ctrl_outw(value, port2adr(port)); ctrl_delay(); }
void snapgear_outb_p(unsigned char value, unsigned long port) { if (PXSEG(port)) *(volatile unsigned char *)port = value; else *(port2adr(port)) = value; ctrl_delay(); }
void landisk_outb_p(u8 value, unsigned long port) { if (PXSEG(port)) ctrl_outb(value, port); else if (is_pci_ioaddr(port)) ctrl_outb(value, pci_ioaddr(port)); else ctrl_outw(value, port2adr(port)); ctrl_delay(); }
void sh7751se_outb_p(unsigned char value, unsigned long port) { if (PXSEG(port)) *(volatile unsigned char *)port = value; else if (is_pci_ioaddr(port)) *((unsigned char*)pci_ioaddr(port)) = value; else *(port2adr(port)) = value; ctrl_delay(); }
void sh7751systemh_outb_p(unsigned char value, unsigned long port) { if (PXSEG(port)) *(volatile unsigned char *)port = value; else if (port <= 0x3F1) *(volatile unsigned char *)ETHER_IOMAP(port) = value; else *(port2adr(port)) = value; ctrl_delay(); }
u8 titan_inb_p(unsigned long port) { u8 v; if (PXSEG(port)) v = ctrl_inb(port); else v = ctrl_inw(port2adr(port)) & 0xff; ctrl_delay(); return v; }
unsigned char snapgear_inb_p(unsigned long port) { unsigned char v; if (PXSEG(port)) v = *(volatile unsigned char *)port; else v = (*port2adr(port))&0xff; ctrl_delay(); return v; }
void hs7751rvoip_outb_p(unsigned char value, unsigned long port) { if (PXSEG(port)) ctrl_outb(value, port); else if (codec_port(port)) ctrl_outb(value, CODEC_IOMAP(port)); else if (is_pci_ioaddr(port) || shifted_port(port)) ctrl_outb(value, pci_ioaddr(port)); else ctrl_outw(value, port2adr(port)); ctrl_delay(); }
unsigned char sh7751se_inb_p(unsigned long port) { unsigned char v; if (PXSEG(port)) v = *(volatile unsigned char *)port; else if (is_pci_ioaddr(port)) v = *(volatile unsigned char *)pci_ioaddr(port); else v = (*port2adr(port)) & 0xff; ctrl_delay(); return v; }
void rts7751r2d_outb_p(unsigned char value, unsigned long port) { if (CHECK_AX88796L_PORT(port)) *((volatile unsigned short *)port88796l(port, 0)) = value; else if (PXSEG(port)) *(volatile unsigned char *)port = value; else if (is_pci_ioaddr(port) || shifted_port(port)) *(volatile unsigned char *)pci_ioaddr(port) = value; else *(volatile unsigned short *)port2adr(port) = value; ctrl_delay(); }
unsigned char sh7751systemh_inb_p(unsigned long port) { unsigned char v; if (PXSEG(port)) v = *(volatile unsigned char *)port; else if (port <= 0x3F1) v = *(volatile unsigned char *)ETHER_IOMAP(port); else v = (*port2adr(port))&0xff; ctrl_delay(); return v; }
u8 landisk_inb_p(unsigned long port) { u8 v; if (PXSEG(port)) v = ctrl_inb(port); else if (is_pci_ioaddr(port)) v = ctrl_inb(pci_ioaddr(port)); else v = ctrl_inw(port2adr(port)) & 0xff; ctrl_delay(); return v; }
unsigned char hs7751rvoip_inb_p(unsigned long port) { unsigned char v; if (PXSEG(port)) v = ctrl_inb(port); else if (codec_port(port)) v = ctrl_inb(CODEC_IOMAP(port)); else if (is_pci_ioaddr(port) || shifted_port(port)) v = ctrl_inb(pci_ioaddr(port)); else v = ctrl_inw(port2adr(port)) & 0xff; ctrl_delay(); return v; }
unsigned char rts7751r2d_inb_p(unsigned long port) { unsigned char v; if (CHECK_AX88796L_PORT(port)) v = (*(volatile unsigned short *)port88796l(port, 0)) & 0xff; else if (PXSEG(port)) v = *(volatile unsigned char *)port; else if (is_pci_ioaddr(port) || shifted_port(port)) v = *(volatile unsigned char *)pci_ioaddr(port); else v = (*(volatile unsigned short *)port2adr(port) & 0xff); ctrl_delay(); return v; }