Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/mpr/mprvar.h
Show First 20 Lines • Show All 272 Lines • ▼ Show 20 Lines | |||||
#define MPR_FLAGS_BUSY (1 << 2) | #define MPR_FLAGS_BUSY (1 << 2) | ||||
#define MPR_FLAGS_SHUTDOWN (1 << 3) | #define MPR_FLAGS_SHUTDOWN (1 << 3) | ||||
#define MPR_FLAGS_DIAGRESET (1 << 4) | #define MPR_FLAGS_DIAGRESET (1 << 4) | ||||
#define MPR_FLAGS_ATTACH_DONE (1 << 5) | #define MPR_FLAGS_ATTACH_DONE (1 << 5) | ||||
#define MPR_FLAGS_GEN35_IOC (1 << 6) | #define MPR_FLAGS_GEN35_IOC (1 << 6) | ||||
u_int mpr_debug; | u_int mpr_debug; | ||||
u_int disable_msix; | u_int disable_msix; | ||||
u_int disable_msi; | u_int disable_msi; | ||||
int msi_msgs; | |||||
u_int atomic_desc_capable; | u_int atomic_desc_capable; | ||||
int tm_cmds_active; | int tm_cmds_active; | ||||
int io_cmds_active; | int io_cmds_active; | ||||
int io_cmds_highwater; | int io_cmds_highwater; | ||||
int chain_free; | int chain_free; | ||||
int max_chains; | int max_chains; | ||||
int max_io_pages; | int max_io_pages; | ||||
u_int maxio; | u_int maxio; | ||||
▲ Show 20 Lines • Show All 408 Lines • ▼ Show 20 Lines | mpr_unmask_intr(struct mpr_softc *sc) | ||||
mask = mpr_regread(sc, MPI2_HOST_INTERRUPT_MASK_OFFSET); | mask = mpr_regread(sc, MPI2_HOST_INTERRUPT_MASK_OFFSET); | ||||
mask &= ~MPI2_HIM_REPLY_INT_MASK; | mask &= ~MPI2_HIM_REPLY_INT_MASK; | ||||
mpr_regwrite(sc, MPI2_HOST_INTERRUPT_MASK_OFFSET, mask); | mpr_regwrite(sc, MPI2_HOST_INTERRUPT_MASK_OFFSET, mask); | ||||
} | } | ||||
int mpr_pci_setup_interrupts(struct mpr_softc *sc); | int mpr_pci_setup_interrupts(struct mpr_softc *sc); | ||||
int mpr_pci_restore(struct mpr_softc *sc); | int mpr_pci_restore(struct mpr_softc *sc); | ||||
void mpr_get_tunables(struct mpr_softc *sc); | |||||
int mpr_attach(struct mpr_softc *sc); | int mpr_attach(struct mpr_softc *sc); | ||||
int mpr_free(struct mpr_softc *sc); | int mpr_free(struct mpr_softc *sc); | ||||
void mpr_intr(void *); | void mpr_intr(void *); | ||||
void mpr_intr_msi(void *); | void mpr_intr_msi(void *); | ||||
void mpr_intr_locked(void *); | void mpr_intr_locked(void *); | ||||
int mpr_register_events(struct mpr_softc *, uint8_t *, mpr_evt_callback_t *, | int mpr_register_events(struct mpr_softc *, uint8_t *, mpr_evt_callback_t *, | ||||
void *, struct mpr_event_handle **); | void *, struct mpr_event_handle **); | ||||
int mpr_restart(struct mpr_softc *); | int mpr_restart(struct mpr_softc *); | ||||
▲ Show 20 Lines • Show All 175 Lines • Show Last 20 Lines |