Searched refs:sio_config_port (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/drivers/gpio/ |
H A D | gpio-sch311x.c | 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() [all …]
|
/openbmc/linux/drivers/watchdog/ |
H A D | sch311x_wdt.c | 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() [all …]
|