Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/mpr/mprvar.h
Show First 20 Lines • Show All 259 Lines • ▼ Show 20 Lines | |||||
struct mpr_event_handle { | struct mpr_event_handle { | ||||
TAILQ_ENTRY(mpr_event_handle) eh_list; | TAILQ_ENTRY(mpr_event_handle) eh_list; | ||||
mpr_evt_callback_t *callback; | mpr_evt_callback_t *callback; | ||||
void *data; | void *data; | ||||
uint8_t mask[16]; | uint8_t mask[16]; | ||||
}; | }; | ||||
struct mpr_busdma_context { | |||||
int completed; | |||||
int abandoned; | |||||
int error; | |||||
bus_addr_t *addr; | |||||
struct mpr_softc *softc; | |||||
bus_dmamap_t buffer_dmamap; | |||||
bus_dma_tag_t buffer_dmat; | |||||
}; | |||||
struct mpr_queue { | struct mpr_queue { | ||||
struct mpr_softc *sc; | struct mpr_softc *sc; | ||||
int qnum; | int qnum; | ||||
MPI2_REPLY_DESCRIPTORS_UNION *post_queue; | MPI2_REPLY_DESCRIPTORS_UNION *post_queue; | ||||
int replypostindex; | int replypostindex; | ||||
#ifdef notyet | #ifdef notyet | ||||
ck_ring_buffer_t *ringmem; | ck_ring_buffer_t *ringmem; | ||||
ck_ring_buffer_t *chainmem; | ck_ring_buffer_t *chainmem; | ||||
▲ Show 20 Lines • Show All 471 Lines • ▼ Show 20 Lines | |||||
int mpr_push_sge(struct mpr_command *, MPI2_SGE_SIMPLE64 *, size_t, int); | int mpr_push_sge(struct mpr_command *, MPI2_SGE_SIMPLE64 *, size_t, int); | ||||
int mpr_push_ieee_sge(struct mpr_command *, void *, int); | int mpr_push_ieee_sge(struct mpr_command *, void *, int); | ||||
int mpr_add_dmaseg(struct mpr_command *, vm_paddr_t, size_t, u_int, int); | int mpr_add_dmaseg(struct mpr_command *, vm_paddr_t, size_t, u_int, int); | ||||
int mpr_attach_sas(struct mpr_softc *sc); | int mpr_attach_sas(struct mpr_softc *sc); | ||||
int mpr_detach_sas(struct mpr_softc *sc); | int mpr_detach_sas(struct mpr_softc *sc); | ||||
int mpr_read_config_page(struct mpr_softc *, struct mpr_config_params *); | int mpr_read_config_page(struct mpr_softc *, struct mpr_config_params *); | ||||
int mpr_write_config_page(struct mpr_softc *, struct mpr_config_params *); | int mpr_write_config_page(struct mpr_softc *, struct mpr_config_params *); | ||||
void mpr_memaddr_cb(void *, bus_dma_segment_t *, int , int ); | void mpr_memaddr_cb(void *, bus_dma_segment_t *, int , int ); | ||||
void mpr_memaddr_wait_cb(void *, bus_dma_segment_t *, int , int ); | |||||
void mpr_init_sge(struct mpr_command *cm, void *req, void *sge); | void mpr_init_sge(struct mpr_command *cm, void *req, void *sge); | ||||
int mpr_attach_user(struct mpr_softc *); | int mpr_attach_user(struct mpr_softc *); | ||||
void mpr_detach_user(struct mpr_softc *); | void mpr_detach_user(struct mpr_softc *); | ||||
void mprsas_record_event(struct mpr_softc *sc, | void mprsas_record_event(struct mpr_softc *sc, | ||||
MPI2_EVENT_NOTIFICATION_REPLY *event_reply); | MPI2_EVENT_NOTIFICATION_REPLY *event_reply); | ||||
int mpr_map_command(struct mpr_softc *sc, struct mpr_command *cm); | int mpr_map_command(struct mpr_softc *sc, struct mpr_command *cm); | ||||
int mpr_wait_command(struct mpr_softc *sc, struct mpr_command **cm, int timeout, | int mpr_wait_command(struct mpr_softc *sc, struct mpr_command **cm, int timeout, | ||||
▲ Show 20 Lines • Show All 154 Lines • Show Last 20 Lines |