Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/mps/mpsvar.h
Show First 20 Lines • Show All 257 Lines • ▼ Show 20 Lines | |||||
struct mps_event_handle { | struct mps_event_handle { | ||||
TAILQ_ENTRY(mps_event_handle) eh_list; | TAILQ_ENTRY(mps_event_handle) eh_list; | ||||
mps_evt_callback_t *callback; | mps_evt_callback_t *callback; | ||||
void *data; | void *data; | ||||
u32 mask[MPI2_EVENT_NOTIFY_EVENTMASK_WORDS]; | u32 mask[MPI2_EVENT_NOTIFY_EVENTMASK_WORDS]; | ||||
}; | }; | ||||
struct mps_busdma_context { | |||||
int completed; | |||||
int abandoned; | |||||
int error; | |||||
bus_addr_t *addr; | |||||
struct mps_softc *softc; | |||||
bus_dmamap_t buffer_dmamap; | |||||
bus_dma_tag_t buffer_dmat; | |||||
}; | |||||
struct mps_queue { | struct mps_queue { | ||||
struct mps_softc *sc; | struct mps_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 440 Lines • ▼ Show 20 Lines | |||||
void mps_deregister_events(struct mps_softc *, struct mps_event_handle *); | void mps_deregister_events(struct mps_softc *, struct mps_event_handle *); | ||||
int mps_push_sge(struct mps_command *, void *, size_t, int); | int mps_push_sge(struct mps_command *, void *, size_t, int); | ||||
int mps_add_dmaseg(struct mps_command *, vm_paddr_t, size_t, u_int, int); | int mps_add_dmaseg(struct mps_command *, vm_paddr_t, size_t, u_int, int); | ||||
int mps_attach_sas(struct mps_softc *sc); | int mps_attach_sas(struct mps_softc *sc); | ||||
int mps_detach_sas(struct mps_softc *sc); | int mps_detach_sas(struct mps_softc *sc); | ||||
int mps_read_config_page(struct mps_softc *, struct mps_config_params *); | int mps_read_config_page(struct mps_softc *, struct mps_config_params *); | ||||
int mps_write_config_page(struct mps_softc *, struct mps_config_params *); | int mps_write_config_page(struct mps_softc *, struct mps_config_params *); | ||||
void mps_memaddr_cb(void *, bus_dma_segment_t *, int , int ); | void mps_memaddr_cb(void *, bus_dma_segment_t *, int , int ); | ||||
void mps_memaddr_wait_cb(void *, bus_dma_segment_t *, int , int ); | |||||
void mpi_init_sge(struct mps_command *cm, void *req, void *sge); | void mpi_init_sge(struct mps_command *cm, void *req, void *sge); | ||||
int mps_attach_user(struct mps_softc *); | int mps_attach_user(struct mps_softc *); | ||||
void mps_detach_user(struct mps_softc *); | void mps_detach_user(struct mps_softc *); | ||||
void mpssas_record_event(struct mps_softc *sc, | void mpssas_record_event(struct mps_softc *sc, | ||||
MPI2_EVENT_NOTIFICATION_REPLY *event_reply); | MPI2_EVENT_NOTIFICATION_REPLY *event_reply); | ||||
int mps_map_command(struct mps_softc *sc, struct mps_command *cm); | int mps_map_command(struct mps_softc *sc, struct mps_command *cm); | ||||
int mps_wait_command(struct mps_softc *sc, struct mps_command **cm, int timeout, | int mps_wait_command(struct mps_softc *sc, struct mps_command **cm, int timeout, | ||||
▲ Show 20 Lines • Show All 101 Lines • Show Last 20 Lines |