/linux-2.4.37.9/drivers/net/arcnet/ |
D | arc-rimi.c | 93 dev->dev_addr[0], dev->mem_start, dev->irq); in arcrimi_probe() 95 if (dev->mem_start <= 0 || dev->irq <= 0) { in arcrimi_probe() 100 if (check_mem_region(dev->mem_start, BUFFER_SIZE)) { in arcrimi_probe() 129 shmem = dev->mem_start; in arcrimi_found() 154 dev->mem_start = first_mirror; in arcrimi_found() 156 dev->rmem_start = dev->mem_start + BUFFER_SIZE * 0; in arcrimi_found() 157 dev->rmem_end = dev->mem_start + BUFFER_SIZE * 2 - 1; in arcrimi_found() 174 lp->mem_start = ioremap(dev->mem_start, dev->mem_end - dev->mem_start + 1); in arcrimi_found() 175 if (!lp->mem_start) { in arcrimi_found() 185 dev->dev_addr[0] = readb(lp->mem_start + 1); in arcrimi_found() [all …]
|
D | com90xx.c | 131 if (dev && dev->mem_start) in com90xx_probe() 132 shmems[numshmems++] = dev->mem_start; in com90xx_probe() 448 dev->mem_start = first_mirror; in com90xx_found() 450 dev->rmem_start = dev->mem_start + BUFFER_SIZE * 0; in com90xx_found() 451 dev->rmem_end = dev->mem_start + BUFFER_SIZE * 2 - 1; in com90xx_found() 463 lp->mem_start = ioremap(dev->mem_start, dev->mem_end - dev->mem_start + 1); in com90xx_found() 464 if (!lp->mem_start) { in com90xx_found() 472 dev->dev_addr[0] = readb(lp->mem_start + 1); in com90xx_found() 483 request_mem_region(dev->mem_start, dev->mem_end - dev->mem_start + 1, "arcnet (90xx)"); in com90xx_found() 489 dev->base_addr, dev->irq, dev->mem_start, in com90xx_found() [all …]
|
/linux-2.4.37.9/drivers/net/ |
D | mac8390.c | 310 dev->mem_start = dev->base_addr + offset; in mac8390_probe() 312 dev->base_addr = dev->mem_start + 0x10000; in mac8390_probe() 319 offset = mac8390_memsize(dev->mem_start); in mac8390_probe() 323 dev->mem_end = dev->mem_start + offset; in mac8390_probe() 331 dev->mem_start = in mac8390_probe() 335 dev->mem_start + in mac8390_probe() 336 mac8390_memsize(dev->mem_start); in mac8390_probe() 342 dev->mem_start = in mac8390_probe() 354 dev->mem_start + in mac8390_probe() 355 mac8390_memsize(dev->mem_start); in mac8390_probe() [all …]
|
D | lne390.c | 207 if (dev->mem_start == 0) { in lne390_probe1() 211 dev->mem_start = shmem_mapB[mem_reg] * 0x10000; in lne390_probe1() 213 dev->mem_start = shmem_mapA[mem_reg] * 0x10000; in lne390_probe1() 217 dev->mem_start &= 0xfff0000; in lne390_probe1() 222 LNE390_STOP_PG/4, dev->mem_start); in lne390_probe1() 228 if (dev->mem_start > 1024*1024) { /* phys addr > 1MB */ in lne390_probe1() 229 if (dev->mem_start < virt_to_bus(high_memory)) { in lne390_probe1() 237 dev->mem_start = (unsigned long)ioremap(dev->mem_start, LNE390_STOP_PG*0x100); in lne390_probe1() 238 if (dev->mem_start == 0) { in lne390_probe1() 247 LNE390_STOP_PG/4, dev->mem_start); in lne390_probe1() [all …]
|
D | ne3210.c | 198 if (dev->mem_start == 0) { in ne3210_probe1() 200 dev->mem_start = shmem_map[mem_reg] * 0x1000; in ne3210_probe1() 204 dev->mem_start &= 0xfff8000; in ne3210_probe1() 209 NE3210_STOP_PG/4, dev->mem_start); in ne3210_probe1() 215 if (dev->mem_start > 1024*1024) { /* phys addr > 1MB */ in ne3210_probe1() 216 if (dev->mem_start < virt_to_bus(high_memory)) { in ne3210_probe1() 224 dev->mem_start = (unsigned long)ioremap(dev->mem_start, NE3210_STOP_PG*0x100); in ne3210_probe1() 225 if (dev->mem_start == 0) { in ne3210_probe1() 234 NE3210_STOP_PG/4, dev->mem_start); in ne3210_probe1() 237 dev->mem_end = dev->rmem_end = dev->mem_start in ne3210_probe1() [all …]
|
D | ac3200.c | 187 if (dev->mem_start) { /* Override the value from the board. */ in ac_probe1() 189 if (addrmap[i] == dev->mem_start) in ac_probe1() 198 dev->mem_start = config2mem(inb(ioaddr + AC_CONFIG)); in ac_probe1() 201 dev->name, ioaddr, AC_STOP_PG/4, dev->mem_start); in ac_probe1() 207 if (dev->mem_start > 1024*1024) { /* phys addr > 1MB */ in ac_probe1() 208 if (dev->mem_start < virt_to_bus(high_memory)) { in ac_probe1() 216 dev->mem_start = (unsigned long)ioremap(dev->mem_start, AC_STOP_PG*0x100); in ac_probe1() 217 if (dev->mem_start == 0) { in ac_probe1() 226 AC_STOP_PG/4, dev->mem_start); in ac_probe1() 229 dev->rmem_start = dev->mem_start + TX_PAGES*256; in ac_probe1() [all …]
|
D | wd.c | 140 if ((dev->mem_start % 0x2000) || (dev->mem_end % 0x2000)) { in wd_probe1() 142 dev->mem_start = 0; in wd_probe1() 168 dev->mem_start = ((reg5 & 0x1c) + 0xc0) << 12; in wd_probe1() 210 dev->mem_start = WD_SHMEM; in wd_probe1() 212 if (dev->mem_start == 0) { in wd_probe1() 217 dev->mem_start = 0xd0000; in wd_probe1() 218 printk(" assigning address %#lx", dev->mem_start); in wd_probe1() 224 dev->mem_start = ((reg0&0x3f) << 13) + (high_addr_bits << 19); in wd_probe1() 284 dev->rmem_start = dev->mem_start + TX_PAGES*256; in wd_probe1() 288 ei_status.stop_page = (dev->mem_end - dev->mem_start)/256; in wd_probe1() [all …]
|
D | 3c507.c | 177 #define SCB_BASE ((unsigned)64*1024 - (dev->mem_end - dev->mem_start)) 212 #define RX_BUF_END (dev->mem_end - dev->mem_start) 393 if ((dev->mem_start & 0xf) > 0) in el16_probe1() 394 net_debug = dev->mem_start & 7; in el16_probe1() 397 dev->mem_start = MEM_BASE; in el16_probe1() 398 dev->mem_end = dev->mem_start + 0x10000; in el16_probe1() 412 dev->mem_start = base; in el16_probe1() 421 dev->if_port ? "ex" : "in", dev->mem_start, dev->mem_end-1); in el16_probe1() 467 unsigned long shmem = dev->mem_start; in el16_tx_timeout() 541 shmem = dev->mem_start; in el16_interrupt() [all …]
|
D | 3c503.c | 235 dev->mem_start = 0; in el2_probe1() 238 dev->mem_start = ((membase_reg & 0xc0) ? 0xD8000 : 0xC8000) + in el2_probe1() 247 unsigned long mem_base = dev->mem_start; in el2_probe1() 255 dev->mem_start = 0; in el2_probe1() 265 if (dev->mem_start) in el2_probe1() 266 dev->mem_end = dev->rmem_end = dev->mem_start + EL2_MEMSIZE; in el2_probe1() 269 dev->rmem_start = dev->mem_start; in el2_probe1() 272 dev->rmem_start = TX_PAGES*256 + dev->mem_start; in el2_probe1() 315 if (dev->mem_start) in el2_probe1() 318 dev->mem_start, dev->mem_end-1); in el2_probe1() [all …]
|
D | smc-mca.c | 213 dev->mem_start = 0; in ultramca_probe() 223 dev->mem_start = mem_table[i].mem_start; in ultramca_probe() 234 dev->mem_start = ((pos3 & 0xfc) * 0x1000); in ultramca_probe() 245 dev->mem_start = 0xc0000 + (0x2000 * (pos3 & 0xf)); in ultramca_probe() 251 if (dev->mem_start == 0) /* sanity check, shouldn't happen */ in ultramca_probe() 302 dev->rmem_start = dev->mem_start + TX_PAGES * 256; in ultramca_probe() 304 dev->mem_start + (ei_status.stop_page - START_PG) * 256; in ultramca_probe() 307 dev->irq, dev->mem_start, dev->mem_end - 1); in ultramca_probe() 372 unsigned long hdr_start = dev->mem_start + ((ring_page - START_PG) << 8); in ultramca_get_8390_hdr() 388 unsigned long xfer_start = dev->mem_start + ring_offset - (START_PG << 8); in ultramca_block_input() [all …]
|
D | ibmlana.c | 139 printk(" %02x", IBMLANA_READB(dev->mem_start + start + z)); in dumpmem() 240 IBMLANA_SETIO(dev->mem_start, 0xaa, in InitDscrs() 241 dev->mem_start - dev->mem_start); in InitDscrs() 260 IBMLANA_TOIO(dev->mem_start + addr, &tda, sizeof(tda_t)); in InitDscrs() 267 priv->rxbufcnt = (dev->mem_end - dev->mem_start - baddr) / in InitDscrs() 282 IBMLANA_TOIO(dev->mem_start + raddr, &rra, sizeof(rra_t)); in InitDscrs() 294 IBMLANA_TOIO(dev->mem_start + addr, &rda, sizeof(rda_t)); in InitDscrs() 437 IBMLANA_TOIO(dev->mem_start, cams, sizeof(camentry_t) * camcnt); in InitBoard() 438 IBMLANA_TOIO(dev->mem_start + (sizeof(camentry_t) * camcnt), in InitBoard() 584 IBMLANA_FROMIO(&rda, dev->mem_start + rdaaddr, in irqrx_handler() [all …]
|
D | e2100.c | 231 if (dev->mem_start == 0) in e21_probe1() 232 dev->mem_start = 0xd0000; in e21_probe1() 237 dev->rmem_start = dev->mem_start + TX_PAGES*256; in e21_probe1() 238 dev->mem_end = dev->rmem_end = dev->mem_start + 2*1024; in e21_probe1() 242 dev->if_port ? "secondary" : "primary", dev->mem_start); in e21_probe1() 274 outb(0, ioaddr + E21_ASIC + ((dev->mem_start >> 17) & 7)); in e21_open() 303 unsigned long shared_mem = dev->mem_start; in e21_get_8390_hdr() 327 mem_on(ioaddr, dev->mem_start, (ring_offset>>8)); in e21_block_input() 330 isa_eth_io_copy_and_sum(skb, dev->mem_start + (ring_offset & 0xff), count, 0); in e21_block_input() 340 unsigned long shared_mem = dev->mem_start; in e21_block_output() [all …]
|
D | sk_mca.c | 136 printk(" %02x", SKMCA_READB(dev->mem_start + start + z)); in dumpmem() 350 SKMCA_TOIO(dev->mem_start + RAM_TXBASE + in InitDscrs() 353 SKMCA_SETIO(dev->mem_start + bufaddr, 0, in InitDscrs() 370 SKMCA_TOIO(dev->mem_start + RAM_RXBASE + in InitDscrs() 373 SKMCA_SETIO(dev->mem_start + bufaddr, 0, in InitDscrs() 506 SKMCA_TOIO(dev->mem_start + RAM_INITBASE, &block, sizeof(block)); in InitBoard() 615 SKMCA_FROMIO(&descr, dev->mem_start + descraddr, in irqrx_handler() 648 dev->mem_start + in irqrx_handler() 667 SKMCA_TOIO(dev->mem_start + descraddr, &descr, in irqrx_handler() 699 SKMCA_FROMIO(&descr, dev->mem_start + descraddr, in irqtx_handler() [all …]
|
D | hp-plus.c | 145 int mem_start; in hpp_probe1() local 199 mem_start = inw(ioaddr + 9) << 8; in hpp_probe1() 200 printk(", IRQ %d, memory address %#x.\n", irq, mem_start); in hpp_probe1() 202 mem_start = 0; in hpp_probe1() 228 if (mem_start) { in hpp_probe1() 232 dev->mem_start = mem_start; in hpp_probe1() 233 dev->rmem_start = dev->mem_start + TX_2X_PAGES*256; in hpp_probe1() 235 = dev->mem_start + (HP_STOP_PG - HP_START_PG)*256; in hpp_probe1() 352 isa_memcpy_fromio(hdr, dev->mem_start, sizeof(struct e8390_pkt_hdr)); in hpp_mem_get_8390_hdr() 371 isa_memcpy_fromio(skb->data, dev->mem_start, count); in hpp_mem_block_input() [all …]
|
D | es3210.c | 221 if (dev->mem_start == 0) { in es_probe1() 230 dev->mem_start = 0xC0000 + mem_bits*0x4000; in es_probe1() 236 dev->mem_end = dev->rmem_end = dev->mem_start in es_probe1() 238 dev->rmem_start = dev->mem_start + TX_PAGES*256; in es_probe1() 240 printk("mem %#lx-%#lx\n", dev->mem_start, dev->mem_end-1); in es_probe1() 322 unsigned long hdr_start = dev->mem_start + ((ring_page - ES_START_PG)<<8); in es_get_8390_hdr() 336 unsigned long xfer_start = dev->mem_start + ring_offset - (ES_START_PG<<8); in es_block_input() 353 unsigned long shmem = dev->mem_start + ((start_page - ES_START_PG)<<8); in es_block_output() 401 dev->mem_start = mem[this_dev]; /* Currently ignored by driver */ in init_module()
|
D | smc-ultra32.c | 225 dev->mem_start = 0xc0000 + ((ei_status.reg0 & 0x7c) << 11); in ultra32_probe1() 234 dev->rmem_start = dev->mem_start + TX_PAGES*256; in ultra32_probe1() 235 dev->mem_end = dev->rmem_end = dev->mem_start + 0x1fff; in ultra32_probe1() 238 dev->irq, dev->mem_start, dev->mem_end); in ultra32_probe1() 317 unsigned long hdr_start = dev->mem_start + ((ring_page & 0x1f) << 8); in ultra32_get_8390_hdr() 343 unsigned long xfer_start = dev->mem_start + (ring_offset & 0x1fff); in ultra32_block_input() 354 isa_memcpy_fromio(skb->data + semi_count, dev->mem_start, count); in ultra32_block_input() 371 unsigned long xfer_start = dev->mem_start + (start_page<<8); in ultra32_block_output()
|
D | declance.c | 441 ib = (struct lance_init_block *) (dev->mem_start); in lance_init_ring() 539 ib = (struct lance_init_block *) (dev->mem_start); in lance_rx() 626 ib = (struct lance_init_block *) (dev->mem_start); in lance_tx() 757 volatile struct lance_init_block *ib = (struct lance_init_block *) (dev->mem_start); in lance_open() 888 volatile struct lance_init_block *ib = (struct lance_init_block *) (dev->mem_start); in lance_start_xmit() 945 volatile struct lance_init_block *ib = (struct lance_init_block *) (dev->mem_start); in lance_load_multicast() 988 ib = (struct lance_init_block *) (dev->mem_start); in lance_set_multicast() 1079 dev->mem_start = KSEG1ADDR(0x00020000); in dec_lance_init() 1080 dev->mem_end = dev->mem_start + 0x00020000; in dec_lance_init() 1085 memset((void *)dev->mem_start, 0, in dec_lance_init() [all …]
|
D | smc-ultra.c | 244 dev->mem_start = ((addr & 0x0f) << 13) + addr_tbl[(addr >> 6) & 3] ; in ultra_probe1() 254 dev->rmem_start = dev->mem_start + TX_PAGES*256; in ultra_probe1() 256 = dev->mem_start + (ei_status.stop_page - START_PG)*256; in ultra_probe1() 266 dev->irq, dev->mem_start, dev->mem_end-1); in ultra_probe1() 383 unsigned long hdr_start = dev->mem_start + ((ring_page - START_PG)<<8); in ultra_get_8390_hdr() 403 unsigned long xfer_start = dev->mem_start + ring_offset - (START_PG<<8); in ultra_block_input() 426 unsigned long shmem = dev->mem_start + ((start_page - START_PG)<<8); in ultra_block_output()
|
D | ni52.c | 333 p->scb = (struct scb_struct *) bus_to_virt(dev->mem_start); in alloc586() 425 size = dev->mem_end - dev->mem_start; in ni52_probe1() 431 if(!check586(dev,(char *) dev->mem_start,size)) { in ni52_probe1() 432 printk("?memcheck, Can't find memory at 0x%lx with size %d!\n",dev->mem_start,size); in ni52_probe1() 437 if(dev->mem_start != 0) /* no auto-mem-probe */ in ni52_probe1() 440 if(!check586(dev,(char *) dev->mem_start,size)) { in ni52_probe1() 442 if(!check586(dev,(char *) dev->mem_start,size)) { in ni52_probe1() 443 printk("?memprobe, Can't find memory at 0x%lx!\n",dev->mem_start); in ni52_probe1() 460 dev->mem_start = memaddrs[i]; in ni52_probe1() 462 if(check586(dev,(char *)dev->mem_start,size)) /* 8K-check */ in ni52_probe1() [all …]
|
/linux-2.4.37.9/arch/ppc/kernel/ |
D | prom.c | 167 finish_node(struct device_node *np, unsigned long mem_start, in finish_node() argument 183 mem_start = ifunc(np, mem_start, naddrc, nsizec); in finish_node() 186 mem_start = finish_node_interrupts(np, mem_start); in finish_node() 232 mem_start = finish_node(child, mem_start, ifunc, in finish_node() 235 return mem_start; in finish_node() 390 finish_node_interrupts(struct device_node *np, unsigned long mem_start) in finish_node_interrupts() argument 400 return mem_start; in finish_node_interrupts() 404 np->intrs = (struct interrupt_info *) mem_start; in finish_node_interrupts() 405 mem_start += intlen * sizeof(struct interrupt_info); in finish_node_interrupts() 440 return mem_start; in finish_node_interrupts() [all …]
|
D | prom_init.c | 96 static unsigned long copy_device_tree(unsigned long mem_start, 99 unsigned long mem_start, unsigned long mem_end, 441 copy_device_tree(unsigned long mem_start, unsigned long mem_end) in copy_device_tree() argument 453 mem_start = ALIGN(mem_start); in copy_device_tree() 454 new_start = inspect_node(root, 0, mem_start, mem_end, &allnextp); in copy_device_tree() 461 unsigned long mem_start, unsigned long mem_end, in inspect_node() argument 471 np = (struct device_node *) mem_start; in inspect_node() 472 mem_start += sizeof(struct device_node); in inspect_node() 491 pp = (struct property *) mem_start; in inspect_node() 497 mem_start = ALIGN((unsigned long)namep + strlen(namep) + 1); in inspect_node() [all …]
|
/linux-2.4.37.9/drivers/net/wan/ |
D | comx-hw-comx.c | 68 #define COMX_readw(dev, offset) (readw(dev->mem_start + offset + \ 73 #define COMX_WRITE(dev, offset, value) (writew(value, dev->mem_start + offset \ 103 outb_p( (byte) (((dev->mem_start & 0xf0000) >> 16) | in COMX_board_on() 109 outb_p( (byte) (((dev->mem_start & 0xf0000) >> 16) | in COMX_board_off() 115 outb_p( (byte) (((dev->mem_start & 0xf0000) >> 12) | in HICOMX_board_on() 121 outb_p( (byte) (((dev->mem_start & 0xf0000) >> 12) | in HICOMX_board_off() 137 int mempos = (dev->mem_start - COMX_MEM_MIN) >> 16; in COMX_access_board() 163 int mempos = (dev->mem_start - COMX_MEM_MIN) >> 16; in COMX_release_board() 229 writew((unsigned short)skb->len, dev->mem_start + dest); in COMX_send_packet() 232 writew(*data++, dev->mem_start + dest); in COMX_send_packet() [all …]
|
D | sdla.c | 97 base = (void *) (dev->mem_start + offset); in sdla_read() 122 base = (void *) (dev->mem_start + offset); in sdla_write() 143 base = (void *) dev->mem_start; in sdla_clear() 163 temp = (void *) (dev->mem_start + (addr & SDLA_ADDR_MASK)); in sdla_byte() 247 temp = (void *)dev->mem_start; in sdla_z80_poll() 426 cmd_buf = (struct sdla_cmd *)(dev->mem_start + (window & SDLA_ADDR_MASK)); in sdla_cmd() 698 pbuf = (void *)(((unsigned long) dev->mem_start) + (addr & SDLA_ADDR_MASK)); in sdla_transmit() 767 cmd = (void *) (dev->mem_start + (SDLA_502_RCV_BUF & SDLA_ADDR_MASK)); in sdla_receive() 778 pbufi = (void *) (dev->mem_start + (SDLA_508_RXBUF_INFO & SDLA_ADDR_MASK)); in sdla_receive() 780 …pbuf = (void *) (dev->mem_start + ((pbufi->rse_base + flp->buffer * sizeof(struct buf_entry)) & SD… in sdla_receive() [all …]
|
/linux-2.4.37.9/arch/mips/dec/prom/ |
D | memory.c | 63 unsigned long mem_start = 0, mem_size = 0; in rex_setup_memory_region() local 76 mem_start += (8 * bm->pagesize); in rex_setup_memory_region() 78 add_memory_region(mem_start, mem_size, BOOT_MEM_RAM); in rex_setup_memory_region() 79 mem_start += mem_size + (8 * bm->pagesize); in rex_setup_memory_region() 84 add_memory_region(mem_start, mem_size, BOOT_MEM_RAM); in rex_setup_memory_region()
|
/linux-2.4.37.9/arch/ppc64/kernel/ |
D | prom.c | 1835 copy_device_tree(unsigned long mem_start) in copy_device_tree() argument 1841 unsigned long mem_end = mem_start + (8<<20); in copy_device_tree() 1849 mem_start = DOUBLEWORD_ALIGN(mem_start); in copy_device_tree() 1850 new_start = inspect_node(root, 0, mem_start, mem_end, &allnextp); in copy_device_tree() 1858 unsigned long mem_start, unsigned long mem_end, in inspect_node() argument 1869 np = (struct device_node *) mem_start; in inspect_node() 1870 mem_start += sizeof(struct device_node); in inspect_node() 1889 pp = (struct property *) mem_start; in inspect_node() 1895 mem_start = DOUBLEWORD_ALIGN((unsigned long)namep + strlen(namep) + 1); in inspect_node() 1897 valp = (unsigned char *) mem_start; in inspect_node() [all …]
|