Lines Matching +full:smi +full:- +full:based
1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
178 #define SMIC_STATUS_SMI 0x10 /* asserted SMI */
204 #define IPMI_LOCK(sc) mtx_lock(&(sc)->ipmi_requests_lock)
205 #define IPMI_UNLOCK(sc) mtx_unlock(&(sc)->ipmi_requests_lock)
206 #define IPMI_LOCK_ASSERT(sc) mtx_assert(&(sc)->ipmi_requests_lock, MA_OWNED)
208 #define IPMI_IO_LOCK(sc) mtx_lock(&(sc)->ipmi_io_lock)
209 #define IPMI_IO_UNLOCK(sc) mtx_unlock(&(sc)->ipmi_io_lock)
210 #define IPMI_IO_LOCK_ASSERT(sc) mtx_assert(&(sc)->ipmi_io_lock, MA_OWNED)
214 bus_read_1((sc)->ipmi_io_res[0], (sc)->ipmi_io_spacing * (x))
216 bus_write_1((sc)->ipmi_io_res[0], (sc)->ipmi_io_spacing * (x), value)
220 bus_read_1((sc)->ipmi_io_res[(x)], 0)
222 bus_write_1((sc)->ipmi_io_res[(x)], 0, value)
225 * Determine I/O method based on whether or not we have more than one I/O
229 ((sc)->ipmi_io_res[1] != NULL ? INB_MULTIPLE(sc, x) : INB_SINGLE(sc, x))
231 ((sc)->ipmi_io_res[1] != NULL ? OUTB_MULTIPLE(sc, x, value) : \