Lines Matching refs:sio_config_port

96 static inline int sch311x_sio_enter(int sio_config_port)  in sch311x_sio_enter()  argument
99 if (!request_muxed_region(sio_config_port, 2, DRV_NAME)) { in sch311x_sio_enter()
101 sio_config_port); in sch311x_sio_enter()
105 outb(SIO_CONFIG_KEY_ENTER, sio_config_port); in sch311x_sio_enter()
109 static inline void sch311x_sio_exit(int sio_config_port) in sch311x_sio_exit() argument
111 outb(SIO_CONFIG_KEY_EXIT, sio_config_port); in sch311x_sio_exit()
112 release_region(sio_config_port, 2); in sch311x_sio_exit()
115 static inline int sch311x_sio_inb(int sio_config_port, int reg) in sch311x_sio_inb() argument
117 outb(reg, sio_config_port); in sch311x_sio_inb()
118 return inb(sio_config_port + 1); in sch311x_sio_inb()
121 static inline void sch311x_sio_outb(int sio_config_port, int reg, int val) in sch311x_sio_outb() argument
123 outb(reg, sio_config_port); in sch311x_sio_outb()
124 outb(val, sio_config_port + 1); in sch311x_sio_outb()
329 static int __init sch311x_detect(int sio_config_port, unsigned short *addr) in sch311x_detect() argument
335 err = sch311x_sio_enter(sio_config_port); in sch311x_detect()
340 reg = sch311x_sio_inb(sio_config_port, 0x20); in sch311x_detect()
357 sch311x_sio_outb(sio_config_port, 0x07, 0x0a); in sch311x_detect()
360 if ((sch311x_sio_inb(sio_config_port, 0x30) & 0x01) == 0) in sch311x_detect()
364 base_addr = (sch311x_sio_inb(sio_config_port, 0x60) << 8) | in sch311x_detect()
365 sch311x_sio_inb(sio_config_port, 0x61); in sch311x_detect()
376 sch311x_sio_exit(sio_config_port); in sch311x_detect()