Lines Matching refs:pld_base
95 unsigned long pld_base, sja1000_base; in tscan1_probe() local
98 pld_base = TSCAN1_PLD_ADDRESS + id * TSCAN1_PLD_SIZE; in tscan1_probe()
99 if (!request_region(pld_base, TSCAN1_PLD_SIZE, dev_name(dev))) in tscan1_probe()
102 if (inb(pld_base + TSCAN1_ID1) != TSCAN1_ID1_VALUE || in tscan1_probe()
103 inb(pld_base + TSCAN1_ID2) != TSCAN1_ID2_VALUE) { in tscan1_probe()
104 release_region(pld_base, TSCAN1_PLD_SIZE); in tscan1_probe()
108 switch (inb(pld_base + TSCAN1_JUMPERS) & (TSCAN1_JP4 | TSCAN1_JP5)) { in tscan1_probe()
120 release_region(pld_base, TSCAN1_PLD_SIZE); in tscan1_probe()
126 release_region(pld_base, TSCAN1_PLD_SIZE); in tscan1_probe()
133 netdev->base_addr = pld_base; in tscan1_probe()
151 outb(TSCAN1_MODE_ENABLE | i, pld_base + TSCAN1_MODE); in tscan1_probe()
156 outb(0, pld_base + TSCAN1_LED); in tscan1_probe()
158 pld_base, sja1000_base, irq); in tscan1_probe()
163 outb(0, pld_base + TSCAN1_MODE); in tscan1_probe()
170 release_region(pld_base, TSCAN1_PLD_SIZE); in tscan1_probe()
178 unsigned long pld_base, sja1000_base; in tscan1_remove() local
185 pld_base = netdev->base_addr; in tscan1_remove()
188 outb(0, pld_base + TSCAN1_MODE); /* disable SJA1000 IO space */ in tscan1_remove()
191 release_region(pld_base, TSCAN1_PLD_SIZE); in tscan1_remove()