Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ichiic/ig4_var.h
| Show First 20 Lines • Show All 96 Lines • ▼ Show 20 Lines | struct ig4iic_softc { | ||||
| /* | /* | ||||
| * Locking semantics: | * Locking semantics: | ||||
| * | * | ||||
| * Functions implementing the icbus interface that interact | * Functions implementing the icbus interface that interact | ||||
| * with the controller acquire an exclusive lock on call_lock | * with the controller acquire an exclusive lock on call_lock | ||||
| * to prevent interleaving of calls to the interface. | * to prevent interleaving of calls to the interface. | ||||
| * | * | ||||
| * Bus_lock provides exclusive access to the bus as call_lock | |||||
| * is used by an API which is only advisory. | |||||
| * | |||||
| * io_lock is used as condition variable to synchronize active process | * io_lock is used as condition variable to synchronize active process | ||||
| * with the interrupt handler. It should not be used for tasks other | * with the interrupt handler. It should not be used for tasks other | ||||
| * than waiting for interrupt and passing parameters to and from | * than waiting for interrupt and passing parameters to and from | ||||
| * it's handler. | * it's handler. | ||||
| */ | */ | ||||
| struct sx call_lock; | struct sx call_lock; | ||||
| struct sx bus_lock; | |||||
| struct mtx io_lock; | struct mtx io_lock; | ||||
| }; | }; | ||||
| typedef struct ig4iic_softc ig4iic_softc_t; | typedef struct ig4iic_softc ig4iic_softc_t; | ||||
| /* Attach/Detach called from ig4iic_pci_*() */ | /* Attach/Detach called from ig4iic_pci_*() */ | ||||
| int ig4iic_attach(ig4iic_softc_t *sc); | int ig4iic_attach(ig4iic_softc_t *sc); | ||||
| int ig4iic_detach(ig4iic_softc_t *sc); | int ig4iic_detach(ig4iic_softc_t *sc); | ||||
| Show All 9 Lines | |||||