Lines Matching refs:sio_config_port
87 static inline void sch311x_sio_enter(int sio_config_port) in sch311x_sio_enter() argument
89 outb(0x55, sio_config_port); in sch311x_sio_enter()
92 static inline void sch311x_sio_exit(int sio_config_port) in sch311x_sio_exit() argument
94 outb(0xaa, sio_config_port); in sch311x_sio_exit()
97 static inline int sch311x_sio_inb(int sio_config_port, int reg) in sch311x_sio_inb() argument
99 outb(reg, sio_config_port); in sch311x_sio_inb()
100 return inb(sio_config_port + 1); in sch311x_sio_inb()
103 static inline void sch311x_sio_outb(int sio_config_port, int reg, int val) in sch311x_sio_outb() argument
105 outb(reg, sio_config_port); in sch311x_sio_outb()
106 outb(val, sio_config_port + 1); in sch311x_sio_outb()
460 static int __init sch311x_detect(int sio_config_port, unsigned short *addr) in sch311x_detect() argument
466 sch311x_sio_enter(sio_config_port); in sch311x_detect()
470 reg = force_id ? force_id : sch311x_sio_inb(sio_config_port, 0x20); in sch311x_detect()
478 sch311x_sio_outb(sio_config_port, 0x07, 0x0a); in sch311x_detect()
481 if ((sch311x_sio_inb(sio_config_port, 0x30) & 0x01) == 0) in sch311x_detect()
485 base_addr = (sch311x_sio_inb(sio_config_port, 0x60) << 8) | in sch311x_detect()
486 sch311x_sio_inb(sio_config_port, 0x61); in sch311x_detect()
497 sch311x_sio_exit(sio_config_port); in sch311x_detect()