Lines Matching refs:sio_config_port
83 static inline void sch311x_sio_enter(int sio_config_port) in sch311x_sio_enter() argument
85 outb(0x55, sio_config_port); in sch311x_sio_enter()
88 static inline void sch311x_sio_exit(int sio_config_port) in sch311x_sio_exit() argument
90 outb(0xaa, sio_config_port); in sch311x_sio_exit()
93 static inline int sch311x_sio_inb(int sio_config_port, int reg) in sch311x_sio_inb() argument
95 outb(reg, sio_config_port); in sch311x_sio_inb()
96 return inb(sio_config_port + 1); in sch311x_sio_inb()
99 static inline void sch311x_sio_outb(int sio_config_port, int reg, int val) in sch311x_sio_outb() argument
101 outb(reg, sio_config_port); in sch311x_sio_outb()
102 outb(val, sio_config_port + 1); in sch311x_sio_outb()
456 static int __init sch311x_detect(int sio_config_port, unsigned short *addr) in sch311x_detect() argument
462 sch311x_sio_enter(sio_config_port); in sch311x_detect()
466 reg = force_id ? force_id : sch311x_sio_inb(sio_config_port, 0x20); in sch311x_detect()
474 sch311x_sio_outb(sio_config_port, 0x07, 0x0a); in sch311x_detect()
477 if ((sch311x_sio_inb(sio_config_port, 0x30) & 0x01) == 0) in sch311x_detect()
481 base_addr = (sch311x_sio_inb(sio_config_port, 0x60) << 8) | in sch311x_detect()
482 sch311x_sio_inb(sio_config_port, 0x61); in sch311x_detect()
493 sch311x_sio_exit(sio_config_port); in sch311x_detect()