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
27 #include <linux/io.h>
42 /* IO Ports */
43 #define REG 0x2e macro
121 * Try to reserve REG and REG + 1 for exclusive access. in superio_enter()
123 if (!request_muxed_region(REG, 2, WATCHDOG_NAME)) in superio_enter()
124 return -EBUSY; in superio_enter()
126 outb(0x87, REG); in superio_enter()
127 outb(0x01, REG); in superio_enter()
128 outb(0x55, REG); in superio_enter()
129 outb(0x55, REG); in superio_enter()
135 outb(0x02, REG); in superio_exit()
137 release_region(REG, 2); in superio_exit()
142 outb(LDNREG, REG); in superio_select()
146 static inline int superio_inb(int reg) in superio_inb() argument
148 outb(reg, REG); in superio_inb()
152 static inline void superio_outb(int val, int reg) in superio_outb() argument
154 outb(reg, REG); in superio_outb()
158 static inline int superio_inw(int reg) in superio_inw() argument
162 outb(reg++, REG); in superio_inw()
164 outb(reg, REG); in superio_inw()
209 t -= t % 60; in wdt_round_time()
217 return wdt_update_timeout(wdd->timeout); in wdt_start()
226 * wdt_set_timeout - set a new timeout value with watchdog ioctl
246 wdd->timeout = t; in wdt_set_timeout()
306 quirks = (long)dmi_id->driver_data; in it87_wdt_init()
340 return -ENODEV; in it87_wdt_init()
343 return -ENODEV; in it87_wdt_init()
347 return -ENODEV; in it87_wdt_init()
411 MODULE_DESCRIPTION("Hardware Watchdog Device Driver for IT87xx EC-LPC I/O");