taglinefilesource code
PORT108drivers/net/ni65.c#define writereg(val,reg) {outw(reg,PORT+L_ADDRREG);inw(PORT+L_ADDRREG); \
PORT109drivers/net/ni65.coutw(val,PORT+L_DATAREG);inw(PORT+L_DATAREG);}
PORT110drivers/net/ni65.c#define readreg(reg) (outw(reg,PORT+L_ADDRREG),inw(PORT+L_ADDRREG),\
PORT111drivers/net/ni65.cinw(PORT+L_DATAREG))
PORT112drivers/net/ni65.c#define writedatareg(val) {outw(val,PORT+L_DATAREG);inw(PORT+L_DATAREG);}
PORT167drivers/net/ni65.coutw(0,PORT+L_RESET); /* that's the hard way */
PORT213drivers/net/ni65.cstation_addr[i] = dev->dev_addr[i] = inb(PORT+L_EBASE+i);
PORT222drivers/net/ni65.cdev->irq = irqtab[(inw(PORT+L_CONFIG)>>2)&3];
PORT224drivers/net/ni65.cdev->dma = dmatab[inw(PORT+L_CONFIG)&3];
PORT321drivers/net/ni65.coutw(0,PORT+L_RESET); /* first: reset the card */
PORT322drivers/net/ni65.cif(inw(PORT+L_DATAREG) != 0x4)
PORT324drivers/net/ni65.cprintk("%s: can't RESET ni6510 card: %04x\n",dev->name,(int) inw(PORT+L_DATAREG));
PORT380drivers/net/ni65.cif(inw(PORT+L_DATAREG) & CSR0_IDON) break; /* init ok ? */
PORT384drivers/net/ni65.cprintk("%s: can't init am7990, status: %04x\n",dev->name,(int) inw(PORT+L_DATAREG));
PORT410drivers/net/ni65.ccsr0 = inw(PORT+L_DATAREG);
PORT524drivers/net/ni65.cprintk("%s: lance-status: %04x\n",dev->name,(int) inw(PORT+L_DATAREG));
PORT313drivers/scsi/aha152x.h#define SETPORT(PORT, VAL)  \
PORT314drivers/scsi/aha152x.houtb( (VAL), (PORT) )
PORT316drivers/scsi/aha152x.h#define SETPORTP(PORT, VAL)  \
PORT317drivers/scsi/aha152x.houtb_p( (VAL), (PORT) )
PORT319drivers/scsi/aha152x.h#define SETPORTW(PORT, VAL)  \
PORT320drivers/scsi/aha152x.houtw( (VAL), (PORT) )
PORT322drivers/scsi/aha152x.h#define GETPORT(PORT)  \
PORT323drivers/scsi/aha152x.hinb( PORT )
PORT325drivers/scsi/aha152x.h#define GETPORTW(PORT)  \
PORT326drivers/scsi/aha152x.hinw( PORT )
PORT328drivers/scsi/aha152x.h#define SETBITS(PORT, BITS)  \
PORT329drivers/scsi/aha152x.houtb( (inb(PORT) | (BITS)), (PORT) )
PORT331drivers/scsi/aha152x.h#define CLRBITS(PORT, BITS)  \
PORT332drivers/scsi/aha152x.houtb( (inb(PORT) & ~(BITS)), (PORT) )
PORT334drivers/scsi/aha152x.h#define CLRSETBITS(PORT, CLR, SET)  \
PORT335drivers/scsi/aha152x.houtb( (inb(PORT) & ~(CLR)) | (SET) , (PORT) )
PORT337drivers/scsi/aha152x.h#define TESTHI(PORT, BITS)  \
PORT338drivers/scsi/aha152x.h((inb(PORT) & (BITS)) == BITS)
PORT340drivers/scsi/aha152x.h#define TESTLO(PORT, BITS)  \
PORT341drivers/scsi/aha152x.h((inb(PORT) & (BITS)) == 0)
PORT125drivers/sound/sscape.cOUTB (reg, PORT (ODIE_ADDR));
PORT126drivers/sound/sscape.cval = INB (PORT (ODIE_DATA));
PORT137drivers/sound/sscape.cOUTB (reg, PORT (ODIE_ADDR));
PORT138drivers/sound/sscape.cOUTB (data, PORT (ODIE_DATA));
PORT145drivers/sound/sscape.cOUTB (0x00, PORT (HOST_CTRL));  /* Put the board to the host mode */
PORT151drivers/sound/sscape.cOUTB (0x03, PORT (HOST_CTRL));  /* Put the board to the MIDI mode */
PORT169drivers/sound/sscape.cif (INB (PORT (HOST_CTRL)) & TX_READY)
PORT178drivers/sound/sscape.cOUTB (data[i], PORT (HOST_DATA));
PORT201drivers/sound/sscape.cif (INB (PORT (HOST_CTRL)) & RX_READY)
PORT210drivers/sound/sscape.cdata = INB (PORT (HOST_DATA));
PORT512drivers/sound/sscape.cOUTB (0x00, PORT (HOST_CTRL));
PORT513drivers/sound/sscape.cOUTB (0x00, PORT (MIDI_CTRL));
PORT529drivers/sound/sscape.cif (INB (PORT (HOST_DATA)) == 0xff)  /* OBP startup acknowledge */
PORT545drivers/sound/sscape.cif (INB (PORT (HOST_DATA)) == 0xfe)  /* Host startup acknowledge */
PORT981drivers/sound/sscape.cif ((save = INB (PORT (ODIE_ADDR))) & 0xf0)
PORT984drivers/sound/sscape.cOUTB (0x00, PORT (ODIE_ADDR));
PORT985drivers/sound/sscape.cif (INB (PORT (ODIE_ADDR)) != 0x00)
PORT988drivers/sound/sscape.cOUTB (0xff, PORT (ODIE_ADDR));
PORT989drivers/sound/sscape.cif (INB (PORT (ODIE_ADDR)) != 0x0f)
PORT992drivers/sound/sscape.cOUTB (save, PORT (ODIE_ADDR));