tag | line | file | source code |
base | 96 | arch/alpha/kernel/bios32.c | unsigned int base, mask, size, reg; |
base | 108 | arch/alpha/kernel/bios32.c | pcibios_read_config_dword(bus->number, dev->devfn, reg, &base); |
base | 109 | arch/alpha/kernel/bios32.c | if (!base) { |
base | 117 | arch/alpha/kernel/bios32.c | if (base & PCI_BASE_ADDRESS_SPACE_IO) { |
base | 123 | arch/alpha/kernel/bios32.c | base &= PCI_BASE_ADDRESS_IO_MASK; |
base | 124 | arch/alpha/kernel/bios32.c | mask = (~base << 1) | 0x1; |
base | 125 | arch/alpha/kernel/bios32.c | size = (mask & base) & 0xffffffff; |
base | 126 | arch/alpha/kernel/bios32.c | base = ALIGN(io_base, size); |
base | 127 | arch/alpha/kernel/bios32.c | io_base = base + size; |
base | 129 | arch/alpha/kernel/bios32.c | reg, base | 0x1); |
base | 137 | arch/alpha/kernel/bios32.c | type = base & PCI_BASE_ADDRESS_MEM_TYPE_MASK; |
base | 138 | arch/alpha/kernel/bios32.c | base &= PCI_BASE_ADDRESS_MEM_MASK; |
base | 139 | arch/alpha/kernel/bios32.c | mask = (~base << 1) | 0x1; |
base | 140 | arch/alpha/kernel/bios32.c | size = (mask & base) & 0xffffffff; |
base | 186 | arch/alpha/kernel/bios32.c | base = ALIGN(mem_base, size); |
base | 195 | arch/alpha/kernel/bios32.c | if (((base / 16*MB) & 0x7) == 0) { |
base | 196 | arch/alpha/kernel/bios32.c | base &= ~(128*MB - 1); |
base | 197 | arch/alpha/kernel/bios32.c | base += 16*MB; |
base | 198 | arch/alpha/kernel/bios32.c | base = ALIGN(base, size); |
base | 200 | arch/alpha/kernel/bios32.c | if (base / 128*MB != (base + size) / 128*MB) { |
base | 201 | arch/alpha/kernel/bios32.c | base &= ~(128*MB - 1); |
base | 202 | arch/alpha/kernel/bios32.c | base += (128 + 16)*MB; |
base | 203 | arch/alpha/kernel/bios32.c | base = ALIGN(base, size); |
base | 206 | arch/alpha/kernel/bios32.c | mem_base = base + size; |
base | 208 | arch/alpha/kernel/bios32.c | reg, base); |
base | 15 | arch/i386/kernel/ioport.c | static void set_bitmap(unsigned long *bitmap, short base, short extent, int new_value) |
base | 18 | arch/i386/kernel/ioport.c | unsigned long *bitmap_base = bitmap + (base >> 5); |
base | 19 | arch/i386/kernel/ioport.c | unsigned short low_index = base & 0x1f; |
base | 41 | arch/i386/kernel/ldt.c | unsigned long base, limit; |
base | 56 | arch/i386/kernel/ldt.c | base = ldt_info.base_addr; |
base | 60 | arch/i386/kernel/ldt.c | limit += base; |
base | 61 | arch/i386/kernel/ldt.c | if (limit < base || limit >= 0xC0000000) |
base | 244 | arch/i386/kernel/smp.c | void smp_scan_config(unsigned long base, unsigned long length) |
base | 246 | arch/i386/kernel/smp.c | unsigned long *bp=(unsigned long *)base; |
base | 233 | arch/i386/kernel/vm86.c | #define pushb(base, ptr, val) \ |
base | 238 | arch/i386/kernel/vm86.c | : "r" (base), "q" (val), "0" (ptr)) |
base | 240 | arch/i386/kernel/vm86.c | #define pushw(base, ptr, val) \ |
base | 247 | arch/i386/kernel/vm86.c | : "r" (base), "q" (val), "0" (ptr)) |
base | 249 | arch/i386/kernel/vm86.c | #define pushl(base, ptr, val) \ |
base | 262 | arch/i386/kernel/vm86.c | : "r" (base), "q" (val), "0" (ptr)) |
base | 264 | arch/i386/kernel/vm86.c | #define popb(base, ptr) \ |
base | 269 | arch/i386/kernel/vm86.c | : "=r" (ptr), "=r" (base), "=q" (__res) \ |
base | 270 | arch/i386/kernel/vm86.c | : "0" (ptr), "1" (base), "2" (0)); \ |
base | 273 | arch/i386/kernel/vm86.c | #define popw(base, ptr) \ |
base | 280 | arch/i386/kernel/vm86.c | : "=r" (ptr), "=r" (base), "=q" (__res) \ |
base | 281 | arch/i386/kernel/vm86.c | : "0" (ptr), "1" (base), "2" (0)); \ |
base | 284 | arch/i386/kernel/vm86.c | #define popl(base, ptr) \ |
base | 297 | arch/i386/kernel/vm86.c | : "=r" (ptr), "=r" (base), "=q" (__res) \ |
base | 298 | arch/i386/kernel/vm86.c | : "0" (ptr), "1" (base)); \ |
base | 76 | arch/i386/math-emu/get_address.c | unsigned char ss,index,base; |
base | 81 | arch/i386/math-emu/get_address.c | base = get_fs_byte((char *) (*fpu_eip)); /* The SIB byte */ |
base | 84 | arch/i386/math-emu/get_address.c | ss = base >> 6; |
base | 85 | arch/i386/math-emu/get_address.c | index = (base >> 3) & 7; |
base | 86 | arch/i386/math-emu/get_address.c | base &= 7; |
base | 88 | arch/i386/math-emu/get_address.c | if ((mod == 0) && (base == 5)) |
base | 91 | arch/i386/math-emu/get_address.c | offset = REG_(base); |
base | 114 | arch/i386/math-emu/get_address.c | else if (mod == 2 || base == 5) /* The second condition also has mod==0 */ |
base | 19 | arch/mips/kernel/ioport.c | static void set_bitmap(unsigned long *bitmap, short base, short extent, int new_value) |
base | 22 | arch/mips/kernel/ioport.c | unsigned long *bitmap_base = bitmap + (base >> 5); |
base | 23 | arch/mips/kernel/ioport.c | unsigned short low_index = base & 0x1f; |
base | 212 | drivers/block/cdu31a.c | unsigned short base; /* I/O Base Address */ |
base | 2974 | drivers/block/cdu31a.c | while ( (cdu31a_addresses[i].base != 0) |
base | 2977 | drivers/block/cdu31a.c | if (check_region(cdu31a_addresses[i].base, 4)) { |
base | 2981 | drivers/block/cdu31a.c | get_drive_configuration(cdu31a_addresses[i].base, |
base | 1085 | drivers/block/cm206.c | int probe_base_port(int base) |
base | 1093 | drivers/block/cm206.c | if (base) b=e=base; |
base | 1094 | drivers/block/cm206.c | for (base=b; base<=e; base += 0x10) { |
base | 1095 | drivers/block/cm206.c | if (check_region(base, 0x10)) continue; |
base | 1096 | drivers/block/cm206.c | fool = inw(base+2); /* empty possibly uart_receive_buffer */ |
base | 1097 | drivers/block/cm206.c | if((inw(base+6) & 0xffef) != 0x0001 || /* line_status */ |
base | 1098 | drivers/block/cm206.c | (inw(base) & 0xad00) != 0) /* data status */ |
base | 1101 | drivers/block/cm206.c | outw(dc_normal | pattern1, base+8); |
base | 1102 | drivers/block/cm206.c | if ((inw(base) & 0x7f) != pattern1) continue; |
base | 1103 | drivers/block/cm206.c | outw(dc_normal | pattern2, base+8); |
base | 1104 | drivers/block/cm206.c | if ((inw(base) & 0x7f) != pattern2) continue; |
base | 1105 | drivers/block/cm206.c | outw(dc_normal | READ_AHEAD, base+8); |
base | 1107 | drivers/block/cm206.c | return(base); |
base | 2252 | drivers/block/floppy.c | char *base; |
base | 2254 | drivers/block/floppy.c | base = CURRENT->buffer; |
base | 2260 | drivers/block/floppy.c | while ( bh && bh->b_data == base + size ){ |
base | 128 | drivers/block/optcd.c | static short isp16_config( int base, u_char drive_type, int irq, int dma ); |
base | 1608 | drivers/block/optcd.c | isp16_config( int base, u_char drive_type, int irq, int dma ) |
base | 1618 | drivers/block/optcd.c | switch (base) { |
base | 1624 | drivers/block/optcd.c | printk( "Base address 0x%03X not supported by cdrom interface on ISP16.\n", base ); |
base | 118 | drivers/block/sjcd.c | static short isp16_config( int base, u_char drive_type, int irq, int dma ); |
base | 1545 | drivers/block/sjcd.c | isp16_config( int base, u_char drive_type, int irq, int dma ) |
base | 1555 | drivers/block/sjcd.c | switch (base) { |
base | 1561 | drivers/block/sjcd.c | printk( "Base address 0x%03X not supported by cdrom interface on ISP16.\n", base ); |
base | 339 | drivers/block/triton.c | unsigned short base, time; |
base | 342 | drivers/block/triton.c | base = bmiba; |
base | 345 | drivers/block/triton.c | base = bmiba + 8; |
base | 348 | drivers/block/triton.c | printk(" %s: BusMaster DMA at 0x%04x-0x%04x", hwif->name, base, base+7); |
base | 349 | drivers/block/triton.c | if (check_region(base, 8)) { |
base | 353 | drivers/block/triton.c | request_region(base, 8, hwif->name); |
base | 354 | drivers/block/triton.c | hwif->dma_base = base; |
base | 357 | drivers/block/triton.c | outl((unsigned long) table, base + 4); |
base | 1960 | drivers/char/console.c | long base = (long) vc_scrbuf[currcons]; |
base | 1968 | drivers/char/console.c | pos = origin = video_mem_start = base; |
base | 1969 | drivers/char/console.c | scr_end = base + video_screen_size; |
base | 1970 | drivers/char/console.c | video_mem_end = base + video_screen_size; |
base | 591 | drivers/char/istallion.c | static void stli_meminit(long base); |
base | 829 | drivers/char/istallion.c | static void stli_meminit(long base) |
base | 831 | drivers/char/istallion.c | stli_memend = base; |
base | 834 | drivers/char/keyboard.c | if (accent_table[i].diacr == d && accent_table[i].base == ch) |
base | 1006 | drivers/char/keyboard.c | int base; |
base | 1012 | drivers/char/keyboard.c | base = 10; |
base | 1015 | drivers/char/keyboard.c | base = 16; |
base | 1021 | drivers/char/keyboard.c | npadch = npadch * base + value; |
base | 533 | drivers/char/lp.c | int base, size; |
base | 536 | drivers/char/lp.c | base = LP_B(offset); |
base | 537 | drivers/char/lp.c | size = (base == 0x3bc)? 3 : 8; |
base | 538 | drivers/char/lp.c | if (check_region(base, size) < 0) |
base | 541 | drivers/char/lp.c | outb_p(LP_DUMMY, base); |
base | 543 | drivers/char/lp.c | testvalue = inb_p(base); |
base | 547 | drivers/char/lp.c | printk("lp%d at 0x%04x, ", offset, base); |
base | 548 | drivers/char/lp.c | request_region(base, size, "lp"); |
base | 627 | drivers/char/lp.c | int base, size; |
base | 628 | drivers/char/lp.c | base = LP_B(offset); |
base | 629 | drivers/char/lp.c | size = (base == 0x3bc)? 3 : 8; |
base | 467 | drivers/char/stallion.c | static void stl_meminit(long base); |
base | 633 | drivers/char/stallion.c | static void stl_meminit(long base) |
base | 635 | drivers/char/stallion.c | stl_memend = base; |
base | 393 | drivers/net/3c507.c | int base; |
base | 398 | drivers/net/3c507.c | base = 0xf00000 + (mem_config & 0x08 ? 0x080000 |
base | 402 | drivers/net/3c507.c | base = 0x0c0000 + ( (mem_config & 0x18) << 12); |
base | 404 | drivers/net/3c507.c | dev->mem_start = base; |
base | 405 | drivers/net/3c507.c | dev->mem_end = base + size; |
base | 295 | drivers/net/depca.c | volatile s32 base; |
base | 301 | drivers/net/depca.c | volatile s32 base; |
base | 692 | drivers/net/depca.c | printk("0x%8.8lx ", (long) &lp->rx_ring[i].base); |
base | 695 | drivers/net/depca.c | printk("...0x%8.8lx\n", (long) &lp->rx_ring[i].base); |
base | 699 | drivers/net/depca.c | printk("0x%8.8lx ", (long) &lp->tx_ring[i].base); |
base | 702 | drivers/net/depca.c | printk("...0x%8.8lx\n", (long) &lp->tx_ring[i].base); |
base | 706 | drivers/net/depca.c | printk("0x%8.8x ", readl(&lp->rx_ring[i].base)); |
base | 709 | drivers/net/depca.c | printk("...0x%8.8x\n", readl(&lp->rx_ring[i].base)); |
base | 713 | drivers/net/depca.c | printk("0x%8.8x ", readl(&lp->tx_ring[i].base)); |
base | 716 | drivers/net/depca.c | printk("...0x%8.8x\n", readl(&lp->tx_ring[i].base)); |
base | 784 | drivers/net/depca.c | writel((p=lp->dma_buffs+i*RX_BUFF_SZ) | R_OWN, &lp->rx_ring[i].base); |
base | 790 | drivers/net/depca.c | &lp->tx_ring[i].base); |
base | 931 | drivers/net/depca.c | !(readl(&lp->rx_ring[entry].base) & R_OWN); |
base | 933 | drivers/net/depca.c | status = readl(&lp->rx_ring[entry].base) >> 16 ; |
base | 1002 | drivers/net/depca.c | writel(readl(&lp->rx_ring[lp->rx_old].base) | R_OWN, |
base | 1003 | drivers/net/depca.c | &lp->rx_ring[lp->rx_old].base); |
base | 1005 | drivers/net/depca.c | writel(readl(&lp->rx_ring[entry].base) | R_OWN, &lp->rx_ring[entry].base); |
base | 1029 | drivers/net/depca.c | status = readl(&lp->tx_ring[entry].base) >> 16 ; |
base | 1574 | drivers/net/depca.c | if (!(readl(&lp->tx_ring[end].base) & T_OWN)) {/* Enough room? */ |
base | 1591 | drivers/net/depca.c | writel(readl(&lp->tx_ring[i].base) & ~T_FLAGS, &lp->tx_ring[i].base); |
base | 1597 | drivers/net/depca.c | writel(readl(&lp->tx_ring[end].base) & ~T_FLAGS, &lp->tx_ring[end].base); |
base | 1602 | drivers/net/depca.c | writel(readl(&lp->tx_ring[entry].base) | T_STP, &lp->tx_ring[entry].base); |
base | 1604 | drivers/net/depca.c | writel(readl(&lp->tx_ring[end].base) | T_ENP, &lp->tx_ring[end].base); |
base | 1608 | drivers/net/depca.c | writel(readl(&lp->tx_ring[i].base) | T_OWN, &lp->tx_ring[i].base); |
base | 1611 | drivers/net/depca.c | writel(readl(&lp->tx_ring[entry].base) | T_OWN, &lp->tx_ring[entry].base); |
base | 167 | drivers/net/lance.c | int base; |
base | 173 | drivers/net/lance.c | int base; |
base | 680 | drivers/net/lance.c | lp->rx_ring[i].base = (lp->rx_buffs + i*PKT_BUF_SZ) | 0x80000000; |
base | 686 | drivers/net/lance.c | lp->tx_ring[i].base = 0; |
base | 738 | drivers/net/lance.c | lp->rx_ring[i].base, -lp->rx_ring[i].buf_length, |
base | 742 | drivers/net/lance.c | lp->tx_ring[i].base, -lp->tx_ring[i].length, |
base | 808 | drivers/net/lance.c | lp->tx_ring[entry].base = |
base | 813 | drivers/net/lance.c | lp->tx_ring[entry].base = (int)(skb->data) | 0x83000000; |
base | 826 | drivers/net/lance.c | if (lp->tx_ring[(entry+1) & TX_RING_MOD_MASK].base == 0) |
base | 876 | drivers/net/lance.c | int status = lp->tx_ring[entry].base; |
base | 881 | drivers/net/lance.c | lp->tx_ring[entry].base = 0; |
base | 972 | drivers/net/lance.c | while (lp->rx_ring[entry].base >= 0) { |
base | 973 | drivers/net/lance.c | int status = lp->rx_ring[entry].base >> 24; |
base | 986 | drivers/net/lance.c | lp->rx_ring[entry].base &= 0x03ffffff; |
base | 996 | drivers/net/lance.c | if (lp->rx_ring[(entry+i) & RX_RING_MOD_MASK].base < 0) |
base | 1001 | drivers/net/lance.c | lp->rx_ring[entry].base |= 0x80000000; |
base | 1010 | drivers/net/lance.c | (unsigned char *)(lp->rx_ring[entry].base & 0x00ffffff), |
base | 1020 | drivers/net/lance.c | lp->rx_ring[entry].base |= 0x80000000; |
base | 104 | drivers/net/ni52.c | #define make24(ptr32) ((char *) (ptr32) - p->base) |
base | 181 | drivers/net/ni52.c | unsigned long base; |
base | 251 | drivers/net/ni52.c | p->base = (unsigned long) where + size - 0x01000000; |
base | 253 | drivers/net/ni52.c | p->scp = (struct scp_struct *)(p->base + SCP_DEFAULT_ADDRESS); |
base | 289 | drivers/net/ni52.c | p->scp = (struct scp_struct *) (p->base + SCP_DEFAULT_ADDRESS); |
base | 400 | drivers/net/ni52.c | ((struct priv *) (dev->priv))->base = dev->mem_start + size - 0x01000000; |
base | 810 | drivers/net/ni52.c | memcpy(skb_put(skb,totlen),(char *) p->base+(unsigned long) rbd->buffer, totlen); |
base | 225 | drivers/net/pi2.c | switch (lp->base & 2) { |
base | 252 | drivers/net/pi2.c | cmd = lp->base + CTL; |
base | 317 | drivers/net/pi2.c | if (lp->base & 2) { /* If A channel */ |
base | 325 | drivers/net/pi2.c | wrtscc(lp->cardbase, lp->base + CTL, R1, INT_ALL_Rx | EXT_INT_ENAB); |
base | 336 | drivers/net/pi2.c | wrtscc(lp->cardbase, lp->base + CTL, R15, CTSIE); |
base | 337 | drivers/net/pi2.c | wrtscc(lp->cardbase, lp->base + CTL, R0, RES_EXT_INT); |
base | 353 | drivers/net/pi2.c | cmd = CTL + lp->base; |
base | 409 | drivers/net/pi2.c | st = rdscc(lp->cardbase, lp->base + CTL, R0); /* Fetch status */ |
base | 412 | drivers/net/pi2.c | wrtscc(lp->cardbase, CTL + lp->base, R0, RES_EXT_INT); |
base | 413 | drivers/net/pi2.c | cmd = lp->base + CTL; |
base | 482 | drivers/net/pi2.c | wrtscc(lp->cardbase, CTL + lp->base, R15, CTSIE | DCDIE); |
base | 519 | drivers/net/pi2.c | cmd = lp->base + CTL; |
base | 578 | drivers/net/pi2.c | wrtscc(lp->cardbase, lp->base + CTL, R0, ERR_RES); /* error reset */ |
base | 594 | drivers/net/pi2.c | cmd = CTL + lp->base; |
base | 683 | drivers/net/pi2.c | cmd = CTL + lp->base; |
base | 782 | drivers/net/pi2.c | cmd = CTL + lp->base; |
base | 946 | drivers/net/pi2.c | int base, tmr0, tmr1, tmrcmd; |
base | 950 | drivers/net/pi2.c | base = ioaddr & 0x3f0; |
base | 951 | drivers/net/pi2.c | tmr0 = TMR0 + base; |
base | 952 | drivers/net/pi2.c | tmr1 = TMR1 + base; |
base | 953 | drivers/net/pi2.c | tmrcmd = TMRCMD + base; |
base | 1007 | drivers/net/pi2.c | cmd = CTL + lp->base; |
base | 1102 | drivers/net/pi2.c | cmd = CTL + lp->base; |
base | 1342 | drivers/net/pi2.c | lp->base = dev->base_addr; |
base | 1380 | drivers/net/pi2.c | wrtscc(lp->cardbase, CTL + lp->base, R1, EXT_INT_ENAB); |
base | 1382 | drivers/net/pi2.c | wrtscc(lp->cardbase, CTL + lp->base, R9, MIE | NV); |
base | 1486 | drivers/net/pi2.c | wrtscc(lp->cardbase, CTL + lp->base, R9, MIE | NV); |
base | 1565 | drivers/net/pi2.c | wrtscc(lp->cardbase, lp->base + CTL, R0, RES_H_IUS); |
base | 119 | drivers/net/pi2.h | int base; /* Base of I/O registers */ |
base | 498 | drivers/pci/pci.c | unsigned long base; |
base | 591 | drivers/pci/pci.c | base = l; |
base | 592 | drivers/pci/pci.c | if (!base) { |
base | 596 | drivers/pci/pci.c | if (base & PCI_BASE_ADDRESS_SPACE_IO) { |
base | 599 | drivers/pci/pci.c | base & PCI_BASE_ADDRESS_IO_MASK); |
base | 603 | drivers/pci/pci.c | if (base & PCI_BASE_ADDRESS_MEM_PREFETCH) { |
base | 608 | drivers/pci/pci.c | switch (base & PCI_BASE_ADDRESS_MEM_TYPE_MASK) { |
base | 618 | drivers/pci/pci.c | base |= ((u64) l) << 32; |
base | 624 | drivers/pci/pci.c | base & PCI_BASE_ADDRESS_MEM_MASK); |
base | 305 | drivers/scsi/53c7,8xx.c | int base; /* Memory address - indicates memory mapped regs */ |
base | 353 | drivers/scsi/53c7,8xx.c | overrides[commandline_current].data.normal.base = ints[1]; |
base | 683 | drivers/scsi/53c7,8xx.c | u32 base, int io_port, int irq, int dma, int pci_valid, |
base | 710 | drivers/scsi/53c7,8xx.c | chip_str, base, io_port, irq); |
base | 797 | drivers/scsi/53c7,8xx.c | if (base) { |
base | 798 | drivers/scsi/53c7,8xx.c | instance->base = (unsigned char*) (unsigned long) base; |
base | 866 | drivers/scsi/53c7,8xx.c | u32 base; |
base | 892 | drivers/scsi/53c7,8xx.c | PCI_BASE_ADDRESS_1, (int *) &base)) || |
base | 930 | drivers/scsi/53c7,8xx.c | if ((base & PCI_BASE_ADDRESS_SPACE) != PCI_BASE_ADDRESS_SPACE_MEMORY) { |
base | 933 | drivers/scsi/53c7,8xx.c | base = 0; |
base | 935 | drivers/scsi/53c7,8xx.c | base &= PCI_BASE_ADDRESS_MEM_MASK; |
base | 937 | drivers/scsi/53c7,8xx.c | base = 0; |
base | 940 | drivers/scsi/53c7,8xx.c | if (!io_port && !base) { |
base | 972 | drivers/scsi/53c7,8xx.c | return normal_init (tpnt, board, chip, (int) base, io_port, |
base | 1010 | drivers/scsi/53c7,8xx.c | overrides[current_override].data.normal.base, |
base | 1056 | drivers/scsi/53c7,8xx.c | u32 base; |
base | 1104 | drivers/scsi/53c7,8xx.c | base = (u32) host->io_port; |
base | 1109 | drivers/scsi/53c7,8xx.c | base = virt_to_phys(host->base); |
base | 1113 | drivers/scsi/53c7,8xx.c | patch_abs_32 (hostdata->script, 0, addr_scratch, base + SCRATCHA_REG_800); |
base | 1114 | drivers/scsi/53c7,8xx.c | patch_abs_32 (hostdata->script, 0, addr_sfbr, base + SFBR_REG); |
base | 1115 | drivers/scsi/53c7,8xx.c | patch_abs_32 (hostdata->script, 0, addr_temp, base + TEMP_REG); |
base | 1323 | drivers/scsi/53c7,8xx.h | NCR53c7x0_address_memory = (void *) (host)->base; \ |
base | 125 | drivers/scsi/aha1542.c | #define aha1542_intr_reset(base) outb(IRST, CONTROL(base)) |
base | 162 | drivers/scsi/aha1542.c | static int aha1542_out(unsigned int base, unchar *cmdp, int len) |
base | 169 | drivers/scsi/aha1542.c | WAIT(STATUS(base), CDF, 0, CDF); |
base | 171 | drivers/scsi/aha1542.c | if(inb(STATUS(base)) & CDF) {restore_flags(flags); continue;} |
base | 172 | drivers/scsi/aha1542.c | outb(*cmdp, DATA(base)); |
base | 180 | drivers/scsi/aha1542.c | WAIT(STATUS(base), CDF, 0, CDF); |
base | 181 | drivers/scsi/aha1542.c | outb(*cmdp++, DATA(base)); |
base | 194 | drivers/scsi/aha1542.c | static int aha1542_in(unsigned int base, unchar *cmdp, int len) |
base | 202 | drivers/scsi/aha1542.c | WAIT(STATUS(base), DF, DF, 0); |
base | 203 | drivers/scsi/aha1542.c | *cmdp++ = inb(DATA(base)); |
base | 216 | drivers/scsi/aha1542.c | static int aha1542_in1(unsigned int base, unchar *cmdp, int len) |
base | 224 | drivers/scsi/aha1542.c | WAITd(STATUS(base), DF, DF, 0, 100); |
base | 225 | drivers/scsi/aha1542.c | *cmdp++ = inb(DATA(base)); |
base | 792 | drivers/scsi/aha1542.c | static int aha1542_mbenable(int base) |
base | 801 | drivers/scsi/aha1542.c | aha1542_out(base,mbenable_cmd,1); |
base | 802 | drivers/scsi/aha1542.c | if(aha1542_in1(base,mbenable_result,2)) |
base | 804 | drivers/scsi/aha1542.c | WAITd(INTRFLAGS(base),INTRMASK,HACC,0,100); |
base | 805 | drivers/scsi/aha1542.c | aha1542_intr_reset(base); |
base | 812 | drivers/scsi/aha1542.c | aha1542_out(base,mbenable_cmd,3); |
base | 813 | drivers/scsi/aha1542.c | WAIT(INTRFLAGS(base),INTRMASK,HACC,0); |
base | 819 | drivers/scsi/aha1542.c | aha1542_intr_reset(base); |
base | 39 | drivers/scsi/aha1542.h | #define STATUS(base) base |
base | 49 | drivers/scsi/aha1542.h | #define INTRFLAGS(base) (STATUS(base)+2) |
base | 58 | drivers/scsi/aha1542.h | #define CONTROL(base) STATUS(base) |
base | 65 | drivers/scsi/aha1542.h | #define DATA(base) (STATUS(base)+1) |
base | 62 | drivers/scsi/aha1740.c | static unsigned int slot, base; |
base | 450 | drivers/scsi/aha1740.c | base = SLOTBASE(slot); |
base | 456 | drivers/scsi/aha1740.c | if(check_region(base, 0x5c)) continue; /* See if in use */ |
base | 470 | drivers/scsi/aha1740.c | printk("Configuring Adaptec at IO:%x, IRQ %d\n",base, |
base | 480 | drivers/scsi/aha1740.c | request_region(base, 0x5c,"aha1740"); /* Reserve the space that we need to use */ |
base | 21 | drivers/scsi/aha1740.h | #define BASE (base) |
base | 24 | drivers/scsi/aha1740.h | #define HID0 (base + 0x0) |
base | 25 | drivers/scsi/aha1740.h | #define HID1 (base + 0x1) |
base | 26 | drivers/scsi/aha1740.h | #define HID2 (base + 0x2) |
base | 27 | drivers/scsi/aha1740.h | #define HID3 (base + 0x3) |
base | 28 | drivers/scsi/aha1740.h | #define EBCNTRL (base + 0x4) |
base | 29 | drivers/scsi/aha1740.h | #define PORTADR (base + 0x40) |
base | 30 | drivers/scsi/aha1740.h | #define BIOSADR (base + 0x41) |
base | 31 | drivers/scsi/aha1740.h | #define INTDEF (base + 0x42) |
base | 32 | drivers/scsi/aha1740.h | #define SCSIDEF (base + 0x43) |
base | 33 | drivers/scsi/aha1740.h | #define BUSDEF (base + 0x44) |
base | 34 | drivers/scsi/aha1740.h | #define RESV0 (base + 0x45) |
base | 35 | drivers/scsi/aha1740.h | #define RESV1 (base + 0x46) |
base | 36 | drivers/scsi/aha1740.h | #define RESV2 (base + 0x47) |
base | 692 | drivers/scsi/aic7xxx.c | outb(p->pause, HCNTRL(p->base)); \ |
base | 693 | drivers/scsi/aic7xxx.c | while ((inb(HCNTRL(p->base)) & PAUSE) == 0) \ |
base | 701 | drivers/scsi/aic7xxx.c | outb(p->unpause, HCNTRL(p->base)) |
base | 708 | drivers/scsi/aic7xxx.c | outb(SEQRESET | FASTMODE, SEQCTL(p->base)); \ |
base | 709 | drivers/scsi/aic7xxx.c | } while (inb(SEQADDR0(p->base)) != 0 && \ |
base | 710 | drivers/scsi/aic7xxx.c | inb(SEQADDR1(p->base)) != 0); \ |
base | 884 | drivers/scsi/aic7xxx.c | int base; /* card base address */ |
base | 910 | drivers/scsi/aic7xxx.c | int base; /* I/O base */ |
base | 973 | drivers/scsi/aic7xxx.c | host_conf = inb(HA_HOSTCONF(p->base)); |
base | 974 | drivers/scsi/aic7xxx.c | scsi_conf = inb(HA_SCSICONF(p->base)); |
base | 1001 | drivers/scsi/aic7xxx.c | printk("AIC7770%s AT EISA SLOT %d:\n", BUSW[p->bus_type], p->base >> 12); |
base | 1005 | drivers/scsi/aic7xxx.c | printk("AIC7770%s AT VLB SLOT %d:\n", BUSW[p->bus_type], p->base >> 12); |
base | 1119 | drivers/scsi/aic7xxx.c | aic7xxx_loadseq(int base) |
base | 1143 | drivers/scsi/aic7xxx.c | outb(PERRORDIS | SEQRESET | LOADRAM, SEQCTL(base)); |
base | 1149 | drivers/scsi/aic7xxx.c | :"S" (seqprog), "c" (sizeof(seqprog)), "d" (SEQRAM(base)) |
base | 1168 | drivers/scsi/aic7xxx.c | outb(SEQRESET | FASTMODE, SEQCTL(base)); |
base | 1169 | drivers/scsi/aic7xxx.c | } while ((inb(SEQADDR0(base)) != 0) && (inb(SEQADDR1(base)) != 0)); |
base | 1274 | drivers/scsi/aic7xxx.c | aic7xxx_putscb(int base, struct aic7xxx_scb *scb) |
base | 1282 | drivers/scsi/aic7xxx.c | outb(scb->position, QINFIFO(base)); |
base | 1290 | drivers/scsi/aic7xxx.c | outb(SCBAUTO, SCBCNT(base)); |
base | 1296 | drivers/scsi/aic7xxx.c | :"S" (scb), "c" (SCB_DOWNLOAD_SIZE), "d" (SCBARRAY(base)) |
base | 1299 | drivers/scsi/aic7xxx.c | outb(0, SCBCNT(base)); |
base | 1311 | drivers/scsi/aic7xxx.c | aic7xxx_putdmascb(int base, struct aic7xxx_scb *scb) |
base | 1319 | drivers/scsi/aic7xxx.c | outb(SCBAUTO, SCBCNT(base)); |
base | 1325 | drivers/scsi/aic7xxx.c | :"S" (scb), "c" (31), "d" (SCBARRAY(base)) |
base | 1328 | drivers/scsi/aic7xxx.c | outb(0, SCBCNT(base)); |
base | 1339 | drivers/scsi/aic7xxx.c | aic7xxx_getscb(int base, struct aic7xxx_scb *scb) |
base | 1344 | drivers/scsi/aic7xxx.c | outb(SCBAUTO, SCBCNT(base)); |
base | 1350 | drivers/scsi/aic7xxx.c | :"D" (scb), "c" (SCB_UPLOAD_SIZE), "d" (SCBARRAY(base)) |
base | 1353 | drivers/scsi/aic7xxx.c | outb(0, SCBCNT(base)); |
base | 1434 | drivers/scsi/aic7xxx.c | int base, intstat; |
base | 1456 | drivers/scsi/aic7xxx.c | while ((p != NULL) && !(inb(INTSTAT(p->base)) & INT_PEND)) |
base | 1500 | drivers/scsi/aic7xxx.c | base = p->base; |
base | 1505 | drivers/scsi/aic7xxx.c | intstat = inb(INTSTAT(base)); |
base | 1510 | drivers/scsi/aic7xxx.c | unsigned char errno = inb(ERROR(base)); |
base | 1522 | drivers/scsi/aic7xxx.c | inb(ERROR(base)), |
base | 1523 | drivers/scsi/aic7xxx.c | inb(SEQADDR1(base)) << 8 | inb(SEQADDR0(base))); |
base | 1543 | drivers/scsi/aic7xxx.c | rej_byte = inb(HA_REJBYTE(base)); |
base | 1544 | drivers/scsi/aic7xxx.c | scsi_id = inb(SCSIID(base)) >> 0x04; |
base | 1545 | drivers/scsi/aic7xxx.c | scbptr = inb(SCBPTR(base)); |
base | 1556 | drivers/scsi/aic7xxx.c | scsi_id, (inb(SBLKCTL(base)) & SELBUSB ? 'B': 'A')); |
base | 1565 | drivers/scsi/aic7xxx.c | (inb(SELID(base)) >> 4) & 0x0F, |
base | 1566 | drivers/scsi/aic7xxx.c | (inb(SEQADDR1(base)) << 8) | inb(SEQADDR0(base))); |
base | 1570 | drivers/scsi/aic7xxx.c | tcl = inb(SCBARRAY(base) + 1); |
base | 1583 | drivers/scsi/aic7xxx.c | active = inb(HA_ACTIVE1(base)); |
base | 1585 | drivers/scsi/aic7xxx.c | outb(active, HA_ACTIVE1(base)); |
base | 1589 | drivers/scsi/aic7xxx.c | active = inb(HA_ACTIVE0(base)); |
base | 1591 | drivers/scsi/aic7xxx.c | outb(active, HA_ACTIVE0(base)); |
base | 1594 | drivers/scsi/aic7xxx.c | outb(SCB_NEEDDMA, SCBARRAY(base)); |
base | 1601 | drivers/scsi/aic7xxx.c | outb(CLRSELTIMEO, CLRSINT1(base)); |
base | 1612 | drivers/scsi/aic7xxx.c | transfer = (inb(HA_ARG_1(base)) << 2); |
base | 1613 | drivers/scsi/aic7xxx.c | offset = inb(ACCUM(base)); |
base | 1614 | drivers/scsi/aic7xxx.c | scsi_id = inb(SCSIID(base)) >> 0x04; |
base | 1615 | drivers/scsi/aic7xxx.c | if (inb(SBLKCTL(base)) & 0x08) |
base | 1620 | drivers/scsi/aic7xxx.c | scratch = inb(HA_TARG_SCRATCH(base) + scsi_id); |
base | 1638 | drivers/scsi/aic7xxx.c | outb(rate, HA_TARG_SCRATCH(base) + scsi_id); |
base | 1639 | drivers/scsi/aic7xxx.c | outb(rate, SCSIRATE(base)); |
base | 1647 | drivers/scsi/aic7xxx.c | outb(SEND_REJ, HA_RETURN_1(base)); |
base | 1659 | drivers/scsi/aic7xxx.c | outb(0, HA_RETURN_1(base)); |
base | 1667 | drivers/scsi/aic7xxx.c | outb(SEND_SDTR, HA_RETURN_1(base)); |
base | 1679 | drivers/scsi/aic7xxx.c | bus_width = inb(ACCUM(base)); |
base | 1680 | drivers/scsi/aic7xxx.c | scsi_id = inb(SCSIID(base)) >> 0x04; |
base | 1681 | drivers/scsi/aic7xxx.c | if (inb(SBLKCTL(base)) & 0x08) |
base | 1687 | drivers/scsi/aic7xxx.c | scratch = inb(HA_TARG_SCRATCH(base) + scsi_id); |
base | 1695 | drivers/scsi/aic7xxx.c | outb(0, HA_RETURN_1(base)); |
base | 1732 | drivers/scsi/aic7xxx.c | outb(bus_width | SEND_WDTR, HA_RETURN_1(base)); |
base | 1736 | drivers/scsi/aic7xxx.c | outb(scratch, HA_TARG_SCRATCH(base) + scsi_id); |
base | 1737 | drivers/scsi/aic7xxx.c | outb(scratch, SCSIRATE(base)); |
base | 1753 | drivers/scsi/aic7xxx.c | scsi_id = inb(SCSIID(base)) >> 0x04; |
base | 1754 | drivers/scsi/aic7xxx.c | if (inb(SBLKCTL(base)) & 0x08) |
base | 1761 | drivers/scsi/aic7xxx.c | targ_scratch = inb(HA_TARG_SCRATCH(base) + scsi_id); |
base | 1771 | drivers/scsi/aic7xxx.c | outb(targ_scratch, HA_TARG_SCRATCH(base) + scsi_id); |
base | 1785 | drivers/scsi/aic7xxx.c | outb(targ_scratch, HA_TARG_SCRATCH(base) + scsi_id); |
base | 1793 | drivers/scsi/aic7xxx.c | outb(targ_scratch, HA_TARG_SCRATCH(base) + scsi_id); |
base | 1794 | drivers/scsi/aic7xxx.c | outb(targ_scratch, SCSIRATE(base)); |
base | 1799 | drivers/scsi/aic7xxx.c | scsi_id = inb(SCSIID(base)) >> 0x04; |
base | 1800 | drivers/scsi/aic7xxx.c | scbptr = inb(SCBPTR(base)); |
base | 1802 | drivers/scsi/aic7xxx.c | outb(0, HA_RETURN_1(base)); /* CHECK_CONDITION may change this */ |
base | 1812 | drivers/scsi/aic7xxx.c | aic7xxx_getscb(base, scb); |
base | 1872 | drivers/scsi/aic7xxx.c | outb(SCBAUTO, SCBCNT(base)); |
base | 1877 | drivers/scsi/aic7xxx.c | :"S" (scb), "c" (SCB_DOWNLOAD_SIZE), "d" (SCBARRAY(base)) |
base | 1879 | drivers/scsi/aic7xxx.c | outb(0, SCBCNT(base)); |
base | 1880 | drivers/scsi/aic7xxx.c | outb(SCB_LIST_NULL, (SCBARRAY(base) + 30)); |
base | 1885 | drivers/scsi/aic7xxx.c | head = inb(WAITING_SCBH(base)); |
base | 1886 | drivers/scsi/aic7xxx.c | tail = inb(WAITING_SCBT(base)); |
base | 1897 | drivers/scsi/aic7xxx.c | outb(head, SCBPTR(base)); |
base | 1898 | drivers/scsi/aic7xxx.c | outb(tail, (SCBARRAY(base) + 30)); |
base | 1902 | drivers/scsi/aic7xxx.c | outb(tail, SCBPTR(base)); |
base | 1904 | drivers/scsi/aic7xxx.c | outb(tail, (SCBARRAY(base) + 30)); |
base | 1907 | drivers/scsi/aic7xxx.c | outb(head, WAITING_SCBH(base)); |
base | 1908 | drivers/scsi/aic7xxx.c | outb(tail, WAITING_SCBT(base)); |
base | 1909 | drivers/scsi/aic7xxx.c | outb(SEND_SENSE, HA_RETURN_1(base)); |
base | 1951 | drivers/scsi/aic7xxx.c | scbptr = inb(SCBPTR(base)); |
base | 1976 | drivers/scsi/aic7xxx.c | actual -= ((inb(SCBARRAY(base + 17)) << 16) | |
base | 1977 | drivers/scsi/aic7xxx.c | (inb(SCBARRAY(base + 16)) << 8) | |
base | 1978 | drivers/scsi/aic7xxx.c | inb(SCBARRAY(base + 15))); |
base | 1994 | drivers/scsi/aic7xxx.c | scbptr = inb(SCBPTR(base)); |
base | 2036 | drivers/scsi/aic7xxx.c | scbptr = inb(SCBPTR(base)); |
base | 2053 | drivers/scsi/aic7xxx.c | outb(MSG_BUS_DEVICE_RESET, HA_MSG_START(base)); |
base | 2054 | drivers/scsi/aic7xxx.c | outb(1, HA_MSG_LEN(base)); |
base | 2066 | drivers/scsi/aic7xxx.c | intstat, inb(SCSISIGI(base))); |
base | 2069 | drivers/scsi/aic7xxx.c | outb(CLRSEQINT, CLRINT(base)); |
base | 2075 | drivers/scsi/aic7xxx.c | int status = inb(SSTAT1(base)); |
base | 2077 | drivers/scsi/aic7xxx.c | scbptr = inb(SCBPTR(base)); |
base | 2087 | drivers/scsi/aic7xxx.c | outb(status, CLRSINT1(base)); |
base | 2089 | drivers/scsi/aic7xxx.c | outb(CLRSCSIINT, CLRINT(base)); |
base | 2113 | drivers/scsi/aic7xxx.c | outb(ENRSELI, SCSISEQ(base)); |
base | 2119 | drivers/scsi/aic7xxx.c | ha_flags = inb(HA_FLAGS(base)); |
base | 2120 | drivers/scsi/aic7xxx.c | outb(ha_flags & ~ACTIVE_MSG, HA_FLAGS(base)); |
base | 2124 | drivers/scsi/aic7xxx.c | active = inb(HA_ACTIVE1(base)); |
base | 2126 | drivers/scsi/aic7xxx.c | outb(active, HA_ACTIVE1(base)); |
base | 2130 | drivers/scsi/aic7xxx.c | active = inb(HA_ACTIVE0(base)); |
base | 2132 | drivers/scsi/aic7xxx.c | outb(active, HA_ACTIVE0(base)); |
base | 2136 | drivers/scsi/aic7xxx.c | outb(SCB_NEEDDMA, SCBARRAY(base)); |
base | 2154 | drivers/scsi/aic7xxx.c | outb(CLRSELTIMEO, CLRSINT1(base)); |
base | 2156 | drivers/scsi/aic7xxx.c | outb(CLRSCSIINT, CLRINT(base)); |
base | 2159 | drivers/scsi/aic7xxx.c | waiting = inb(WAITING_SCBH(base)); |
base | 2160 | drivers/scsi/aic7xxx.c | outb(waiting, SCBPTR(base)); |
base | 2161 | drivers/scsi/aic7xxx.c | waiting = inb(SCBARRAY(base) + 30); |
base | 2162 | drivers/scsi/aic7xxx.c | outb(waiting, WAITING_SCBH(base)); |
base | 2207 | drivers/scsi/aic7xxx.c | outb(CLRSCSIPERR, CLRSINT1(base)); |
base | 2210 | drivers/scsi/aic7xxx.c | outb(CLRSCSIINT, CLRINT(base)); |
base | 2222 | drivers/scsi/aic7xxx.c | outb(status, CLRSINT1(base)); |
base | 2224 | drivers/scsi/aic7xxx.c | outb(CLRSCSIINT, CLRINT(base)); |
base | 2242 | drivers/scsi/aic7xxx.c | complete = inb(QOUTFIFO(base)); |
base | 2250 | drivers/scsi/aic7xxx.c | complete, inb(QOUTFIFO(base)), |
base | 2252 | drivers/scsi/aic7xxx.c | outb(CLRCMDINT, CLRINT(base)); |
base | 2299 | drivers/scsi/aic7xxx.c | outb(CLRCMDINT, CLRINT(base)); |
base | 2300 | drivers/scsi/aic7xxx.c | } while (inb(QOUTCNT(base))); |
base | 2327 | drivers/scsi/aic7xxx.c | aic7xxx_probe(int slot, int base) |
base | 2349 | drivers/scsi/aic7xxx.c | outb(0x80 + i, base); |
base | 2350 | drivers/scsi/aic7xxx.c | buf[i] = inb(base + i); |
base | 2360 | drivers/scsi/aic7xxx.c | if (inb(base + 4) & 1) |
base | 2422 | drivers/scsi/aic7xxx.c | read_seeprom(int base, struct seeprom_config *sc) |
base | 2436 | drivers/scsi/aic7xxx.c | while ((inb(SEECTL(base)) & SEERDY) == 0) \ |
base | 2448 | drivers/scsi/aic7xxx.c | outb(SEEMS, SEECTL(base)); |
base | 2450 | drivers/scsi/aic7xxx.c | while ((jiffies < timeout) && ((inb(SEECTL(base)) & SEERDY) == 0)) |
base | 2454 | drivers/scsi/aic7xxx.c | if ((inb(SEECTL(base)) & SEERDY) == 0) |
base | 2456 | drivers/scsi/aic7xxx.c | outb(0, SEECTL(base)); |
base | 2469 | drivers/scsi/aic7xxx.c | outb(SEEMS | SEECK | SEECS, SEECTL(base)); |
base | 2470 | drivers/scsi/aic7xxx.c | CLOCK_PULSE(base); |
base | 2479 | drivers/scsi/aic7xxx.c | outb(temp, SEECTL(base)); |
base | 2480 | drivers/scsi/aic7xxx.c | CLOCK_PULSE(base); |
base | 2482 | drivers/scsi/aic7xxx.c | outb(temp, SEECTL(base)); |
base | 2483 | drivers/scsi/aic7xxx.c | CLOCK_PULSE(base); |
base | 2491 | drivers/scsi/aic7xxx.c | outb(temp, SEECTL(base)); |
base | 2492 | drivers/scsi/aic7xxx.c | CLOCK_PULSE(base); |
base | 2494 | drivers/scsi/aic7xxx.c | outb(temp, SEECTL(base)); |
base | 2495 | drivers/scsi/aic7xxx.c | CLOCK_PULSE(base); |
base | 2507 | drivers/scsi/aic7xxx.c | outb(temp, SEECTL(base)); |
base | 2508 | drivers/scsi/aic7xxx.c | CLOCK_PULSE(base); |
base | 2510 | drivers/scsi/aic7xxx.c | seeprom[k] = (seeprom[k] << 1) | (inb(SEECTL(base)) & SEEDI); |
base | 2511 | drivers/scsi/aic7xxx.c | outb(temp, SEECTL(base)); |
base | 2512 | drivers/scsi/aic7xxx.c | CLOCK_PULSE(base); |
base | 2527 | drivers/scsi/aic7xxx.c | outb(SEEMS, SEECTL(base)); |
base | 2528 | drivers/scsi/aic7xxx.c | CLOCK_PULSE(base); |
base | 2529 | drivers/scsi/aic7xxx.c | outb(SEEMS | SEECK, SEECTL(base)); |
base | 2530 | drivers/scsi/aic7xxx.c | CLOCK_PULSE(base); |
base | 2531 | drivers/scsi/aic7xxx.c | outb(SEEMS, SEECTL(base)); |
base | 2532 | drivers/scsi/aic7xxx.c | CLOCK_PULSE(base); |
base | 2556 | drivers/scsi/aic7xxx.c | outb(0, SEECTL(base)); |
base | 2568 | drivers/scsi/aic7xxx.c | detect_maxscb(aha_type type, int base) |
base | 2586 | drivers/scsi/aic7xxx.c | sblkctl_reg = inb(SBLKCTL(base)) ^ AUTOFLUSHDIS; |
base | 2587 | drivers/scsi/aic7xxx.c | outb(sblkctl_reg, SBLKCTL(base)); |
base | 2588 | drivers/scsi/aic7xxx.c | if (inb(SBLKCTL(base)) == sblkctl_reg) |
base | 2591 | drivers/scsi/aic7xxx.c | outb(sblkctl_reg ^ AUTOFLUSHDIS, SBLKCTL(base)); |
base | 2637 | drivers/scsi/aic7xxx.c | int base, unsigned char irq) |
base | 2653 | drivers/scsi/aic7xxx.c | config.base = base; |
base | 2663 | drivers/scsi/aic7xxx.c | request_region(MINREG(base), MAXREG(base) - MINREG(base), "aic7xxx"); |
base | 2669 | drivers/scsi/aic7xxx.c | printk("aha274x: aic7770 hcntrl=0x%x\n", inb(HCNTRL(config.base))); |
base | 2681 | drivers/scsi/aic7xxx.c | config.unpause = (inb(HCNTRL(config.base)) & IRQMS) | INTEN; |
base | 2703 | drivers/scsi/aic7xxx.c | outb(config.pause | CHIPRST, HCNTRL(config.base)); |
base | 2705 | drivers/scsi/aic7xxx.c | if (inb(HCNTRL(config.base)) & CHIPRST) |
base | 2709 | drivers/scsi/aic7xxx.c | outb(config.pause, HCNTRL(config.base)); |
base | 2715 | drivers/scsi/aic7xxx.c | config.irq = inb(HA_INTDEF(config.base)) & 0x0F; |
base | 2716 | drivers/scsi/aic7xxx.c | host_conf = inb(HA_HOSTCONF(config.base)); |
base | 2720 | drivers/scsi/aic7xxx.c | outb(host_conf & DFTHRSH, BUSSPD(config.base)); |
base | 2721 | drivers/scsi/aic7xxx.c | outb((host_conf << 2) & BOFF, BUSTIME(config.base)); |
base | 2732 | drivers/scsi/aic7xxx.c | printk("aha284x: aic7770 hcntrl=0x%x\n", inb(HCNTRL(config.base))); |
base | 2734 | drivers/scsi/aic7xxx.c | outb(CHIPRST, HCNTRL(config.base)); |
base | 2738 | drivers/scsi/aic7xxx.c | config.irq = inb(HA_INTDEF(config.base)) & 0x0F; |
base | 2739 | drivers/scsi/aic7xxx.c | host_conf = inb(HA_HOSTCONF(config.base)); |
base | 2743 | drivers/scsi/aic7xxx.c | outb(host_conf & DFTHRSH, BUSSPD(config.base)); |
base | 2744 | drivers/scsi/aic7xxx.c | outb((host_conf << 2) & BOFF, BUSTIME(config.base)); |
base | 2757 | drivers/scsi/aic7xxx.c | printk("aic%s hcntrl=0x%x\n", board_name[type], inb(HCNTRL(config.base))); |
base | 2760 | drivers/scsi/aic7xxx.c | outb(CHIPRST, HCNTRL(config.base)); |
base | 2767 | drivers/scsi/aic7xxx.c | have_seeprom = read_seeprom(base, &sc); |
base | 2790 | drivers/scsi/aic7xxx.c | outb(inb(DSPCISTATUS(config.base)) | DFTHRESH, DSPCISTATUS(config.base)); |
base | 2791 | drivers/scsi/aic7xxx.c | outb(config.scsi_id | DFTHRESH, HA_SCSICONF(config.base)); |
base | 2796 | drivers/scsi/aic7xxx.c | outb(config.scsi_id, (HA_SCSICONF(config.base) + 1)); |
base | 2809 | drivers/scsi/aic7xxx.c | config.maxscb = detect_maxscb(type, base); |
base | 2827 | drivers/scsi/aic7xxx.c | sblkctl = inb(SBLKCTL(base)) & 0x0F; /* mask out upper two bits */ |
base | 2831 | drivers/scsi/aic7xxx.c | config.scsi_id = inb(HA_SCSICONF(base)) & 0x07; |
base | 2833 | drivers/scsi/aic7xxx.c | outb(0, HA_FLAGS(base)); |
base | 2837 | drivers/scsi/aic7xxx.c | config.scsi_id = inb(HA_SCSICONF(base) + 1) & 0x0F; |
base | 2841 | drivers/scsi/aic7xxx.c | outb(WIDE_BUS, HA_FLAGS(base)); |
base | 2845 | drivers/scsi/aic7xxx.c | config.scsi_id = inb(HA_SCSICONF(base)) & 0x07; |
base | 2847 | drivers/scsi/aic7xxx.c | config.scsi_id_b = inb(HA_SCSICONF(base) + 1) & 0x07; |
base | 2851 | drivers/scsi/aic7xxx.c | outb(TWIN_BUS, HA_FLAGS(base)); |
base | 2856 | drivers/scsi/aic7xxx.c | outb(0, HA_FLAGS(base)); |
base | 2862 | drivers/scsi/aic7xxx.c | "mail deang@ims.com\n", inb(SBLKCTL(base))); |
base | 2863 | drivers/scsi/aic7xxx.c | outb(0, HA_FLAGS(base)); |
base | 2873 | drivers/scsi/aic7xxx.c | outb(sblkctl, SBLKCTL(base)); |
base | 2972 | drivers/scsi/aic7xxx.c | p->base = config.base; |
base | 3026 | drivers/scsi/aic7xxx.c | aic7xxx_loadseq(base); |
base | 3029 | drivers/scsi/aic7xxx.c | outb(FASTMODE, SEQCTL(base)); |
base | 3033 | drivers/scsi/aic7xxx.c | outb(ENABLE, BCTL(base)); |
base | 3047 | drivers/scsi/aic7xxx.c | outb(config.scsi_id_b, SCSIID(base)); |
base | 3048 | drivers/scsi/aic7xxx.c | scsi_conf = inb(HA_SCSICONF(base) + 1) & (ENSPCHK | STIMESEL); |
base | 3050 | drivers/scsi/aic7xxx.c | outb(scsi_conf, SXFRCTL1(base)); |
base | 3051 | drivers/scsi/aic7xxx.c | outb(ENSELTIMO | ENSCSIPERR, SIMODE1(base)); |
base | 3053 | drivers/scsi/aic7xxx.c | outb(0, SBLKCTL(base)); |
base | 3055 | drivers/scsi/aic7xxx.c | outb(config.scsi_id, SCSIID(base)); |
base | 3056 | drivers/scsi/aic7xxx.c | scsi_conf = inb(HA_SCSICONF(base)) & (ENSPCHK | STIMESEL); |
base | 3057 | drivers/scsi/aic7xxx.c | outb(scsi_conf | ENSTIMER | ACTNEGEN | STPWEN, SXFRCTL1(base)); |
base | 3058 | drivers/scsi/aic7xxx.c | outb(ENSELTIMO | ENSCSIPERR, SIMODE1(base)); |
base | 3096 | drivers/scsi/aic7xxx.c | target_settings = inb(HA_TARG_SCRATCH(base) + i); |
base | 3116 | drivers/scsi/aic7xxx.c | outb(target_settings, (HA_TARG_SCRATCH(base) + i)); |
base | 3132 | drivers/scsi/aic7xxx.c | outb(i, SCBPTR(base)); |
base | 3133 | drivers/scsi/aic7xxx.c | outb(0, SCBARRAY(base)); |
base | 3140 | drivers/scsi/aic7xxx.c | outb(config.maxscb, HA_SCBCOUNT(base)); |
base | 3145 | drivers/scsi/aic7xxx.c | outb(0, HA_ACTIVE0(base)); |
base | 3146 | drivers/scsi/aic7xxx.c | outb(0, HA_ACTIVE1(base)); |
base | 3149 | drivers/scsi/aic7xxx.c | outb (SCB_LIST_NULL, WAITING_SCBH(base)); |
base | 3150 | drivers/scsi/aic7xxx.c | outb (SCB_LIST_NULL, WAITING_SCBT(base)); |
base | 3173 | drivers/scsi/aic7xxx.c | outb(2, SBLKCTL(base)); |
base | 3174 | drivers/scsi/aic7xxx.c | outb(SCSIRSTO, SCSISEQ(base)); |
base | 3176 | drivers/scsi/aic7xxx.c | outb(0, SCSISEQ(base)); |
base | 3180 | drivers/scsi/aic7xxx.c | outb(0, SBLKCTL(base)); |
base | 3183 | drivers/scsi/aic7xxx.c | outb(SCSIRSTO, SCSISEQ(base)); |
base | 3185 | drivers/scsi/aic7xxx.c | outb(0, SCSISEQ(base)); |
base | 3209 | drivers/scsi/aic7xxx.c | int found = 0, slot, base; |
base | 3237 | drivers/scsi/aic7xxx.c | base = SLOTBASE(slot); |
base | 3239 | drivers/scsi/aic7xxx.c | if (check_region(MINREG(base), MAXREG(base) - MINREG(base))) |
base | 3248 | drivers/scsi/aic7xxx.c | type = aic7xxx_probe(slot, HID0(base)); |
base | 3257 | drivers/scsi/aic7xxx.c | printk("aic7xxx: hcntrl=0x%x\n", inb(HCNTRL(base))); |
base | 3258 | drivers/scsi/aic7xxx.c | outb(inb(HCNTRL(base)) | CHIPRST, HCNTRL(base)); |
base | 3259 | drivers/scsi/aic7xxx.c | irq = inb(HA_INTDEF(base)) & 0x0F; |
base | 3267 | drivers/scsi/aic7xxx.c | found += aic7xxx_register(template, type, base, irq); |
base | 3354 | drivers/scsi/aic7xxx.c | base = io_port - 0xC01; |
base | 3364 | drivers/scsi/aic7xxx.c | printk("aic7xxx: hcntrl=0x%x\n", inb(HCNTRL(base))); |
base | 3366 | drivers/scsi/aic7xxx.c | outb(inb(HCNTRL(base)) | CHIPRST, HCNTRL(base)); |
base | 3386 | drivers/scsi/aic7xxx.c | found += aic7xxx_register(template, type, base, irq); |
base | 3622 | drivers/scsi/aic7xxx.c | curscb = inb(SCBPTR(p->base)); |
base | 3623 | drivers/scsi/aic7xxx.c | outb(scb->position, SCBPTR(p->base)); |
base | 3624 | drivers/scsi/aic7xxx.c | aic7xxx_putdmascb(p->base, scb); |
base | 3625 | drivers/scsi/aic7xxx.c | outb(curscb, SCBPTR(p->base)); |
base | 3664 | drivers/scsi/aic7xxx.c | aic7xxx_putscb(p->base, scb); |
base | 3666 | drivers/scsi/aic7xxx.c | old_scbptr = inb(SCBPTR(p->base)); |
base | 3667 | drivers/scsi/aic7xxx.c | outb(scb->position, SCBPTR(p->base)); |
base | 3669 | drivers/scsi/aic7xxx.c | aic7xxx_putscb(p->base, scb); |
base | 3671 | drivers/scsi/aic7xxx.c | outb(scb->position, QINFIFO(p->base)); |
base | 3672 | drivers/scsi/aic7xxx.c | outb(old_scbptr, SCBPTR(p->base)); |
base | 3747 | drivers/scsi/aic7xxx.c | queued = inb(QINCNT(p->base)); |
base | 3751 | drivers/scsi/aic7xxx.c | scbsave[i] = inb(QINFIFO(p->base)); |
base | 3762 | drivers/scsi/aic7xxx.c | outb(scbsave[queued], QINFIFO(p->base)); |
base | 3771 | drivers/scsi/aic7xxx.c | active_scb = inb(SCBPTR(p->base)); |
base | 3782 | drivers/scsi/aic7xxx.c | outb(scb->position, SCBPTR(p->base)); |
base | 3783 | drivers/scsi/aic7xxx.c | scb_control = inb(SCBARRAY(p->base)); |
base | 3785 | drivers/scsi/aic7xxx.c | outb(scb_control, SCBARRAY(p->base)); |
base | 3786 | drivers/scsi/aic7xxx.c | outb(active_scb, SCBPTR(p->base)); |
base | 3791 | drivers/scsi/aic7xxx.c | scb_control = inb(SCBARRAY(p->base)); |
base | 3795 | drivers/scsi/aic7xxx.c | outb(scb_control, SCBARRAY(p->base)); |
base | 3806 | drivers/scsi/aic7xxx.c | flags = inb(HA_FLAGS(p->base)); |
base | 3817 | drivers/scsi/aic7xxx.c | outb(0, HA_ACTIVE1(p->base)); |
base | 3827 | drivers/scsi/aic7xxx.c | outb(0, HA_ACTIVE0(p->base)); |
base | 3828 | drivers/scsi/aic7xxx.c | outb(0, HA_ACTIVE1(p->base)); |
base | 3834 | drivers/scsi/aic7xxx.c | outb(0, HA_ACTIVE0(p->base)); |
base | 3838 | drivers/scsi/aic7xxx.c | outb(SCSIRSTO, SCSISEQ(p->base)); |
base | 3840 | drivers/scsi/aic7xxx.c | outb(0, SCSISEQ(p->base)); |
base | 3847 | drivers/scsi/aic7xxx.c | outb(flags | ACTIVE_MSG, HA_FLAGS(p->base)); /* active message */ |
base | 3848 | drivers/scsi/aic7xxx.c | outb(1, HA_MSG_LEN(p->base)); /* length = 1 */ |
base | 3849 | drivers/scsi/aic7xxx.c | outb(message, HA_MSG_START(p->base)); /* message body */ |
base | 3856 | drivers/scsi/aic7xxx.c | outb(inb(HA_SIGSTATE(p->base)) | 0x10, SCSISIGO(p->base)); |
base | 3974 | drivers/scsi/aic7xxx.c | outb(SCSIRSTO, SCSISEQ(p->base)); |
base | 3976 | drivers/scsi/aic7xxx.c | outb(0, SCSISEQ(p->base)); |
base | 193 | drivers/scsi/buslogic.c | static int setup_mailboxes(unsigned int base, struct Scsi_Host *shpnt); |
base | 196 | drivers/scsi/buslogic.c | #define INTR_RESET(base) outb(RINT, CONTROL(base)) |
base | 245 | drivers/scsi/buslogic.c | static void buslogic_stat(unsigned int base) |
base | 247 | drivers/scsi/buslogic.c | int s = inb(STATUS(base)), i = inb(INTERRUPT(base)); |
base | 256 | drivers/scsi/buslogic.c | static int buslogic_out(unsigned int base, const unsigned char *cmdp, |
base | 263 | drivers/scsi/buslogic.c | WAIT_WHILE(STATUS(base), CPRBSY); |
base | 266 | drivers/scsi/buslogic.c | if (!(inb(STATUS(base)) & CPRBSY)) { |
base | 267 | drivers/scsi/buslogic.c | outb(*cmdp, COMMAND_PARAMETER(base)); |
base | 277 | drivers/scsi/buslogic.c | WAIT_WHILE(STATUS(base), CPRBSY); |
base | 278 | drivers/scsi/buslogic.c | outb(*cmdp++, COMMAND_PARAMETER(base)); |
base | 286 | drivers/scsi/buslogic.c | buslogic_stat(base); |
base | 293 | drivers/scsi/buslogic.c | static int buslogic_in(unsigned int base, unsigned char *cmdp, size_t len) |
base | 300 | drivers/scsi/buslogic.c | WAIT_UNTIL_FAST(STATUS(base), DIRRDY); |
base | 301 | drivers/scsi/buslogic.c | *cmdp++ = inb(DATA_IN(base)); |
base | 309 | drivers/scsi/buslogic.c | buslogic_stat(base); |
base | 455 | drivers/scsi/buslogic.c | int base, interrupt_flags, found, i; |
base | 467 | drivers/scsi/buslogic.c | base = shpnt->io_port; |
base | 476 | drivers/scsi/buslogic.c | interrupt_flags = inb(INTERRUPT(base)); |
base | 487 | drivers/scsi/buslogic.c | INTR_RESET(base); |
base | 804 | drivers/scsi/buslogic.c | static int setup_mailboxes(unsigned int base, struct Scsi_Host *shpnt) |
base | 812 | drivers/scsi/buslogic.c | void *base PACKED; |
base | 819 | drivers/scsi/buslogic.c | INTR_RESET(base); /* reset interrupts, so they don't block */ |
base | 821 | drivers/scsi/buslogic.c | if (buslogic_out(base, (unsigned char *)&cmd, sizeof cmd)) |
base | 823 | drivers/scsi/buslogic.c | WAIT_UNTIL(INTERRUPT(base), CMDC); |
base | 832 | drivers/scsi/buslogic.c | INTR_RESET(base); |
base | 837 | drivers/scsi/buslogic.c | static int getconfig(unsigned int base, unsigned char *irq, |
base | 850 | drivers/scsi/buslogic.c | i = inb(STATUS(base)); |
base | 852 | drivers/scsi/buslogic.c | i = inb(DATA_IN(base)); |
base | 854 | drivers/scsi/buslogic.c | buslogic_out(base, inquiry_cmd, 1); |
base | 855 | drivers/scsi/buslogic.c | if (buslogic_in(base, inquiry_result, 3)) |
base | 857 | drivers/scsi/buslogic.c | WAIT_UNTIL_FAST(INTERRUPT(base), CMDC); |
base | 858 | drivers/scsi/buslogic.c | INTR_RESET(base); |
base | 890 | drivers/scsi/buslogic.c | if (buslogic_out(base, inquiry_cmd, 2)) |
base | 892 | drivers/scsi/buslogic.c | if (buslogic_in(base, inquiry_result, inquiry_cmd[1])) |
base | 894 | drivers/scsi/buslogic.c | WAIT_UNTIL_FAST(INTERRUPT(base), CMDC); |
base | 895 | drivers/scsi/buslogic.c | if (inb(STATUS(base)) & CMDINV) |
base | 897 | drivers/scsi/buslogic.c | INTR_RESET(base); |
base | 945 | drivers/scsi/buslogic.c | static int buslogic_query(unsigned int base, unsigned char *trans, |
base | 961 | drivers/scsi/buslogic.c | if (inb(STATUS(base)) == 0xFF) |
base | 965 | drivers/scsi/buslogic.c | geo = inb(GEOMETRY(base)); |
base | 975 | drivers/scsi/buslogic.c | INTR_RESET(base); |
base | 979 | drivers/scsi/buslogic.c | outb(RSOFT | RINT/* | RSBUS*/, CONTROL(base)); |
base | 986 | drivers/scsi/buslogic.c | WAIT(STATUS(base), INREQ | HARDY, DACT | DFAIL | CMDINV | DIRRDY | CPRBSY); |
base | 989 | drivers/scsi/buslogic.c | if (inb(INTERRUPT(base)) & INTRMASK) |
base | 997 | drivers/scsi/buslogic.c | buslogic_out(base, inquiry_cmd, 1); |
base | 998 | drivers/scsi/buslogic.c | if (buslogic_in(base, inquiry_result, 4)) |
base | 1001 | drivers/scsi/buslogic.c | if (inb(STATUS(base)) & DIRRDY) |
base | 1003 | drivers/scsi/buslogic.c | WAIT_UNTIL_FAST(INTERRUPT(base), CMDC); |
base | 1004 | drivers/scsi/buslogic.c | INTR_RESET(base); |
base | 1015 | drivers/scsi/buslogic.c | if (getconfig(base, irq, dma, id, bus_type, max_sg, bios)) |
base | 1042 | drivers/scsi/buslogic.c | buslogic_out(base, inquiry_cmd, 1); |
base | 1043 | drivers/scsi/buslogic.c | if (buslogic_in(base, inquiry_result, 1)) |
base | 1045 | drivers/scsi/buslogic.c | WAIT_UNTIL_FAST(INTERRUPT(base), CMDC); |
base | 1046 | drivers/scsi/buslogic.c | INTR_RESET(base); |
base | 1051 | drivers/scsi/buslogic.c | buslogic_out(base, inquiry_cmd, 1); |
base | 1052 | drivers/scsi/buslogic.c | if (buslogic_in(base, inquiry_result, 1)) |
base | 1054 | drivers/scsi/buslogic.c | WAIT_UNTIL_FAST(INTERRUPT(base), CMDC); |
base | 1055 | drivers/scsi/buslogic.c | INTR_RESET(base); |
base | 1063 | drivers/scsi/buslogic.c | buslogic_out(base, inquiry_cmd, 2); |
base | 1064 | drivers/scsi/buslogic.c | if (buslogic_in(base, inquiry_result, inquiry_cmd[1])) |
base | 1066 | drivers/scsi/buslogic.c | WAIT_UNTIL_FAST(INTERRUPT(base), CMDC); |
base | 1067 | drivers/scsi/buslogic.c | INTR_RESET(base); |
base | 1113 | drivers/scsi/buslogic.c | unsigned int base; |
base | 1137 | drivers/scsi/buslogic.c | base = bases[indx]; |
base | 1141 | drivers/scsi/buslogic.c | if (buslogic_query(base, &bios_translation, &irq, &dma, &id, |
base | 1146 | drivers/scsi/buslogic.c | buslogic_stat(base); |
base | 1181 | drivers/scsi/buslogic.c | if (setup_mailboxes(base, shpnt)) |
base | 1192 | drivers/scsi/buslogic.c | INTR_RESET(base); |
base | 1193 | drivers/scsi/buslogic.c | buslogic_out(base, oncmd, sizeof oncmd); |
base | 1194 | drivers/scsi/buslogic.c | WAIT_UNTIL(INTERRUPT(base), CMDC); |
base | 1195 | drivers/scsi/buslogic.c | INTR_RESET(base); |
base | 1196 | drivers/scsi/buslogic.c | buslogic_out(base, offcmd, sizeof offcmd); |
base | 1197 | drivers/scsi/buslogic.c | WAIT_UNTIL(INTERRUPT(base), CMDC); |
base | 1202 | drivers/scsi/buslogic.c | INTR_RESET(base); |
base | 1213 | drivers/scsi/buslogic.c | base, irq); |
base | 1227 | drivers/scsi/buslogic.c | buslogic_stat(base); |
base | 1270 | drivers/scsi/buslogic.c | shpnt->base = (unsigned char *)bios; |
base | 1271 | drivers/scsi/buslogic.c | shpnt->io_port = base; |
base | 63 | drivers/scsi/buslogic.h | #define STATUS(base) (base) |
base | 73 | drivers/scsi/buslogic.h | #define DATA_IN(base) (STATUS(base) + 1) |
base | 75 | drivers/scsi/buslogic.h | #define INTERRUPT(base) (STATUS(base) + 2) |
base | 85 | drivers/scsi/buslogic.h | #define GEOMETRY(base) (STATUS(base) + 3) |
base | 93 | drivers/scsi/buslogic.h | #define CONTROL(base) STATUS(base) |
base | 100 | drivers/scsi/buslogic.h | #define COMMAND_PARAMETER(base) (STATUS(base) + 1) |
base | 163 | drivers/scsi/eata_dma.c | uint base; |
base | 174 | drivers/scsi/eata_dma.c | if (!(inb((uint)sh->base + HA_RAUXSTAT) & HA_AIRQ)) |
base | 183 | drivers/scsi/eata_dma.c | base = (uint) cmd->host->base; |
base | 190 | drivers/scsi/eata_dma.c | eata_stat = inb(base + HA_RSTATUS); |
base | 193 | drivers/scsi/eata_dma.c | "%lx, irq%d\n", base, (long)cp, eata_stat, hba_stat, |
base | 202 | drivers/scsi/eata_dma.c | eata_stat = inb(base + HA_RSTATUS); |
base | 209 | drivers/scsi/eata_dma.c | eata_stat = inb(base + HA_RSTATUS); |
base | 212 | drivers/scsi/eata_dma.c | irq, base, cmd->pid, cmd->target, cmd->lun, |
base | 306 | drivers/scsi/eata_dma.c | inline int eata_send_command(u32 addr, u32 base, u8 command) |
base | 310 | drivers/scsi/eata_dma.c | while (inb(base + HA_RAUXSTAT) & HA_ABUSY) |
base | 315 | drivers/scsi/eata_dma.c | outb( addr & 0x000000ff, base + HA_WDMAADDR); |
base | 316 | drivers/scsi/eata_dma.c | outb((addr & 0x0000ff00) >> 8, base + HA_WDMAADDR + 1); |
base | 317 | drivers/scsi/eata_dma.c | outb((addr & 0x00ff0000) >> 16, base + HA_WDMAADDR + 2); |
base | 318 | drivers/scsi/eata_dma.c | outb((addr & 0xff000000) >> 24, base + HA_WDMAADDR + 3); |
base | 319 | drivers/scsi/eata_dma.c | outb(command, base + HA_WCOMMAND); |
base | 324 | drivers/scsi/eata_dma.c | inline int eata_send_immediate(u32 addr, u32 base, u8 cmnd, u8 cmnd2, u8 id, |
base | 328 | drivers/scsi/eata_dma.c | outb( addr & 0x000000ff, base + HA_WDMAADDR); |
base | 329 | drivers/scsi/eata_dma.c | outb((addr & 0x0000ff00) >> 8, base + HA_WDMAADDR + 1); |
base | 330 | drivers/scsi/eata_dma.c | outb((addr & 0x00ff0000) >> 16, base + HA_WDMAADDR + 2); |
base | 331 | drivers/scsi/eata_dma.c | outb((addr & 0xff000000) >> 24, base + HA_WDMAADDR + 3); |
base | 333 | drivers/scsi/eata_dma.c | outb(id, base + HA_WSUBCODE); |
base | 334 | drivers/scsi/eata_dma.c | outb(lun, base + HA_WSUBLUN); |
base | 337 | drivers/scsi/eata_dma.c | outb(cmnd2, base + HA_WCOMMAND2); |
base | 338 | drivers/scsi/eata_dma.c | outb(cmnd, base + HA_WCOMMAND); |
base | 506 | drivers/scsi/eata_dma.c | if(eata_send_command((u32) cp, (u32) sh->base, EATA_CMD_DMA_SEND_CP) == FALSE) { |
base | 516 | drivers/scsi/eata_dma.c | "slot %d irq %d\n", (s32)sh->base, cmd->pid, |
base | 538 | drivers/scsi/eata_dma.c | while (inb((u32)(cmd->host->base) + HA_RAUXSTAT) & HA_ABUSY) |
base | 594 | drivers/scsi/eata_dma.c | while (inb((u32)(cmd->host->base) + HA_RAUXSTAT) & HA_ABUSY) |
base | 633 | drivers/scsi/eata_dma.c | inb((u32) (cmd->host->base) + HA_RSTATUS); /* This might cause trouble */ |
base | 634 | drivers/scsi/eata_dma.c | eata_send_command(0, (u32) cmd->host->base, EATA_CMD_RESET); |
base | 686 | drivers/scsi/eata_dma.c | char * get_board_data(u32 base, u32 irq, u32 id) |
base | 725 | drivers/scsi/eata_dma.c | fake_int_base = base; |
base | 729 | drivers/scsi/eata_dma.c | eata_send_command((u32) cp, (u32) base, EATA_CMD_DMA_SEND_CP); |
base | 745 | drivers/scsi/eata_dma.c | inb((u32) (base) + HA_RSTATUS); |
base | 746 | drivers/scsi/eata_dma.c | eata_send_command(0, base, EATA_CMD_RESET); |
base | 755 | drivers/scsi/eata_dma.c | int check_blink_state(long base) |
base | 765 | drivers/scsi/eata_dma.c | state = inl((uint) base + 1); |
base | 777 | drivers/scsi/eata_dma.c | int get_conf_PIO(u32 base, struct get_conf *buf) |
base | 782 | drivers/scsi/eata_dma.c | if(check_region(base, 9)) |
base | 787 | drivers/scsi/eata_dma.c | while (inb(base + HA_RSTATUS) & HA_SBUSY) |
base | 792 | drivers/scsi/eata_dma.c | printk("Issuing PIO READ CONFIG to HBA at %#x\n", base)); |
base | 793 | drivers/scsi/eata_dma.c | eata_send_command(0, base, EATA_CMD_PIO_READ_CONFIG); |
base | 798 | drivers/scsi/eata_dma.c | while (!(inb(base + HA_RSTATUS) & HA_SDRQ)) |
base | 803 | drivers/scsi/eata_dma.c | *p = inw(base + HA_RDATA); |
base | 806 | drivers/scsi/eata_dma.c | if (!(inb(base + HA_RSTATUS) & HA_SERROR)) { /* Error ? */ |
base | 809 | drivers/scsi/eata_dma.c | "EATA Level: %x\n", (uint) base, |
base | 812 | drivers/scsi/eata_dma.c | while (inb(base + HA_RSTATUS) & HA_SDRQ) |
base | 813 | drivers/scsi/eata_dma.c | inw(base + HA_RDATA); |
base | 818 | drivers/scsi/eata_dma.c | "for HBA at %lx\n", (long)base)); |
base | 842 | drivers/scsi/eata_dma.c | short register_HBA(u32 base, struct get_conf *gc, Scsi_Host_Template * tpnt, |
base | 858 | drivers/scsi/eata_dma.c | "Please use the EATA-PIO driver.\n", base); |
base | 888 | drivers/scsi/eata_dma.c | dma_channel, base); |
base | 901 | drivers/scsi/eata_dma.c | buff = get_board_data(base, gc->IRQ, gc->scsi_id[3]); |
base | 910 | drivers/scsi/eata_dma.c | printk("HBA at %#.4x doesn't support DMA. Sorry\n", base); |
base | 913 | drivers/scsi/eata_dma.c | base); |
base | 929 | drivers/scsi/eata_dma.c | &buff[16], base); |
base | 931 | drivers/scsi/eata_dma.c | request_region(base, 9, "eata_dma"); /* We already checked the |
base | 1028 | drivers/scsi/eata_dma.c | sh->unique_id = base; |
base | 1029 | drivers/scsi/eata_dma.c | sh->base = (char *) base; |
base | 1030 | drivers/scsi/eata_dma.c | sh->io_port = base; |
base | 1105 | drivers/scsi/eata_dma.c | u32 base; |
base | 1115 | drivers/scsi/eata_dma.c | base = 0x1c88 + (i * 0x1000); |
base | 1117 | drivers/scsi/eata_dma.c | pal1 = inb((u16)base - 8); |
base | 1118 | drivers/scsi/eata_dma.c | pal2 = inb((u16)base - 7); |
base | 1119 | drivers/scsi/eata_dma.c | pal3 = inb((u16)base - 6); |
base | 1127 | drivers/scsi/eata_dma.c | if (get_conf_PIO(base, buf) == TRUE) { |
base | 1130 | drivers/scsi/eata_dma.c | register_HBA(base, buf, tpnt, IS_EISA); |
base | 1134 | drivers/scsi/eata_dma.c | if (check_blink_state(base)) |
base | 1177 | drivers/scsi/eata_dma.c | u32 base = 0; |
base | 1218 | drivers/scsi/eata_dma.c | PCI_BASE_ADDRESS_0, (int *) &base))){ |
base | 1221 | drivers/scsi/eata_dma.c | if (base & 0x01) { |
base | 1222 | drivers/scsi/eata_dma.c | base &= 0xfffffffe; |
base | 1224 | drivers/scsi/eata_dma.c | pal1 = inb(base); |
base | 1225 | drivers/scsi/eata_dma.c | pal2 = inb(base + 1); |
base | 1226 | drivers/scsi/eata_dma.c | pal3 = inb(base + 2); |
base | 1230 | drivers/scsi/eata_dma.c | base += 0x08; |
base | 1232 | drivers/scsi/eata_dma.c | base += 0x10; /* Now, THIS is the real address */ |
base | 1234 | drivers/scsi/eata_dma.c | if (base != 0x1f8) { |
base | 1236 | drivers/scsi/eata_dma.c | if (get_conf_PIO(base, buf) == TRUE) { |
base | 1243 | drivers/scsi/eata_dma.c | register_HBA(base, buf, tpnt, IS_PCI); |
base | 1245 | drivers/scsi/eata_dma.c | if (base < 0x1000) { |
base | 1247 | drivers/scsi/eata_dma.c | if (ISAbases[x] == base) { |
base | 1252 | drivers/scsi/eata_dma.c | } else if ((base & 0x0fff) == 0x0c88) |
base | 1253 | drivers/scsi/eata_dma.c | EISAbases[(base >> 12) & 0x0f] = 0; |
base | 1255 | drivers/scsi/eata_dma.c | } else if (check_blink_state(base) == TRUE) { |
base | 1321 | drivers/scsi/eata_dma.c | (u32) HBA_ptr->base, HBA_ptr->irq); |
base | 147 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "Base IO : %#.4x\n", (u32) HBA_ptr->base); |
base | 222 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "Base IO : %#.4x\n", (u32) HBA_ptr->base); |
base | 134 | drivers/scsi/eata_pio.c | uint base; |
base | 147 | drivers/scsi/eata_pio.c | if (inb((uint)sh->base + HA_RSTATUS) & HA_SBUSY) |
base | 156 | drivers/scsi/eata_pio.c | base = (uint) cmd->host->base; |
base | 160 | drivers/scsi/eata_pio.c | stat=inb(base+HA_RSTATUS); |
base | 174 | drivers/scsi/eata_pio.c | insw(base+HA_RDATA,cmd->SCp.ptr,x); |
base | 179 | drivers/scsi/eata_pio.c | zwickel=inw(base+HA_RDATA); |
base | 186 | drivers/scsi/eata_pio.c | zwickel=inw(base+HA_RDATA); |
base | 199 | drivers/scsi/eata_pio.c | outw(zwickel,base+HA_RDATA); |
base | 204 | drivers/scsi/eata_pio.c | outsw(base+HA_RDATA,cmd->SCp.ptr,x); |
base | 216 | drivers/scsi/eata_pio.c | outw(zwickel,base+HA_RDATA); |
base | 232 | drivers/scsi/eata_pio.c | if (!(inb(base+HA_RSTATUS)&HA_SERROR)) |
base | 243 | drivers/scsi/eata_pio.c | eata_stat = inb(base + HA_RSTATUS); |
base | 268 | drivers/scsi/eata_pio.c | inline uint eata_pio_send_command(uint base, unchar command) |
base | 272 | drivers/scsi/eata_pio.c | while (inb(base + HA_RSTATUS) & HA_SBUSY) |
base | 276 | drivers/scsi/eata_pio.c | outb(command, base + HA_WCOMMAND); |
base | 284 | drivers/scsi/eata_pio.c | uint base; |
base | 297 | drivers/scsi/eata_pio.c | base = (uint) sh->base; |
base | 379 | drivers/scsi/eata_pio.c | if (eata_pio_send_command(base, EATA_CMD_PIO_SEND_CP)) |
base | 389 | drivers/scsi/eata_pio.c | while (!(inb(base + HA_RSTATUS) & HA_SDRQ)); |
base | 390 | drivers/scsi/eata_pio.c | outsw(base + HA_RDATA, cp, hd->cplen); |
base | 391 | drivers/scsi/eata_pio.c | outb(EATA_CMD_PIO_TRUNC, base + HA_WCOMMAND); |
base | 392 | drivers/scsi/eata_pio.c | for (x = 0; x < hd->cppadlen; x++) outw(0, base + HA_RDATA); |
base | 395 | drivers/scsi/eata_pio.c | "slot %d irq %d\n", (long)sh->base, cmd->pid, |
base | 417 | drivers/scsi/eata_pio.c | while (inb((uint)(cmd->host->base) + HA_RAUXSTAT) & HA_ABUSY) |
base | 494 | drivers/scsi/eata_pio.c | outb((uint) cmd->host->base+HA_WCOMMAND, EATA_CMD_RESET); |
base | 537 | drivers/scsi/eata_pio.c | char * get_pio_board_data(ulong base, uint irq, uint id, ulong cplen, ushort cppadlen) |
base | 562 | drivers/scsi/eata_pio.c | if (eata_pio_send_command((uint) base, EATA_CMD_PIO_SEND_CP)) |
base | 564 | drivers/scsi/eata_pio.c | while (!(inb(base + HA_RSTATUS) & HA_SDRQ)); |
base | 565 | drivers/scsi/eata_pio.c | outsw(base + HA_RDATA, &cp, cplen); |
base | 566 | drivers/scsi/eata_pio.c | outb(EATA_CMD_PIO_TRUNC, base + HA_WCOMMAND); |
base | 567 | drivers/scsi/eata_pio.c | for (z = 0; z < cppadlen; z++) outw(0, base + HA_RDATA); |
base | 569 | drivers/scsi/eata_pio.c | while (inb(base + HA_RSTATUS) & HA_SBUSY); |
base | 570 | drivers/scsi/eata_pio.c | if (inb(base + HA_RSTATUS) & HA_SERROR) |
base | 572 | drivers/scsi/eata_pio.c | else if (!(inb(base + HA_RSTATUS) & HA_SDRQ)) |
base | 576 | drivers/scsi/eata_pio.c | insw(base+HA_RDATA, &buff, 127); |
base | 577 | drivers/scsi/eata_pio.c | while (inb(base + HA_RSTATUS)&HA_SDRQ) inw(base + HA_RDATA); |
base | 582 | drivers/scsi/eata_pio.c | int get_pio_conf_PIO(u32 base, struct get_conf *buf) |
base | 588 | drivers/scsi/eata_pio.c | if(check_region(base, 9)) |
base | 593 | drivers/scsi/eata_pio.c | while (inb(base + HA_RSTATUS) & HA_SBUSY) |
base | 598 | drivers/scsi/eata_pio.c | printk("Issuing PIO READ CONFIG to HBA at %#x\n", base)); |
base | 599 | drivers/scsi/eata_pio.c | eata_pio_send_command(base, EATA_CMD_PIO_READ_CONFIG); |
base | 604 | drivers/scsi/eata_pio.c | while (!(inb(base + HA_RSTATUS) & HA_SDRQ)) |
base | 609 | drivers/scsi/eata_pio.c | *p = inw(base + HA_RDATA); |
base | 611 | drivers/scsi/eata_pio.c | if (!(inb(base + HA_RSTATUS) & HA_SERROR)) { /* Error ? */ |
base | 614 | drivers/scsi/eata_pio.c | "EATA Level: %x\n", base, |
base | 617 | drivers/scsi/eata_pio.c | while (inb(base + HA_RSTATUS) & HA_SDRQ) |
base | 618 | drivers/scsi/eata_pio.c | inw(base + HA_RDATA); |
base | 621 | drivers/scsi/eata_pio.c | if (base == ISAbases[z]) { |
base | 630 | drivers/scsi/eata_pio.c | "for HBA at %x\n", base)); |
base | 650 | drivers/scsi/eata_pio.c | static uint print_selftest(uint base) |
base | 658 | drivers/scsi/eata_pio.c | while (inb(base + HA_RSTATUS) & HA_SBUSY); |
base | 659 | drivers/scsi/eata_pio.c | outb(EATA_CMD_PIO_SETUPTEST, base + HA_WCOMMAND); |
base | 661 | drivers/scsi/eata_pio.c | while (inb(base + HA_RSTATUS) & HA_SBUSY) |
base | 663 | drivers/scsi/eata_pio.c | if (inb(base + HA_RSTATUS) & HA_SDRQ) |
base | 665 | drivers/scsi/eata_pio.c | insw(base + HA_RDATA, &buffer, 256); |
base | 672 | drivers/scsi/eata_pio.c | } while (inb(base+HA_RSTATUS) & (HA_SBUSY|HA_SDRQ)); |
base | 674 | drivers/scsi/eata_pio.c | return (!(inb(base+HA_RSTATUS) & HA_SERROR)); |
base | 677 | drivers/scsi/eata_pio.c | int register_pio_HBA(long base, struct get_conf *gc, Scsi_Host_Template * tpnt) |
base | 689 | drivers/scsi/eata_pio.c | printk("HBA at %#.4lx supports DMA. Please use EATA-DMA driver.\n",base); |
base | 694 | drivers/scsi/eata_pio.c | if ((buff = get_pio_board_data((uint)base, gc->IRQ, gc->scsi_id[3], |
base | 698 | drivers/scsi/eata_pio.c | printk("HBA at %#lx didn't react on INQUIRY. Sorry.\n", (ulong) base); |
base | 702 | drivers/scsi/eata_pio.c | if (print_selftest(base) == FALSE && ALLOW_DMA_BOARDS == FALSE) |
base | 705 | drivers/scsi/eata_pio.c | (ulong) base); |
base | 728 | drivers/scsi/eata_pio.c | request_region(base, 8, "eata_pio"); |
base | 786 | drivers/scsi/eata_pio.c | sh->unique_id = base; |
base | 787 | drivers/scsi/eata_pio.c | sh->base = (char *) base; |
base | 788 | drivers/scsi/eata_pio.c | sh->io_port = base; |
base | 837 | drivers/scsi/eata_pio.c | u32 base; |
base | 847 | drivers/scsi/eata_pio.c | base = 0x1c88 + (i * 0x1000); |
base | 849 | drivers/scsi/eata_pio.c | pal1 = inb((u16)base - 8); |
base | 850 | drivers/scsi/eata_pio.c | pal2 = inb((u16)base - 7); |
base | 851 | drivers/scsi/eata_pio.c | pal3 = inb((u16)base - 6); |
base | 859 | drivers/scsi/eata_pio.c | if (get_pio_conf_PIO(base, buf) == TRUE) { |
base | 862 | drivers/scsi/eata_pio.c | register_pio_HBA(base, buf, tpnt); |
base | 885 | drivers/scsi/eata_pio.c | u32 base = 0; |
base | 924 | drivers/scsi/eata_pio.c | PCI_BASE_ADDRESS_0, (int *) &base))){ |
base | 927 | drivers/scsi/eata_pio.c | if (base & 0x01) { |
base | 928 | drivers/scsi/eata_pio.c | base &= 0xfffffffe; |
base | 930 | drivers/scsi/eata_pio.c | if ((inb(base) == 0x12) && (inb(base + 1) == 0x14)) |
base | 932 | drivers/scsi/eata_pio.c | base += 0x10; /* Now, THIS is the real address */ |
base | 933 | drivers/scsi/eata_pio.c | if (base != 0x1f8) { |
base | 935 | drivers/scsi/eata_pio.c | if (get_pio_conf_PIO(base, buf) == TRUE) { |
base | 944 | drivers/scsi/eata_pio.c | register_pio_HBA(base, buf, tpnt); |
base | 946 | drivers/scsi/eata_pio.c | if (base < 0x1000) { |
base | 948 | drivers/scsi/eata_pio.c | if (ISAbases[x] == base) { |
base | 953 | drivers/scsi/eata_pio.c | } else if ((base & 0x0fff) == 0x0c88) { |
base | 954 | drivers/scsi/eata_pio.c | x = (base >> 12) & 0x0f; |
base | 1013 | drivers/scsi/eata_pio.c | (uint) HBA_ptr->base, HBA_ptr->irq, SD(HBA_ptr)->channel, |
base | 83 | drivers/scsi/eata_pio_proc.c | size = sprintf(buffer + len, "Base IO : %#.4x\n", (u32) HBA_ptr->base); |
base | 577 | drivers/scsi/fdomain.c | static int fdomain_get_irq( int base ) |
base | 579 | drivers/scsi/fdomain.c | int options = inb( base + Configuration1 ); |
base | 600 | drivers/scsi/fdomain.c | int base; |
base | 615 | drivers/scsi/fdomain.c | base = *((char *)bios_base + 0x1fa2) |
base | 619 | drivers/scsi/fdomain.c | base = *((char *)bios_base + 0x1fa3) |
base | 623 | drivers/scsi/fdomain.c | base = *((char *)bios_base + 0x1fcc) |
base | 629 | drivers/scsi/fdomain.c | printk( " %x,", base ); |
base | 633 | drivers/scsi/fdomain.c | if (base == ports[i]) |
base | 637 | drivers/scsi/fdomain.c | if (flag && fdomain_is_valid_port( base )) { |
base | 638 | drivers/scsi/fdomain.c | *irq = fdomain_get_irq( base ); |
base | 639 | drivers/scsi/fdomain.c | *iobase = base; |
base | 662 | drivers/scsi/fdomain.c | base = ports[i]; |
base | 663 | drivers/scsi/fdomain.c | if (check_region( base, 0x10 )) { |
base | 665 | drivers/scsi/fdomain.c | printk( " (%x inuse),", base ); |
base | 670 | drivers/scsi/fdomain.c | printk( " %x,", base ); |
base | 672 | drivers/scsi/fdomain.c | if ((flag = fdomain_is_valid_port( base ))) break; |
base | 677 | drivers/scsi/fdomain.c | *irq = fdomain_get_irq( base ); |
base | 678 | drivers/scsi/fdomain.c | *iobase = base; |
base | 271 | drivers/scsi/hosts.h | unsigned char *base; |
base | 122 | drivers/scsi/in2000.c | static unsigned int base; |
base | 596 | drivers/scsi/in2000.c | base = base_tab[loop]; |
base | 632 | drivers/scsi/in2000.c | "\n",base, irq_level); |
base | 649 | drivers/scsi/in2000.c | shpnt->io_port = base; |
base | 652 | drivers/scsi/in2000.c | request_region(base, 12,"in2000"); /* Prevent other drivers from using this space */ |
base | 14 | drivers/scsi/in2000.h | #define INSTAT (base + 0x0) /* R: Auxiliary Status; W: register select */ |
base | 15 | drivers/scsi/in2000.h | #define INDATA (base + 0x1) /* R/W: Data port */ |
base | 16 | drivers/scsi/in2000.h | #define INFIFO (base + 0x2) /* R/W FIFO, Word access only */ |
base | 17 | drivers/scsi/in2000.h | #define INREST (base + 0x3) /* W: Reset everything */ |
base | 18 | drivers/scsi/in2000.h | #define INFCNT (base + 0x4) /* R: FIFO byte count */ |
base | 19 | drivers/scsi/in2000.h | #define INFRST (base + 0x5) /* W: Reset Fifo count and to write */ |
base | 20 | drivers/scsi/in2000.h | #define INFWRT (base + 0x7) /* W: Set FIFO to read */ |
base | 21 | drivers/scsi/in2000.h | #define INFLED (base + 0x8) /* W: Set LED; R: Dip Switch settings */ |
base | 22 | drivers/scsi/in2000.h | #define INNLED (base + 0x9) /* W: reset LED */ |
base | 23 | drivers/scsi/in2000.h | #define INVERS (base + 0xa) /* R: Read hw version, end-reset */ |
base | 24 | drivers/scsi/in2000.h | #define ININTR (base + 0xc) /* W: Interrupt Mask Port */ |
base | 166 | drivers/scsi/pas16.c | #define NO_BASES (sizeof (bases) / sizeof (struct base)) |
base | 147 | drivers/scsi/t128.c | #define NO_BASES (sizeof (bases) / sizeof (struct base)) |
base | 202 | drivers/scsi/t128.c | unsigned char *base; |
base | 208 | drivers/scsi/t128.c | base = NULL; |
base | 211 | drivers/scsi/t128.c | base = overrides[current_override].address; |
base | 213 | drivers/scsi/t128.c | for (; !base && (current_base < NO_BASES); ++current_base) { |
base | 221 | drivers/scsi/t128.c | base = bases[current_base].address; |
base | 230 | drivers/scsi/t128.c | printk("scsi-t128 : base = %08x\n", (unsigned int) base); |
base | 233 | drivers/scsi/t128.c | if (!base) |
base | 237 | drivers/scsi/t128.c | instance->base = base; |
base | 263 | drivers/scsi/t128.c | instance->base); |
base | 323 | drivers/scsi/t128.c | register unsigned char *reg = (unsigned char *) (instance->base + |
base | 330 | drivers/scsi/t128.c | while (!(instance->base[T_STATUS_REG_OFFSET]) & T_ST_RDY) barrier(); |
base | 332 | drivers/scsi/t128.c | while (!(instance->base[T_STATUS_REG_OFFSET]) & T_ST_RDY) barrier(); |
base | 338 | drivers/scsi/t128.c | if (*(instance->base + T_STATUS_REG_OFFSET) & T_ST_TIM) { |
base | 341 | drivers/scsi/t128.c | foo = instance->base + T_CONTROL_REG_OFFSET; |
base | 367 | drivers/scsi/t128.c | register unsigned char *reg = (unsigned char *) (instance->base + |
base | 373 | drivers/scsi/t128.c | while (!(instance->base[T_STATUS_REG_OFFSET]) & T_ST_RDY) barrier(); |
base | 375 | drivers/scsi/t128.c | while (!(instance->base[T_STATUS_REG_OFFSET]) & T_ST_RDY) barrier(); |
base | 381 | drivers/scsi/t128.c | if (*(instance->base + T_STATUS_REG_OFFSET) & T_ST_TIM) { |
base | 384 | drivers/scsi/t128.c | foo = instance->base + T_CONTROL_REG_OFFSET; |
base | 131 | drivers/scsi/t128.h | volatile unsigned char *base |
base | 134 | drivers/scsi/t128.h | volatile unsigned char *base |
base | 137 | drivers/scsi/t128.h | base = (volatile unsigned char *) (instance)->base |
base | 139 | drivers/scsi/t128.h | #define T128_address(reg) (base + T_5380_OFFSET + ((reg) * 0x20)) |
base | 436 | drivers/scsi/u14-34f.c | sh[j]->base = bios_segment_table[config_1.bios_segment]; |
base | 454 | drivers/scsi/u14-34f.c | if (sh[j]->base == 0) outb(CMD_ENA_INTR, sh[j]->io_port + REG_SYS_MASK); |
base | 507 | drivers/scsi/u14-34f.c | (int)sh[j]->base, sh[j]->irq, |
base | 58 | drivers/sound/ad1848.c | int base; |
base | 104 | drivers/sound/ad1848.c | #define io_Index_Addr(d) ((d)->base) |
base | 105 | drivers/sound/ad1848.c | #define io_Indexed_Data(d) ((d)->base+1) |
base | 106 | drivers/sound/ad1848.c | #define io_Status(d) ((d)->base+2) |
base | 107 | drivers/sound/ad1848.c | #define io_Polled_IO(d) ((d)->base+3) |
base | 126 | drivers/sound/ad1848.c | while (timeout > 0 && INB (devc->base) == 0x80) /*Are we initializing */ |
base | 144 | drivers/sound/ad1848.c | while (timeout > 0 && INB (devc->base) == 0x80) /*Are we initializing */ |
base | 167 | drivers/sound/ad1848.c | while (timeout > 0 && INB (devc->base) & 0x80) |
base | 169 | drivers/sound/ad1848.c | if (INB (devc->base) & 0x80) |
base | 222 | drivers/sound/ad1848.c | while (timeout > 0 && INB (devc->base) == 0x80) /*Are we initializing */ |
base | 246 | drivers/sound/ad1848.c | while (timeout > 0 && INB (devc->base) == 0x80) /*Are we initializing */ |
base | 988 | drivers/sound/ad1848.c | while (timeout > 0 && INB (devc->base) == 0x80) |
base | 1002 | drivers/sound/ad1848.c | while (timeout > 0 && INB (devc->base) == 0x80) |
base | 1065 | drivers/sound/ad1848.c | devc->base = io_base; |
base | 1084 | drivers/sound/ad1848.c | if ((INB (devc->base) & 0x80) != 0x00) /* Not a AD1884 */ |
base | 1194 | drivers/sound/ad1848.c | if (devc->base != MOZART_PORT + 4) |
base | 48 | drivers/sound/mpu401.c | int base; /* |
base | 85 | drivers/sound/mpu401.c | #define DATAPORT(base) (base) |
base | 86 | drivers/sound/mpu401.c | #define COMDPORT(base) (base+1) |
base | 87 | drivers/sound/mpu401.c | #define STATPORT(base) (base+1) |
base | 89 | drivers/sound/mpu401.c | #define mpu401_status(base) INB(STATPORT(base)) |
base | 90 | drivers/sound/mpu401.c | #define input_avail(base) (!(mpu401_status(base)&INPUT_AVAIL)) |
base | 91 | drivers/sound/mpu401.c | #define output_ready(base) (!(mpu401_status(base)&OUTPUT_READY)) |
base | 92 | drivers/sound/mpu401.c | #define write_command(base, cmd) OUTB(cmd, COMDPORT(base)) |
base | 93 | drivers/sound/mpu401.c | #define read_data(base) INB(DATAPORT(base)) |
base | 95 | drivers/sound/mpu401.c | #define write_data(base, byte) OUTB(byte, DATAPORT(base)) |
base | 412 | drivers/sound/mpu401.c | while (input_avail (devc->base) && n-- > 0) |
base | 414 | drivers/sound/mpu401.c | unsigned char c = read_data (devc->base); |
base | 452 | drivers/sound/mpu401.c | if (input_avail (devc->base)) |
base | 453 | drivers/sound/mpu401.c | if (devc->base != 0 && (devc->opened & OPEN_READ || devc->mode == MODE_SYNTH)) |
base | 458 | drivers/sound/mpu401.c | read_data (devc->base); |
base | 492 | drivers/sound/mpu401.c | if (mpu401_status (devc->base) == 0xff) /* Bus float */ |
base | 567 | drivers/sound/mpu401.c | if (input_avail (devc->base)) |
base | 577 | drivers/sound/mpu401.c | for (timeout = 3000; timeout > 0 && !output_ready (devc->base); timeout--); |
base | 580 | drivers/sound/mpu401.c | if (!output_ready (devc->base)) |
base | 587 | drivers/sound/mpu401.c | write_data (devc->base, midi_byte); |
base | 613 | drivers/sound/mpu401.c | if (input_avail (devc->base)) |
base | 631 | drivers/sound/mpu401.c | if (!output_ready (devc->base)) |
base | 637 | drivers/sound/mpu401.c | write_command (devc->base, cmd->cmd); |
base | 640 | drivers/sound/mpu401.c | if (input_avail (devc->base)) |
base | 643 | drivers/sound/mpu401.c | if (mpu_input_scanner (devc, read_data (devc->base)) == MPU_ACK) |
base | 648 | drivers/sound/mpu401.c | if (read_data (devc->base) == MPU_ACK) |
base | 662 | drivers/sound/mpu401.c | for (timeout = 3000; timeout > 0 && !output_ready (devc->base); timeout--); |
base | 680 | drivers/sound/mpu401.c | if (input_avail (devc->base)) |
base | 682 | drivers/sound/mpu401.c | cmd->data[i] = read_data (devc->base); |
base | 874 | drivers/sound/mpu401.c | if (mpu401_status (devc->base) == 0xff) /* Bus float */ |
base | 1033 | drivers/sound/mpu401.c | devc->base = hw_config->io_base; |
base | 1159 | drivers/sound/mpu401.c | ok = output_ready (devc->base); |
base | 1161 | drivers/sound/mpu401.c | write_command (devc->base, MPU_RESET); /* |
base | 1173 | drivers/sound/mpu401.c | if (input_avail (devc->base)) |
base | 1174 | drivers/sound/mpu401.c | if (read_data (devc->base) == MPU_ACK) |
base | 1225 | drivers/sound/mpu401.c | tmp_devc.base = hw_config->io_base; |
base | 37 | drivers/sound/pss.c | #define REG(x) (devc->base+x) |
base | 69 | drivers/sound/pss.c | int base; |
base | 88 | drivers/sound/pss.c | devc->base = hw_config->io_base; |
base | 92 | drivers/sound/pss.c | if (devc->base != 0x220 && devc->base != 0x240) |
base | 93 | drivers/sound/pss.c | if (devc->base != 0x230 && devc->base != 0x250) /* Some cards use these */ |
base | 106 | drivers/sound/pss.c | printk ("No PSS signature detected at 0x%x (0x%x)\n", devc->base, id); |
base | 142 | drivers/sound/pss.c | set_io_base (pss_config * devc, int dev, int base) |
base | 145 | drivers/sound/pss.c | unsigned short bits = (base & 0x0ffc) << 4; |
base | 317 | drivers/sound/pss.c | devc->base = hw_config->io_base; |
base | 889 | drivers/sound/sb_dsp.c | smw_putmem (int base, int addr, unsigned char val) |
base | 895 | drivers/sound/sb_dsp.c | OUTB (addr & 0xff, base + 1); /* Low address bits */ |
base | 896 | drivers/sound/sb_dsp.c | OUTB (addr >> 8, base + 2); /* High address bits */ |
base | 897 | drivers/sound/sb_dsp.c | OUTB (val, base); /* Data */ |
base | 903 | drivers/sound/sb_dsp.c | smw_getmem (int base, int addr) |
base | 910 | drivers/sound/sb_dsp.c | OUTB (addr & 0xff, base + 1); /* Low address bits */ |
base | 911 | drivers/sound/sb_dsp.c | OUTB (addr >> 8, base + 2); /* High address bits */ |
base | 912 | drivers/sound/sb_dsp.c | val = INB (base); /* Data */ |
base | 68 | drivers/sound/sscape.c | #define PORT(name) (devc->base+name) |
base | 87 | drivers/sound/sscape.c | int base, irq, dma; |
base | 386 | drivers/sound/sscape.c | if (INB (devc->base + HOST_CTRL) & 0x80) |
base | 389 | drivers/sound/sscape.c | if (INB (devc->base) != 0x00) |
base | 972 | drivers/sound/sscape.c | devc->base = hw_config->io_base; |
base | 1030 | drivers/sound/sscape.c | INB (devc->base + ODIE_ADDR); |
base | 58 | drivers/sound/trix.c | download_boot (int base) |
base | 64 | drivers/sound/trix.c | OUTB (0x01, base + 6); /* Clear the internal data pointer */ |
base | 65 | drivers/sound/trix.c | OUTB (0x00, base + 6); /* Restart */ |
base | 71 | drivers/sound/trix.c | OUTB (0x01, base + 6); /* Clear the internal data pointer */ |
base | 78 | drivers/sound/trix.c | OUTB (0x00, base + 6); /* Reset */ |
base | 215 | fs/namei.c | struct inode * base, struct inode ** res_inode) |
base | 223 | fs/namei.c | if (!base) { |
base | 224 | fs/namei.c | base = current->fs->pwd; |
base | 225 | fs/namei.c | base->i_count++; |
base | 228 | fs/namei.c | iput(base); |
base | 229 | fs/namei.c | base = current->fs->root; |
base | 231 | fs/namei.c | base->i_count++; |
base | 239 | fs/namei.c | base->i_count++; |
base | 240 | fs/namei.c | error = lookup(base,thisname,len,&inode); |
base | 242 | fs/namei.c | iput(base); |
base | 245 | fs/namei.c | error = follow_link(base,inode,0,0,&base); |
base | 249 | fs/namei.c | if (!base->i_op || !base->i_op->lookup) { |
base | 250 | fs/namei.c | iput(base); |
base | 255 | fs/namei.c | *res_inode = base; |
base | 259 | fs/namei.c | static int _namei(const char * pathname, struct inode * base, |
base | 267 | fs/namei.c | error = dir_namei(pathname,&namelen,&basename,base,&base); |
base | 270 | fs/namei.c | base->i_count++; /* lookup uses up base */ |
base | 271 | fs/namei.c | error = lookup(base,basename,namelen,&inode); |
base | 273 | fs/namei.c | iput(base); |
base | 277 | fs/namei.c | error = follow_link(base,inode,0,0,&inode); |
base | 281 | fs/namei.c | iput(base); |
base | 333 | fs/namei.c | struct inode ** res_inode, struct inode * base) |
base | 341 | fs/namei.c | error = dir_namei(pathname,&namelen,&basename,base,&dir); |
base | 180 | fs/read_write.c | void * base; |
base | 183 | fs/read_write.c | base = get_user(&vector->iov_base); |
base | 187 | fs/read_write.c | nr = verify_area(VERIFY_WRITE, base, len); |
base | 189 | fs/read_write.c | nr = file->f_op->read(inode, file, base, len); |
base | 221 | fs/read_write.c | void * base; |
base | 224 | fs/read_write.c | base = get_user(&vector->iov_base); |
base | 228 | fs/read_write.c | nr = verify_area(VERIFY_READ, base, len); |
base | 230 | fs/read_write.c | nr = file->f_op->write(inode, file, base, len); |
base | 127 | include/asm-i386/system.h | #define _set_base(addr,base) \ |
base | 136 | include/asm-i386/system.h | "d" (base) \ |
base | 152 | include/asm-i386/system.h | #define set_base(ldt,base) _set_base( ((char *)&(ldt)) , base ) |
base | 258 | include/asm-i386/system.h | #define _set_seg_desc(gate_addr,type,dpl,base,limit) {\ |
base | 259 | include/asm-i386/system.h | *((gate_addr)+1) = ((base) & 0xff000000) | \ |
base | 260 | include/asm-i386/system.h | (((base) & 0x00ff0000)>>16) | \ |
base | 265 | include/asm-i386/system.h | *(gate_addr) = (((base) & 0x0000ffff)<<16) | \ |
base | 39 | include/linux/etherdevice.h | unsigned char *src, int length, int base); |
base | 471 | include/linux/fs.h | struct inode ** res_inode, struct inode * base); |
base | 118 | include/linux/kd.h | u_char diacr, base, result; |
base | 30 | include/linux/ldt.h | extern int set_ldt_entry(int entry, unsigned long base, unsigned int limit, |
base | 80 | include/linux/lp.h | #define LP_B(minor) lp_table[(minor)].base /* IO address */ |
base | 83 | include/linux/lp.h | #define LP_C(minor) (lp_table[(minor)].base + 2) /* control port */ |
base | 103 | include/linux/lp.h | int base; |
base | 6 | include/linux/pipe_fs_i.h | char * base; |
base | 17 | include/linux/pipe_fs_i.h | #define PIPE_BASE(inode) ((inode).u.pipe_i.base) |
base | 17 | lib/vsprintf.c | unsigned long simple_strtoul(const char *cp,char **endp,unsigned int base) |
base | 21 | lib/vsprintf.c | if (!base) { |
base | 22 | lib/vsprintf.c | base = 10; |
base | 24 | lib/vsprintf.c | base = 8; |
base | 28 | lib/vsprintf.c | base = 16; |
base | 33 | lib/vsprintf.c | ? toupper(*cp) : *cp)-'A'+10) < base) { |
base | 34 | lib/vsprintf.c | result = result*base + value; |
base | 62 | lib/vsprintf.c | #define do_div(n,base) ({ \ |
base | 64 | lib/vsprintf.c | __res = ((unsigned long) n) % (unsigned) base; \ |
base | 65 | lib/vsprintf.c | n = ((unsigned long) n) / (unsigned) base; \ |
base | 68 | lib/vsprintf.c | static char * number(char * str, long num, int base, int size, int precision |
base | 79 | lib/vsprintf.c | if (base < 2 || base > 36) |
base | 97 | lib/vsprintf.c | if (base == 16) |
base | 99 | lib/vsprintf.c | else if (base == 8) |
base | 106 | lib/vsprintf.c | tmp[i++] = digits[do_div(num,base)]; |
base | 116 | lib/vsprintf.c | if (base==8) |
base | 118 | lib/vsprintf.c | else if (base==16) { |
base | 138 | lib/vsprintf.c | int i, base; |
base | 204 | lib/vsprintf.c | base = 10; |
base | 255 | lib/vsprintf.c | base = 8; |
base | 261 | lib/vsprintf.c | base = 16; |
base | 290 | lib/vsprintf.c | str = number(str, num, base, field_width, precision, flags); |
base | 238 | net/ethernet/eth.c | void eth_copy_and_sum(struct sk_buff *dest, unsigned char *src, int length, int base) |
base | 264 | net/ethernet/eth.c | dest->csum=csum_partial_copy(src+34,dest->data+34,length,base); |
base | 123 | net/ipv4/af_inet.c | unsigned short get_new_socknum(struct proto *prot, unsigned short base) |
base | 137 | net/ipv4/af_inet.c | if (base == 0) |
base | 138 | net/ipv4/af_inet.c | base = PROT_SOCK+1+(start % 1024); |
base | 139 | net/ipv4/af_inet.c | if (base <= PROT_SOCK) |
base | 141 | net/ipv4/af_inet.c | base += PROT_SOCK+(start % 1024); |
base | 148 | net/ipv4/af_inet.c | sk = prot->sock_array[(i+base+1) &(SOCK_ARRAY_SIZE -1)]; |
base | 157 | net/ipv4/af_inet.c | return(i+base+1); |
base | 168 | net/ipv4/af_inet.c | while(sk_inuse(prot, base +best+1)) |
base | 172 | net/ipv4/af_inet.c | return(best+base+1); |
base | 1304 | net/ipv4/tcp.c | unsigned long saddr, unsigned long daddr, unsigned long base) |
base | 1306 | net/ipv4/tcp.c | return csum_tcpudp_magic(saddr,daddr,len,IPPROTO_TCP,base); |
base | 204 | net/ipv4/udp.c | static unsigned short udp_check(struct udphdr *uh, int len, unsigned long saddr, unsigned long daddr, unsigned long base) |
base | 206 | net/ipv4/udp.c | return(csum_tcpudp_magic(saddr, daddr, len, IPPROTO_UDP, base)); |