tag | line | file | source code |
PORT | 108 | drivers/net/ni65.c | #define writereg(val,reg) {outw(reg,PORT+L_ADDRREG);inw(PORT+L_ADDRREG); \ |
PORT | 109 | drivers/net/ni65.c | outw(val,PORT+L_DATAREG);inw(PORT+L_DATAREG);} |
PORT | 110 | drivers/net/ni65.c | #define readreg(reg) (outw(reg,PORT+L_ADDRREG),inw(PORT+L_ADDRREG),\ |
PORT | 111 | drivers/net/ni65.c | inw(PORT+L_DATAREG)) |
PORT | 112 | drivers/net/ni65.c | #define writedatareg(val) {outw(val,PORT+L_DATAREG);inw(PORT+L_DATAREG);} |
PORT | 167 | drivers/net/ni65.c | outw(0,PORT+L_RESET); /* that's the hard way */ |
PORT | 213 | drivers/net/ni65.c | station_addr[i] = dev->dev_addr[i] = inb(PORT+L_EBASE+i); |
PORT | 222 | drivers/net/ni65.c | dev->irq = irqtab[(inw(PORT+L_CONFIG)>>2)&3]; |
PORT | 224 | drivers/net/ni65.c | dev->dma = dmatab[inw(PORT+L_CONFIG)&3]; |
PORT | 321 | drivers/net/ni65.c | outw(0,PORT+L_RESET); /* first: reset the card */ |
PORT | 322 | drivers/net/ni65.c | if(inw(PORT+L_DATAREG) != 0x4) |
PORT | 324 | drivers/net/ni65.c | printk("%s: can't RESET ni6510 card: %04x\n",dev->name,(int) inw(PORT+L_DATAREG)); |
PORT | 380 | drivers/net/ni65.c | if(inw(PORT+L_DATAREG) & CSR0_IDON) break; /* init ok ? */ |
PORT | 384 | drivers/net/ni65.c | printk("%s: can't init am7990, status: %04x\n",dev->name,(int) inw(PORT+L_DATAREG)); |
PORT | 410 | drivers/net/ni65.c | csr0 = inw(PORT+L_DATAREG); |
PORT | 524 | drivers/net/ni65.c | printk("%s: lance-status: %04x\n",dev->name,(int) inw(PORT+L_DATAREG)); |
PORT | 310 | drivers/scsi/aha152x.h | #define SETPORT(PORT, VAL) \ |
PORT | 311 | drivers/scsi/aha152x.h | outb( (VAL), (PORT) ) |
PORT | 313 | drivers/scsi/aha152x.h | #define SETPORTP(PORT, VAL) \ |
PORT | 314 | drivers/scsi/aha152x.h | outb_p( (VAL), (PORT) ) |
PORT | 316 | drivers/scsi/aha152x.h | #define SETPORTW(PORT, VAL) \ |
PORT | 317 | drivers/scsi/aha152x.h | outw( (VAL), (PORT) ) |
PORT | 319 | drivers/scsi/aha152x.h | #define GETPORT(PORT) \ |
PORT | 320 | drivers/scsi/aha152x.h | inb( PORT ) |
PORT | 322 | drivers/scsi/aha152x.h | #define GETPORTW(PORT) \ |
PORT | 323 | drivers/scsi/aha152x.h | inw( PORT ) |
PORT | 325 | drivers/scsi/aha152x.h | #define SETBITS(PORT, BITS) \ |
PORT | 326 | drivers/scsi/aha152x.h | outb( (inb(PORT) | (BITS)), (PORT) ) |
PORT | 328 | drivers/scsi/aha152x.h | #define CLRBITS(PORT, BITS) \ |
PORT | 329 | drivers/scsi/aha152x.h | outb( (inb(PORT) & ~(BITS)), (PORT) ) |
PORT | 331 | drivers/scsi/aha152x.h | #define CLRSETBITS(PORT, CLR, SET) \ |
PORT | 332 | drivers/scsi/aha152x.h | outb( (inb(PORT) & ~(CLR)) | (SET) , (PORT) ) |
PORT | 334 | drivers/scsi/aha152x.h | #define TESTHI(PORT, BITS) \ |
PORT | 335 | drivers/scsi/aha152x.h | ((inb(PORT) & (BITS)) == BITS) |
PORT | 337 | drivers/scsi/aha152x.h | #define TESTLO(PORT, BITS) \ |
PORT | 338 | drivers/scsi/aha152x.h | ((inb(PORT) & (BITS)) == 0) |