Lines Matching +full:lpc +full:- +full:io +full:- +full:reg
1 // SPDX-License-Identifier: GPL-2.0-or-later
4 * for ITE IT87xx Environment Control - Low Pin Count Input / Output
12 * Data-sheets: Publicly available at the ITE website
24 #include <linux/io.h>
38 /* IO Ports */
39 #define REG 0x2e macro
108 * Try to reserve REG and REG + 1 for exclusive access. in superio_enter()
110 if (!request_muxed_region(REG, 2, WATCHDOG_NAME)) in superio_enter()
111 return -EBUSY; in superio_enter()
113 outb(0x87, REG); in superio_enter()
114 outb(0x01, REG); in superio_enter()
115 outb(0x55, REG); in superio_enter()
116 outb(0x55, REG); in superio_enter()
122 outb(0x02, REG); in superio_exit()
124 release_region(REG, 2); in superio_exit()
129 outb(LDNREG, REG); in superio_select()
133 static inline int superio_inb(int reg) in superio_inb() argument
135 outb(reg, REG); in superio_inb()
139 static inline void superio_outb(int val, int reg) in superio_outb() argument
141 outb(reg, REG); in superio_outb()
145 static inline int superio_inw(int reg) in superio_inw() argument
148 outb(reg++, REG); in superio_inw()
150 outb(reg, REG); in superio_inw()
195 t -= t % 60; in wdt_round_time()
203 return wdt_update_timeout(wdd->timeout); in wdt_start()
212 * wdt_set_timeout - set a new timeout value with watchdog ioctl
228 wdd->timeout = t; in wdt_set_timeout()
300 return -ENODEV; in it87_wdt_init()
303 return -ENODEV; in it87_wdt_init()
307 return -ENODEV; in it87_wdt_init()
353 MODULE_DESCRIPTION("Hardware Watchdog Device Driver for IT87xx EC-LPC I/O");