/openbmc/linux/drivers/watchdog/ |
H A D | f71808e_wdt.c | 137 unsigned short sioaddr; member 264 err = superio_enter(wd->sioaddr); in fintek_wdt_keepalive() 267 superio_select(wd->sioaddr, SIO_F71808FG_LD_WDT); in fintek_wdt_keepalive() 271 superio_set_bit(wd->sioaddr, F71808FG_REG_WDT_CONF, in fintek_wdt_keepalive() 275 superio_clear_bit(wd->sioaddr, F71808FG_REG_WDT_CONF, in fintek_wdt_keepalive() 279 superio_outb(wd->sioaddr, F71808FG_REG_WD_TIME, in fintek_wdt_keepalive() 282 superio_exit(wd->sioaddr); in fintek_wdt_keepalive() 298 err = superio_enter(wd->sioaddr); in fintek_wdt_start() 301 superio_select(wd->sioaddr, SIO_F71808FG_LD_WDT); in fintek_wdt_start() 307 superio_clear_bit(wd->sioaddr, SIO_REG_MFUNCT2, 3); in fintek_wdt_start() [all …]
|
/openbmc/linux/drivers/hwmon/ |
H A D | pc87427.c | 101 static inline int superio_enter(int sioaddr) in superio_enter() argument 103 if (!request_muxed_region(sioaddr, 2, DRVNAME)) in superio_enter() 108 static inline void superio_outb(int sioaddr, int reg, int val) in superio_outb() argument 110 outb(reg, sioaddr); in superio_outb() 111 outb(val, sioaddr + 1); in superio_outb() 114 static inline int superio_inb(int sioaddr, int reg) in superio_inb() argument 116 outb(reg, sioaddr); in superio_inb() 117 return inb(sioaddr + 1); in superio_inb() 120 static inline void superio_exit(int sioaddr) in superio_exit() argument 122 outb(0x02, sioaddr); in superio_exit() [all …]
|
H A D | it87.c | 553 int sioaddr; member 577 int sioaddr; member 745 err = superio_enter(data->sioaddr); in smbus_disable() 748 superio_select(data->sioaddr, PME); in smbus_disable() 749 superio_outb(data->sioaddr, IT87_SPECIAL_CFG_REG, in smbus_disable() 751 superio_exit(data->sioaddr, has_conf_noexit(data)); in smbus_disable() 761 err = superio_enter(data->sioaddr); in smbus_enable() 765 superio_select(data->sioaddr, PME); in smbus_enable() 766 superio_outb(data->sioaddr, IT87_SPECIAL_CFG_REG, in smbus_enable() 768 superio_exit(data->sioaddr, has_conf_noexit(data)); in smbus_enable() [all …]
|
H A D | sch56xx-common.c | 451 static int __init sch56xx_find(int sioaddr, const char **name) in sch56xx_find() argument 457 err = superio_enter(sioaddr); in sch56xx_find() 461 devid = superio_inb(sioaddr, SIO_REG_DEVID); in sch56xx_find() 476 superio_select(sioaddr, SIO_SCH56XX_LD_EM); in sch56xx_find() 478 if (!(superio_inb(sioaddr, SIO_REG_ENABLE) & 0x01)) { in sch56xx_find() 488 address = superio_inb(sioaddr, SIO_REG_ADDR) | in sch56xx_find() 489 superio_inb(sioaddr, SIO_REG_ADDR + 1) << 8; in sch56xx_find() 498 superio_exit(sioaddr); in sch56xx_find()
|
H A D | nct6683.c | 1347 static int __init nct6683_find(int sioaddr, struct nct6683_sio_data *sio_data) in nct6683_find() argument 1353 err = superio_enter(sioaddr); in nct6683_find() 1357 val = (superio_inb(sioaddr, SIO_REG_DEVID) << 8) in nct6683_find() 1358 | superio_inb(sioaddr, SIO_REG_DEVID + 1); in nct6683_find() 1377 superio_select(sioaddr, NCT6683_LD_HWM); in nct6683_find() 1378 val = (superio_inb(sioaddr, SIO_REG_ADDR) << 8) in nct6683_find() 1379 | superio_inb(sioaddr, SIO_REG_ADDR + 1); in nct6683_find() 1387 val = superio_inb(sioaddr, SIO_REG_ENABLE); in nct6683_find() 1390 superio_outb(sioaddr, SIO_REG_ENABLE, val | 0x01); in nct6683_find() 1393 superio_exit(sioaddr); in nct6683_find() [all …]
|
H A D | pc87360.c | 87 static inline void superio_outb(int sioaddr, int reg, int val) in superio_outb() argument 89 outb(reg, sioaddr); in superio_outb() 90 outb(val, sioaddr + 1); in superio_outb() 93 static inline int superio_inb(int sioaddr, int reg) in superio_inb() argument 95 outb(reg, sioaddr); in superio_inb() 96 return inb(sioaddr + 1); in superio_inb() 99 static inline void superio_exit(int sioaddr) in superio_exit() argument 101 outb(0x02, sioaddr); in superio_exit() 102 outb(0x02, sioaddr + 1); in superio_exit() 1618 static int __init pc87360_find(int sioaddr, u8 *devid, in pc87360_find() argument [all …]
|
H A D | w83627hf.c | 53 int sioaddr; member 102 outb(reg, sio->sioaddr); in superio_outb() 103 outb(val, sio->sioaddr + 1); in superio_outb() 109 outb(reg, sio->sioaddr); in superio_inb() 110 return inb(sio->sioaddr + 1); in superio_inb() 116 outb(DEV, sio->sioaddr); in superio_select() 117 outb(ld, sio->sioaddr + 1); in superio_select() 123 if (!request_muxed_region(sio->sioaddr, 2, DRVNAME)) in superio_enter() 126 outb(0x87, sio->sioaddr); in superio_enter() 127 outb(0x87, sio->sioaddr); in superio_enter() [all …]
|
H A D | w83627ehf.c | 2023 static int __init w83627ehf_find(int sioaddr, unsigned short *addr, in w83627ehf_find() argument 2038 err = superio_enter(sioaddr); in w83627ehf_find() 2045 val = (superio_inb(sioaddr, SIO_REG_DEVID) << 8) in w83627ehf_find() 2046 | superio_inb(sioaddr, SIO_REG_DEVID + 1); in w83627ehf_find() 2079 superio_exit(sioaddr); in w83627ehf_find() 2084 superio_select(sioaddr, W83627EHF_LD_HWM); in w83627ehf_find() 2085 val = (superio_inb(sioaddr, SIO_REG_ADDR) << 8) in w83627ehf_find() 2086 | superio_inb(sioaddr, SIO_REG_ADDR + 1); in w83627ehf_find() 2090 superio_exit(sioaddr); in w83627ehf_find() 2095 val = superio_inb(sioaddr, SIO_REG_ENABLE); in w83627ehf_find() [all …]
|
H A D | f71805f.c | 1554 static int __init f71805f_find(int sioaddr, unsigned short *address, in f71805f_find() argument 1565 err = superio_enter(sioaddr); in f71805f_find() 1570 devid = superio_inw(sioaddr, SIO_REG_MANID); in f71805f_find() 1574 devid = force_id ? force_id : superio_inw(sioaddr, SIO_REG_DEVID); in f71805f_find() 1581 sio_data->fnsel1 = superio_inb(sioaddr, SIO_REG_FNSEL1); in f71805f_find() 1588 superio_select(sioaddr, F71805F_LD_HWM); in f71805f_find() 1589 if (!(superio_inb(sioaddr, SIO_REG_ENABLE) & 0x01)) { in f71805f_find() 1594 *address = superio_inw(sioaddr, SIO_REG_ADDR); in f71805f_find() 1604 superio_inb(sioaddr, SIO_REG_DEVREV)); in f71805f_find() 1607 superio_exit(sioaddr); in f71805f_find()
|
H A D | nct6775-platform.c | 985 static int __init nct6775_find(int sioaddr, struct nct6775_sio_data *sio_data) in nct6775_find() argument 992 sio_data->sioreg = sioaddr; in nct6775_find() 1076 nct6775_sio_names[sio_data->kind], sioaddr, addr); in nct6775_find() 1509 int sioaddr[2] = { 0x2e, 0x4e }; in sensors_nct6775_platform_init() local 1547 address = nct6775_find(sioaddr[i], &sio_data); in sensors_nct6775_platform_init()
|
H A D | f71882fg.c | 2512 static int __init f71882fg_find(int sioaddr, struct f71882fg_sio_data *sio_data) in f71882fg_find() argument 2516 int err = superio_enter(sioaddr); in f71882fg_find() 2520 devid = superio_inw(sioaddr, SIO_REG_MANID); in f71882fg_find() 2527 devid = force_id ? force_id : superio_inw(sioaddr, SIO_REG_DEVID); in f71882fg_find() 2584 superio_select(sioaddr, SIO_F71858FG_LD_HWM); in f71882fg_find() 2586 superio_select(sioaddr, SIO_F71882FG_LD_HWM); in f71882fg_find() 2588 if (!(superio_inb(sioaddr, SIO_REG_ENABLE) & 0x01)) { in f71882fg_find() 2594 address = superio_inw(sioaddr, SIO_REG_ADDR); in f71882fg_find() 2605 (int)superio_inb(sioaddr, SIO_REG_DEVREV)); in f71882fg_find() 2607 superio_exit(sioaddr); in f71882fg_find()
|