Lines Matching refs:base
126 static inline int superio_inb(int base, int reg);
127 static inline int superio_inw(int base, int reg);
128 static inline void superio_outb(int base, int reg, u8 val);
129 static inline void superio_set_bit(int base, int reg, int bit);
130 static inline void superio_clear_bit(int base, int reg, int bit);
131 static inline int superio_enter(int base);
132 static inline void superio_select(int base, int ld);
133 static inline void superio_exit(int base);
156 static inline int superio_inb(int base, int reg)
158 outb(reg, base);
159 return inb(base + 1);
162 static int superio_inw(int base, int reg)
165 val = superio_inb(base, reg) << 8;
166 val |= superio_inb(base, reg + 1);
170 static inline void superio_outb(int base, int reg, u8 val)
172 outb(reg, base);
173 outb(val, base + 1);
176 static inline void superio_set_bit(int base, int reg, int bit)
178 unsigned long val = superio_inb(base, reg);
180 superio_outb(base, reg, val);
183 static inline void superio_clear_bit(int base, int reg, int bit)
185 unsigned long val = superio_inb(base, reg);
187 superio_outb(base, reg, val);
190 static inline int superio_enter(int base)
193 if (!request_muxed_region(base, 2, DRVNAME)) {
194 pr_err("I/O address 0x%04x already in use\n", (int)base);
199 outb(SIO_UNLOCK_KEY, base);
200 outb(SIO_UNLOCK_KEY, base);
205 static inline void superio_select(int base, int ld)
207 outb(SIO_REG_LDSEL, base);
208 outb(ld, base + 1);
211 static inline void superio_exit(int base)
213 outb(SIO_LOCK_KEY, base);
214 release_region(base, 2);