/* * smbus_intr() */ void smbus_intr(device_t bus, u_char devaddr, char low, char high, int error) { struct smbus_softc *sc = (struct smbus_softc *)device_get_softc(bus); /* call owner's intr routine */ if (sc->owner) SMBUS_INTR(sc->owner, devaddr, low, high, error); return; }
/* * smbus_intr() */ void smbus_intr(device_t bus, u_char devaddr, char low, char high, int error) { struct smbus_softc *sc = device_get_softc(bus); /* call owner's intr routine */ mtx_lock(&sc->lock); if (sc->owner) SMBUS_INTR(sc->owner, devaddr, low, high, error); mtx_unlock(&sc->lock); }