Lines Matching refs:base_port
44 u16 base_port; member
50 static int fintek_8250_enter_key(u16 base_port, u8 key) in fintek_8250_enter_key() argument
53 if (!request_muxed_region(base_port, 2, DRIVER_NAME)) in fintek_8250_enter_key()
56 outb(key, base_port + ADDR_PORT); in fintek_8250_enter_key()
57 outb(key, base_port + ADDR_PORT); in fintek_8250_enter_key()
61 static void fintek_8250_exit_key(u16 base_port) in fintek_8250_exit_key() argument
64 outb(EXIT_KEY, base_port + ADDR_PORT); in fintek_8250_exit_key()
65 release_region(base_port + ADDR_PORT, 2); in fintek_8250_exit_key()
68 static int fintek_8250_check_id(u16 base_port) in fintek_8250_check_id() argument
72 outb(VENDOR_ID1, base_port + ADDR_PORT); in fintek_8250_check_id()
73 if (inb(base_port + DATA_PORT) != VENDOR_ID1_VAL) in fintek_8250_check_id()
76 outb(VENDOR_ID2, base_port + ADDR_PORT); in fintek_8250_check_id()
77 if (inb(base_port + DATA_PORT) != VENDOR_ID2_VAL) in fintek_8250_check_id()
80 outb(CHIP_ID1, base_port + ADDR_PORT); in fintek_8250_check_id()
81 chip = inb(base_port + DATA_PORT); in fintek_8250_check_id()
82 outb(CHIP_ID2, base_port + ADDR_PORT); in fintek_8250_check_id()
83 chip |= inb(base_port + DATA_PORT) << 8; in fintek_8250_check_id()
127 if (fintek_8250_enter_key(pdata->base_port, pdata->key)) in fintek_8250_rs485_config()
130 outb(LDN, pdata->base_port + ADDR_PORT); in fintek_8250_rs485_config()
131 outb(pdata->index, pdata->base_port + DATA_PORT); in fintek_8250_rs485_config()
132 outb(RS485, pdata->base_port + ADDR_PORT); in fintek_8250_rs485_config()
133 outb(config, pdata->base_port + DATA_PORT); in fintek_8250_rs485_config()
134 fintek_8250_exit_key(pdata->base_port); in fintek_8250_rs485_config()
187 int base_port; in fintek_8250_probe() local
194 base_port = fintek_8250_base_port(pnp_port_start(dev, 0), &key, &index); in fintek_8250_probe()
195 if (base_port < 0) in fintek_8250_probe()
219 pdata->base_port = base_port; in fintek_8250_probe()