taglinefilesource code
iobase200drivers/net/3c509.cunsigned short iobase = id_read_eeprom(8);
iobase201drivers/net/3c509.cif_port = iobase >> 14;
iobase202drivers/net/3c509.cioaddr = 0x200 + ((iobase & 0x1f) << 4);
iobase299drivers/net/ewrk3.cstatic int  ewrk3_hw_init(struct device *dev, short iobase);
iobase305drivers/net/ewrk3.cstatic int  DevicePresent(short iobase);
iobase308drivers/net/ewrk3.cstatic int  Read_EEPROM(short iobase, unsigned char eaddr);
iobase309drivers/net/ewrk3.cstatic int  Write_EEPROM(short data, short iobase, unsigned char eaddr);
iobase315drivers/net/ewrk3.cstatic struct device *alloc_device(struct device *dev, int iobase);
iobase382drivers/net/ewrk3.cewrk3_hw_init(struct device *dev, short iobase)
iobase395drivers/net/ewrk3.cif (iobase > 0x400) eisa_cr = inb(EISA_CR);
iobase416drivers/net/ewrk3.ctmp.val = (short)Read_EEPROM(iobase, (i>>1));
iobase433drivers/net/ewrk3.cdev->base_addr = iobase;
iobase435drivers/net/ewrk3.cif (iobase > 0x400) {
iobase444drivers/net/ewrk3.cprintk("%s: %s at %#3x", dev->name, name, iobase);
iobase446drivers/net/ewrk3.c} else if ((iobase&0x0fff)==EWRK3_EISA_IO_PORTS) {
iobase449drivers/net/ewrk3.cdev->name, name, iobase, ((iobase>>12)&0x0f));
iobase451drivers/net/ewrk3.cprintk("%s: %s at %#3x", dev->name, name, iobase);
iobase465drivers/net/ewrk3.cDevicePresent(iobase);          /* needed after the EWRK3_INIT */
iobase636drivers/net/ewrk3.cint i, iobase = dev->base_addr;
iobase714drivers/net/ewrk3.cshort iobase = dev->base_addr;
iobase748drivers/net/ewrk3.cint iobase = dev->base_addr;
iobase899drivers/net/ewrk3.cint iobase;
iobase906drivers/net/ewrk3.ciobase = dev->base_addr;
iobase963drivers/net/ewrk3.cint i, iobase = dev->base_addr;
iobase1106drivers/net/ewrk3.cint iobase = dev->base_addr;
iobase1141drivers/net/ewrk3.cint iobase = dev->base_addr;
iobase1203drivers/net/ewrk3.cint iobase = dev->base_addr;
iobase1238drivers/net/ewrk3.cint iobase = dev->base_addr;
iobase1319drivers/net/ewrk3.cint i, iobase, status;
iobase1322drivers/net/ewrk3.cfor (status = -ENODEV, iobase = EWRK3_IO_BASE,i = 0; 
iobase1324drivers/net/ewrk3.ciobase += EWRK3_IOP_INC, i++) {
iobase1326drivers/net/ewrk3.cif (DevicePresent(iobase) == 0) {
iobase1332drivers/net/ewrk3.cdev = alloc_device(dev, iobase);
iobase1334drivers/net/ewrk3.cif ((status = ewrk3_hw_init(dev, iobase)) == 0) {
iobase1340drivers/net/ewrk3.cmem_chkd &= ~(0x01 << ((iobase - EWRK3_IO_BASE)/EWRK3_IOP_INC));
iobase1355drivers/net/ewrk3.cint i, iobase = EWRK3_EISA_IO_PORTS;
iobase1358drivers/net/ewrk3.ciobase+=EISA_SLOT_INC;            /* get the first slot address */
iobase1359drivers/net/ewrk3.cfor (status = -ENODEV, i=1; i<MAX_EISA_SLOTS; i++, iobase+=EISA_SLOT_INC) {
iobase1361drivers/net/ewrk3.cif (DevicePresent(iobase) == 0) {
iobase1368drivers/net/ewrk3.cdev = alloc_device(dev, iobase);
iobase1370drivers/net/ewrk3.cif ((status = ewrk3_hw_init(dev, iobase)) == 0) {
iobase1384drivers/net/ewrk3.cstatic struct device *alloc_device(struct device *dev, int iobase)
iobase1418drivers/net/ewrk3.cdev->base_addr = iobase;            /* assign the io address */
iobase1431drivers/net/ewrk3.cstatic int Read_EEPROM(short iobase, unsigned char eaddr)
iobase1445drivers/net/ewrk3.cstatic int Write_EEPROM(short data, short iobase, unsigned char eaddr)
iobase1494drivers/net/ewrk3.cstatic int DevicePresent(short iobase)
iobase1553drivers/net/ewrk3.cint iobase = dev->base_addr;
iobase1587drivers/net/ewrk3.cint i, j, iobase = dev->base_addr, status = 0;
iobase1728drivers/net/ewrk3.ctmp.val[i] = (short)Read_EEPROM(iobase, i);
iobase1746drivers/net/ewrk3.cWrite_EEPROM(tmp.val[i], iobase, i);
iobase18drivers/net/ewrk3.h#define EWRK3_CSR    iobase+0x00   /* Control and Status Register */
iobase19drivers/net/ewrk3.h#define EWRK3_CR     iobase+0x01   /* Control Register */
iobase20drivers/net/ewrk3.h#define EWRK3_ICR    iobase+0x02   /* Interrupt Control Register */
iobase21drivers/net/ewrk3.h#define EWRK3_TSR    iobase+0x03   /* Transmit Status Register */
iobase22drivers/net/ewrk3.h#define EWRK3_RSVD1  iobase+0x04   /* RESERVED */
iobase23drivers/net/ewrk3.h#define EWRK3_RSVD2  iobase+0x05   /* RESERVED */
iobase24drivers/net/ewrk3.h#define EWRK3_FMQ    iobase+0x06   /* Free Memory Queue */
iobase25drivers/net/ewrk3.h#define EWRK3_FMQC   iobase+0x07   /* Free Memory Queue Counter */
iobase26drivers/net/ewrk3.h#define EWRK3_RQ     iobase+0x08   /* Receive Queue */
iobase27drivers/net/ewrk3.h#define EWRK3_RQC    iobase+0x09   /* Receive Queue Counter */
iobase28drivers/net/ewrk3.h#define EWRK3_TQ     iobase+0x0a   /* Transmit Queue */
iobase29drivers/net/ewrk3.h#define EWRK3_TQC    iobase+0x0b   /* Transmit Queue Counter */
iobase30drivers/net/ewrk3.h#define EWRK3_TDQ    iobase+0x0c   /* Transmit Done Queue */
iobase31drivers/net/ewrk3.h#define EWRK3_TDQC   iobase+0x0d   /* Transmit Done Queue Counter */
iobase32drivers/net/ewrk3.h#define EWRK3_PIR1   iobase+0x0e   /* Page Index Register 1 */
iobase33drivers/net/ewrk3.h#define EWRK3_PIR2   iobase+0x0f   /* Page Index Register 2 */
iobase34drivers/net/ewrk3.h#define EWRK3_DATA   iobase+0x10   /* Data Register */
iobase35drivers/net/ewrk3.h#define EWRK3_IOPR   iobase+0x11   /* I/O Page Register */
iobase36drivers/net/ewrk3.h#define EWRK3_IOBR   iobase+0x12   /* I/O Base Register */
iobase37drivers/net/ewrk3.h#define EWRK3_MPR    iobase+0x13   /* Memory Page Register */
iobase38drivers/net/ewrk3.h#define EWRK3_MBR    iobase+0x14   /* Memory Base Register */
iobase39drivers/net/ewrk3.h#define EWRK3_APROM  iobase+0x15   /* Address PROM */
iobase40drivers/net/ewrk3.h#define EWRK3_EPROM1 iobase+0x16   /* EEPROM Data Register 1 */
iobase41drivers/net/ewrk3.h#define EWRK3_EPROM2 iobase+0x17   /* EEPROM Data Register 2 */
iobase42drivers/net/ewrk3.h#define EWRK3_PAR0   iobase+0x18   /* Physical Address Register 0 */
iobase43drivers/net/ewrk3.h#define EWRK3_PAR1   iobase+0x19   /* Physical Address Register 1 */
iobase44drivers/net/ewrk3.h#define EWRK3_PAR2   iobase+0x1a   /* Physical Address Register 2 */
iobase45drivers/net/ewrk3.h#define EWRK3_PAR3   iobase+0x1b   /* Physical Address Register 3 */
iobase46drivers/net/ewrk3.h#define EWRK3_PAR4   iobase+0x1c   /* Physical Address Register 4 */
iobase47drivers/net/ewrk3.h#define EWRK3_PAR5   iobase+0x1d   /* Physical Address Register 5 */
iobase48drivers/net/ewrk3.h#define EWRK3_CMR    iobase+0x1e   /* Configuration/Management Register */
iobase175drivers/net/ewrk3.h#define EISA_ID0      iobase + 0x0c80  /* EISA ID Register 0 */ 
iobase176drivers/net/ewrk3.h#define EISA_ID1      iobase + 0x0c81  /* EISA ID Register 1 */ 
iobase177drivers/net/ewrk3.h#define EISA_ID2      iobase + 0x0c82  /* EISA ID Register 2 */ 
iobase178drivers/net/ewrk3.h#define EISA_ID3      iobase + 0x0c83  /* EISA ID Register 3 */ 
iobase179drivers/net/ewrk3.h#define EISA_CR       iobase + 0x0c84  /* EISA Control Register */
iobase215drivers/scsi/eata.cstatic inline unchar wait_on_busy(ushort iobase) {
iobase218drivers/scsi/eata.cwhile (inb(iobase + REG_AUX_STATUS) & ABSY_ASSERTED)
iobase224drivers/scsi/eata.cstatic inline unchar do_dma (ushort iobase, unsigned int addr, unchar cmd) {
iobase226drivers/scsi/eata.cif (wait_on_busy(iobase)) return TRUE;
iobase229drivers/scsi/eata.coutb((char)  addr,        iobase + REG_LOW);
iobase230drivers/scsi/eata.coutb((char) (addr >> 8),  iobase + REG_LM);
iobase231drivers/scsi/eata.coutb((char) (addr >> 16), iobase + REG_MID);
iobase232drivers/scsi/eata.coutb((char) (addr >> 24), iobase + REG_MSB);
iobase235drivers/scsi/eata.coutb(cmd, iobase + REG_CMD);
iobase239drivers/scsi/eata.cstatic inline unchar read_pio (ushort iobase, ushort *start, ushort *end) {
iobase245drivers/scsi/eata.cwhile (!(inb(iobase + REG_STATUS) & DRQ_ASSERTED)) 
iobase249drivers/scsi/eata.c*p = inw(iobase);
iobase244drivers/scsi/u14-34f.cstatic inline unchar wait_on_busy(ushort iobase) {
iobase247drivers/scsi/u14-34f.cwhile (inb(iobase + REG_LCL_INTR) & BSY_ASSERTED)
iobase160drivers/scsi/wd7000.cint iobase;                       /* This adapter's I/O base address */
iobase185drivers/scsi/wd7000.cint iobase;                   /* I/O ports base address */
iobase532drivers/scsi/wd7000.coutb(host->control, host->iobase+ASC_CONTROL);
iobase539drivers/scsi/wd7000.coutb(host->control,host->iobase+ASC_CONTROL);
iobase569drivers/scsi/wd7000.cWAIT(host->iobase+ASC_STAT,ASC_STATMASK,CMD_RDY,0);
iobase572drivers/scsi/wd7000.coutb(*cmd, host->iobase+ASC_COMMAND);
iobase573drivers/scsi/wd7000.cWAIT(host->iobase+ASC_STAT, ASC_STATMASK, CMD_RDY, 0);
iobase574drivers/scsi/wd7000.c}  while (inb(host->iobase+ASC_STAT) & CMD_REJ);
iobase798drivers/scsi/wd7000.c#define wd7000_intr_ack(host)  outb(0,host->iobase+ASC_INTR_ACK)
iobase821drivers/scsi/wd7000.cflag = inb(host->iobase+ASC_INTR_STAT);
iobase826drivers/scsi/wd7000.cif (!(inb(host->iobase+ASC_STAT) & INT_IM))  {
iobase1001drivers/scsi/wd7000.coutb(ASC_RES, host->iobase+ASC_CONTROL);
iobase1003drivers/scsi/wd7000.coutb(0,host->iobase+ASC_CONTROL);
iobase1005drivers/scsi/wd7000.cWAIT(host->iobase+ASC_STAT, ASC_STATMASK, CMD_RDY, 0);
iobase1007drivers/scsi/wd7000.cif ((diag = inb(host->iobase+ASC_INTR_STAT)) != 1)  {
iobase1044drivers/scsi/wd7000.cWAIT(host->iobase+ASC_STAT, ASC_STATMASK, ASC_INIT, 0);
iobase1126drivers/scsi/wd7000.cif (check_region(cfg->iobase, 4))  {  /* ports in use */
iobase1127drivers/scsi/wd7000.cprintk("IO %xh already in use.\n", host->iobase);
iobase1146drivers/scsi/wd7000.chost->iobase = cfg->iobase;
iobase1163drivers/scsi/wd7000.chost->iobase, host->irq, host->dma);
iobase1165drivers/scsi/wd7000.csnarf_region(host->iobase, 4); /* Register our ports */
iobase1190drivers/scsi/wd7000.cif (inb(host->iobase+ASC_STAT) & INT_IM)  {