Lines Matching refs:sio_config_port

107 static inline int sch311x_sio_enter(int sio_config_port)  in sch311x_sio_enter()  argument
110 if (!request_muxed_region(sio_config_port, 2, DRV_NAME)) { in sch311x_sio_enter()
112 sio_config_port); in sch311x_sio_enter()
116 outb(SIO_CONFIG_KEY_ENTER, sio_config_port); in sch311x_sio_enter()
120 static inline void sch311x_sio_exit(int sio_config_port) in sch311x_sio_exit() argument
122 outb(SIO_CONFIG_KEY_EXIT, sio_config_port); in sch311x_sio_exit()
123 release_region(sio_config_port, 2); in sch311x_sio_exit()
126 static inline int sch311x_sio_inb(int sio_config_port, int reg) in sch311x_sio_inb() argument
128 outb(reg, sio_config_port); in sch311x_sio_inb()
129 return inb(sio_config_port + 1); in sch311x_sio_inb()
132 static inline void sch311x_sio_outb(int sio_config_port, int reg, int val) in sch311x_sio_outb() argument
134 outb(reg, sio_config_port); in sch311x_sio_outb()
135 outb(val, sio_config_port + 1); in sch311x_sio_outb()
318 static int __init sch311x_detect(int sio_config_port, unsigned short *addr) in sch311x_detect() argument
324 err = sch311x_sio_enter(sio_config_port); in sch311x_detect()
329 reg = sch311x_sio_inb(sio_config_port, 0x20); in sch311x_detect()
346 sch311x_sio_outb(sio_config_port, 0x07, 0x0a); in sch311x_detect()
349 if ((sch311x_sio_inb(sio_config_port, 0x30) & 0x01) == 0) in sch311x_detect()
353 base_addr = (sch311x_sio_inb(sio_config_port, 0x60) << 8) | in sch311x_detect()
354 sch311x_sio_inb(sio_config_port, 0x61); in sch311x_detect()
365 sch311x_sio_exit(sio_config_port); in sch311x_detect()