Lines Matching refs:pld_base
82 unsigned long pld_base, sja1000_base; in tscan1_probe() local
85 pld_base = TSCAN1_PLD_ADDRESS + id * TSCAN1_PLD_SIZE; in tscan1_probe()
86 if (!request_region(pld_base, TSCAN1_PLD_SIZE, dev_name(dev))) in tscan1_probe()
89 if (inb(pld_base + TSCAN1_ID1) != TSCAN1_ID1_VALUE || in tscan1_probe()
90 inb(pld_base + TSCAN1_ID2) != TSCAN1_ID2_VALUE) { in tscan1_probe()
91 release_region(pld_base, TSCAN1_PLD_SIZE); in tscan1_probe()
95 switch (inb(pld_base + TSCAN1_JUMPERS) & (TSCAN1_JP4 | TSCAN1_JP5)) { in tscan1_probe()
107 release_region(pld_base, TSCAN1_PLD_SIZE); in tscan1_probe()
113 release_region(pld_base, TSCAN1_PLD_SIZE); in tscan1_probe()
120 netdev->base_addr = pld_base; in tscan1_probe()
138 outb(TSCAN1_MODE_ENABLE | i, pld_base + TSCAN1_MODE); in tscan1_probe()
143 outb(0, pld_base + TSCAN1_LED); in tscan1_probe()
145 pld_base, sja1000_base, irq); in tscan1_probe()
150 outb(0, pld_base + TSCAN1_MODE); in tscan1_probe()
157 release_region(pld_base, TSCAN1_PLD_SIZE); in tscan1_probe()
165 unsigned long pld_base, sja1000_base; in tscan1_remove() local
172 pld_base = netdev->base_addr; in tscan1_remove()
175 outb(0, pld_base + TSCAN1_MODE); /* disable SJA1000 IO space */ in tscan1_remove()
178 release_region(pld_base, TSCAN1_PLD_SIZE); in tscan1_remove()