tag | line | file | source code |
PORT | 109 | drivers/net/ni65.c | #define writereg(val,reg) {outw(reg,PORT+L_ADDRREG);inw(PORT+L_ADDRREG); \ |
PORT | 110 | drivers/net/ni65.c | outw(val,PORT+L_DATAREG);inw(PORT+L_DATAREG);} |
PORT | 111 | drivers/net/ni65.c | #define readreg(reg) (outw(reg,PORT+L_ADDRREG),inw(PORT+L_ADDRREG),\ |
PORT | 112 | drivers/net/ni65.c | inw(PORT+L_DATAREG)) |
PORT | 113 | drivers/net/ni65.c | #define writedatareg(val) {outw(val,PORT+L_DATAREG);inw(PORT+L_DATAREG);} |
PORT | 168 | drivers/net/ni65.c | outw(0,PORT+L_RESET); /* that's the hard way */ |
PORT | 214 | drivers/net/ni65.c | station_addr[i] = dev->dev_addr[i] = inb(PORT+L_EBASE+i); |
PORT | 223 | drivers/net/ni65.c | dev->irq = irqtab[(inw(PORT+L_CONFIG)>>2)&3]; |
PORT | 225 | drivers/net/ni65.c | dev->dma = dmatab[inw(PORT+L_CONFIG)&3]; |
PORT | 322 | drivers/net/ni65.c | outw(0,PORT+L_RESET); /* first: reset the card */ |
PORT | 323 | drivers/net/ni65.c | if(inw(PORT+L_DATAREG) != 0x4) |
PORT | 325 | drivers/net/ni65.c | printk("%s: can't RESET ni6510 card: %04x\n",dev->name,(int) inw(PORT+L_DATAREG)); |
PORT | 381 | drivers/net/ni65.c | if(inw(PORT+L_DATAREG) & CSR0_IDON) break; /* init ok ? */ |
PORT | 385 | drivers/net/ni65.c | printk("%s: can't init am7990, status: %04x\n",dev->name,(int) inw(PORT+L_DATAREG)); |
PORT | 412 | drivers/net/ni65.c | csr0 = inw(PORT+L_DATAREG); |
PORT | 526 | drivers/net/ni65.c | printk("%s: lance-status: %04x\n",dev->name,(int) inw(PORT+L_DATAREG)); |
PORT | 309 | drivers/scsi/aha152x.h | #define SETPORT(PORT, VAL) \ |
PORT | 310 | drivers/scsi/aha152x.h | outb( (VAL), (PORT) ) |
PORT | 312 | drivers/scsi/aha152x.h | #define SETPORTP(PORT, VAL) \ |
PORT | 313 | drivers/scsi/aha152x.h | outb_p( (VAL), (PORT) ) |
PORT | 315 | drivers/scsi/aha152x.h | #define SETPORTW(PORT, VAL) \ |
PORT | 316 | drivers/scsi/aha152x.h | outw( (VAL), (PORT) ) |
PORT | 318 | drivers/scsi/aha152x.h | #define GETPORT(PORT) \ |
PORT | 319 | drivers/scsi/aha152x.h | inb( PORT ) |
PORT | 321 | drivers/scsi/aha152x.h | #define GETPORTW(PORT) \ |
PORT | 322 | drivers/scsi/aha152x.h | inw( PORT ) |
PORT | 324 | drivers/scsi/aha152x.h | #define SETBITS(PORT, BITS) \ |
PORT | 325 | drivers/scsi/aha152x.h | outb( (inb(PORT) | (BITS)), (PORT) ) |
PORT | 327 | drivers/scsi/aha152x.h | #define CLRBITS(PORT, BITS) \ |
PORT | 328 | drivers/scsi/aha152x.h | outb( (inb(PORT) & ~(BITS)), (PORT) ) |
PORT | 330 | drivers/scsi/aha152x.h | #define CLRSETBITS(PORT, CLR, SET) \ |
PORT | 331 | drivers/scsi/aha152x.h | outb( (inb(PORT) & ~(CLR)) | (SET) , (PORT) ) |
PORT | 333 | drivers/scsi/aha152x.h | #define TESTHI(PORT, BITS) \ |
PORT | 334 | drivers/scsi/aha152x.h | ((inb(PORT) & (BITS)) == BITS) |
PORT | 336 | drivers/scsi/aha152x.h | #define TESTLO(PORT, BITS) \ |
PORT | 337 | drivers/scsi/aha152x.h | ((inb(PORT) & (BITS)) == 0) |