Lines Matching refs:config_port
61 unsigned short config_port; member
81 static int exar_sio_enter(const unsigned short config_port, in exar_sio_enter() argument
84 if (!request_muxed_region(config_port, 2, DRV_NAME)) in exar_sio_enter()
88 outb(key, config_port); in exar_sio_enter()
89 outb(key, config_port); in exar_sio_enter()
94 static void exar_sio_exit(const unsigned short config_port) in exar_sio_exit() argument
96 outb(EXAR_EXIT_KEY, config_port); in exar_sio_exit()
97 release_region(config_port, 2); in exar_sio_exit()
100 static unsigned char exar_sio_read(const unsigned short config_port, in exar_sio_read() argument
103 outb(reg, config_port); in exar_sio_read()
104 return inb(config_port + 1); in exar_sio_read()
107 static void exar_sio_write(const unsigned short config_port, in exar_sio_write() argument
110 outb(reg, config_port); in exar_sio_write()
111 outb(val, config_port + 1); in exar_sio_write()
114 static unsigned short exar_sio_read16(const unsigned short config_port, in exar_sio_read16() argument
119 msb = exar_sio_read(config_port, reg); in exar_sio_read16()
120 lsb = exar_sio_read(config_port, reg + 1); in exar_sio_read16()
125 static void exar_sio_select_wdt(const unsigned short config_port) in exar_sio_select_wdt() argument
127 exar_sio_write(config_port, EXAR_LDN, EXAR_WDT_LDEV); in exar_sio_select_wdt()
241 ret = exar_sio_enter(priv->config_port, priv->enter_key); in exar_wdt_config()
245 exar_sio_select_wdt(priv->config_port); in exar_wdt_config()
246 exar_sio_write(priv->config_port, EXAR_WDT, conf); in exar_wdt_config()
248 exar_sio_exit(priv->config_port); in exar_wdt_config()
296 static unsigned short __init exar_detect(const unsigned short config_port, in exar_detect() argument
304 ret = exar_sio_enter(config_port, key); in exar_detect()
308 vid = exar_sio_read16(config_port, EXAR_VID); in exar_detect()
309 did = exar_sio_read16(config_port, EXAR_DID); in exar_detect()
315 exar_sio_select_wdt(config_port); in exar_detect()
317 if (exar_sio_read(config_port, EXAR_ACT) == 0x01) in exar_detect()
318 base = exar_sio_read16(config_port, EXAR_RTBASE); in exar_detect()
321 exar_sio_exit(config_port); in exar_detect()
325 did, config_port, base); in exar_detect()
397 .config_port = sio_config_ports[i], in exar_wdt_init()