Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/malo/if_malo.h
Show First 20 Lines • Show All 576 Lines • ▼ Show 20 Lines | mtx_init(&(_sc)->malo_rxlock, device_get_nameunit((_sc)->malo_dev), \ | ||||
NULL, MTX_DEF) | NULL, MTX_DEF) | ||||
#define MALO_RXFREE_DESTROY(_sc) mtx_destroy(&(_sc)->malo_rxlock) | #define MALO_RXFREE_DESTROY(_sc) mtx_destroy(&(_sc)->malo_rxlock) | ||||
#define MALO_RXFREE_LOCK(_sc) mtx_lock(&(_sc)->malo_rxlock) | #define MALO_RXFREE_LOCK(_sc) mtx_lock(&(_sc)->malo_rxlock) | ||||
#define MALO_RXFREE_UNLOCK(_sc) mtx_unlock(&(_sc)->malo_rxlock) | #define MALO_RXFREE_UNLOCK(_sc) mtx_unlock(&(_sc)->malo_rxlock) | ||||
#define MALO_RXFREE_ASSERT(_sc) mtx_assert(&(_sc)->malo_rxlock, \ | #define MALO_RXFREE_ASSERT(_sc) mtx_assert(&(_sc)->malo_rxlock, \ | ||||
MA_OWNED) | MA_OWNED) | ||||
int malo_attach(uint16_t, struct malo_softc *); | int malo_attach(uint16_t, struct malo_softc *); | ||||
int malo_intr(void *); | driver_filter_t malo_intr; | ||||
int malo_detach(struct malo_softc *); | int malo_detach(struct malo_softc *); | ||||
void malo_shutdown(struct malo_softc *); | void malo_shutdown(struct malo_softc *); | ||||
void malo_suspend(struct malo_softc *); | void malo_suspend(struct malo_softc *); | ||||
void malo_resume(struct malo_softc *); | void malo_resume(struct malo_softc *); | ||||
#endif | #endif |