taglinefilesource code
PORT109drivers/net/ni65.c#define writereg(val,reg) {outw(reg,PORT+L_ADDRREG);inw(PORT+L_ADDRREG); \
PORT110drivers/net/ni65.coutw(val,PORT+L_DATAREG);inw(PORT+L_DATAREG);}
PORT111drivers/net/ni65.c#define readreg(reg) (outw(reg,PORT+L_ADDRREG),inw(PORT+L_ADDRREG),\
PORT112drivers/net/ni65.cinw(PORT+L_DATAREG))
PORT113drivers/net/ni65.c#define writedatareg(val) {outw(val,PORT+L_DATAREG);inw(PORT+L_DATAREG);}
PORT168drivers/net/ni65.coutw(0,PORT+L_RESET); /* that's the hard way */
PORT214drivers/net/ni65.cstation_addr[i] = dev->dev_addr[i] = inb(PORT+L_EBASE+i);
PORT223drivers/net/ni65.cdev->irq = irqtab[(inw(PORT+L_CONFIG)>>2)&3];
PORT225drivers/net/ni65.cdev->dma = dmatab[inw(PORT+L_CONFIG)&3];
PORT322drivers/net/ni65.coutw(0,PORT+L_RESET); /* first: reset the card */
PORT323drivers/net/ni65.cif(inw(PORT+L_DATAREG) != 0x4)
PORT325drivers/net/ni65.cprintk("%s: can't RESET ni6510 card: %04x\n",dev->name,(int) inw(PORT+L_DATAREG));
PORT381drivers/net/ni65.cif(inw(PORT+L_DATAREG) & CSR0_IDON) break; /* init ok ? */
PORT385drivers/net/ni65.cprintk("%s: can't init am7990, status: %04x\n",dev->name,(int) inw(PORT+L_DATAREG));
PORT412drivers/net/ni65.ccsr0 = inw(PORT+L_DATAREG);
PORT526drivers/net/ni65.cprintk("%s: lance-status: %04x\n",dev->name,(int) inw(PORT+L_DATAREG));
PORT309drivers/scsi/aha152x.h#define SETPORT(PORT, VAL)  \
PORT310drivers/scsi/aha152x.houtb( (VAL), (PORT) )
PORT312drivers/scsi/aha152x.h#define SETPORTP(PORT, VAL)  \
PORT313drivers/scsi/aha152x.houtb_p( (VAL), (PORT) )
PORT315drivers/scsi/aha152x.h#define SETPORTW(PORT, VAL)  \
PORT316drivers/scsi/aha152x.houtw( (VAL), (PORT) )
PORT318drivers/scsi/aha152x.h#define GETPORT(PORT)  \
PORT319drivers/scsi/aha152x.hinb( PORT )
PORT321drivers/scsi/aha152x.h#define GETPORTW(PORT)  \
PORT322drivers/scsi/aha152x.hinw( PORT )
PORT324drivers/scsi/aha152x.h#define SETBITS(PORT, BITS)  \
PORT325drivers/scsi/aha152x.houtb( (inb(PORT) | (BITS)), (PORT) )
PORT327drivers/scsi/aha152x.h#define CLRBITS(PORT, BITS)  \
PORT328drivers/scsi/aha152x.houtb( (inb(PORT) & ~(BITS)), (PORT) )
PORT330drivers/scsi/aha152x.h#define CLRSETBITS(PORT, CLR, SET)  \
PORT331drivers/scsi/aha152x.houtb( (inb(PORT) & ~(CLR)) | (SET) , (PORT) )
PORT333drivers/scsi/aha152x.h#define TESTHI(PORT, BITS)  \
PORT334drivers/scsi/aha152x.h((inb(PORT) & (BITS)) == BITS)
PORT336drivers/scsi/aha152x.h#define TESTLO(PORT, BITS)  \
PORT337drivers/scsi/aha152x.h((inb(PORT) & (BITS)) == 0)