void sh7300se_outsw(unsigned long port, const void *addr, unsigned long count) { unsigned short *a = (unsigned short *) addr; struct iop *p = port2iop(port); while (count--) (p->outw) (p, *a++, port); }
void sh73180se_outsb(unsigned long port, const void *addr, unsigned long count) { unsigned char *a = (unsigned char *) addr; struct iop *p = port2iop(port); while (count--) (p->outb) (p, *a++, port); }
void sh7300se_insw(unsigned long port, void *addr, unsigned long count) { unsigned short *a = addr; struct iop *p = port2iop(port); while (count--) *a++ = (p->inw) (p, port); }
void sh73180se_insb(unsigned long port, void *addr, unsigned long count) { unsigned char *a = addr; struct iop *p = port2iop(port); while (count--) *a++ = (p->inb) (p, port); }
void sh7300se_outw(unsigned short value, unsigned long port) { struct iop *p = port2iop(port); (p->outw) (p, value, port); }
void sh7300se_outb(unsigned char value, unsigned long port) { struct iop *p = port2iop(port); (p->outb) (p, value, port); }
unsigned short sh7300se_inw(unsigned long port) { struct iop *p = port2iop(port); return (p->inw) (p, port); }
unsigned char sh7300se_inb(unsigned long port) { struct iop *p = port2iop(port); return (p->inb) (p, port); }