mpt.h (102199) | mpt.h (102822) |
---|---|
1/* $FreeBSD: head/sys/dev/mpt/mpt.h 102199 2002-08-20 23:04:08Z mjacob $ */ | 1/* $FreeBSD: head/sys/dev/mpt/mpt.h 102822 2002-09-01 23:07:09Z mjacob $ */ |
2/* 3 * Generic defines for LSI '909 FC adapters. 4 * FreeBSD Version. 5 * 6 * Copyright (c) 2000, 2001 by Greg Ansley 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions --- 135 unchanged lines hidden (view full) --- 145#define MPT_CONTEXT_REPLY (0x80000000) 146#define MPT_CONTEXT_MASK (~0xE0000000) 147 148#ifdef _KERNEL 149int mpt_soft_reset(mpt_softc_t *mpt); 150void mpt_hard_reset(mpt_softc_t *mpt); 151int mpt_recv_handshake_reply(mpt_softc_t *mpt, size_t reply_len, void *reply); 152 | 2/* 3 * Generic defines for LSI '909 FC adapters. 4 * FreeBSD Version. 5 * 6 * Copyright (c) 2000, 2001 by Greg Ansley 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions --- 135 unchanged lines hidden (view full) --- 145#define MPT_CONTEXT_REPLY (0x80000000) 146#define MPT_CONTEXT_MASK (~0xE0000000) 147 148#ifdef _KERNEL 149int mpt_soft_reset(mpt_softc_t *mpt); 150void mpt_hard_reset(mpt_softc_t *mpt); 151int mpt_recv_handshake_reply(mpt_softc_t *mpt, size_t reply_len, void *reply); 152 |
153 | |
154void mpt_send_cmd(mpt_softc_t *mpt, request_t *req); 155void mpt_free_reply(mpt_softc_t *mpt, u_int32_t ptr); 156void mpt_enable_ints(mpt_softc_t *mpt); 157void mpt_disable_ints(mpt_softc_t *mpt); 158u_int32_t mpt_pop_reply_queue(mpt_softc_t *mpt); 159int mpt_init(mpt_softc_t *mpt, u_int32_t who); 160int mpt_reset(mpt_softc_t *mpt); 161int mpt_send_handshake_cmd(mpt_softc_t *mpt, size_t len, void *cmd); 162request_t * mpt_get_request(mpt_softc_t *mpt); 163void mpt_free_request(mpt_softc_t *mpt, request_t *req); 164int mpt_intr(void *dummy); 165void mpt_check_doorbell(mpt_softc_t * mpt); 166 | 153void mpt_send_cmd(mpt_softc_t *mpt, request_t *req); 154void mpt_free_reply(mpt_softc_t *mpt, u_int32_t ptr); 155void mpt_enable_ints(mpt_softc_t *mpt); 156void mpt_disable_ints(mpt_softc_t *mpt); 157u_int32_t mpt_pop_reply_queue(mpt_softc_t *mpt); 158int mpt_init(mpt_softc_t *mpt, u_int32_t who); 159int mpt_reset(mpt_softc_t *mpt); 160int mpt_send_handshake_cmd(mpt_softc_t *mpt, size_t len, void *cmd); 161request_t * mpt_get_request(mpt_softc_t *mpt); 162void mpt_free_request(mpt_softc_t *mpt, request_t *req); 163int mpt_intr(void *dummy); 164void mpt_check_doorbell(mpt_softc_t * mpt); 165 |
166int mpt_read_cfg_page(mpt_softc_t *, int, fCONFIG_PAGE_HEADER *); 167int mpt_write_cfg_page(mpt_softc_t *, int, fCONFIG_PAGE_HEADER *); 168 |
|
167/* mpt_debug.c functions */ 168void mpt_print_reply(void *vmsg); 169void mpt_print_db(u_int32_t mb); 170void mpt_print_config_reply(void *vmsg); 171char *mpt_ioc_diag(u_int32_t diag); 172char *mpt_req_state(enum mpt_req_state state); 173void mpt_print_scsi_io_request(MSG_SCSI_IO_REQUEST *msg); 174void mpt_print_config_request(void *vmsg); 175void mpt_print_request(void *vmsg); 176#endif 177#endif /* _MPT_H_ */ | 169/* mpt_debug.c functions */ 170void mpt_print_reply(void *vmsg); 171void mpt_print_db(u_int32_t mb); 172void mpt_print_config_reply(void *vmsg); 173char *mpt_ioc_diag(u_int32_t diag); 174char *mpt_req_state(enum mpt_req_state state); 175void mpt_print_scsi_io_request(MSG_SCSI_IO_REQUEST *msg); 176void mpt_print_config_request(void *vmsg); 177void mpt_print_request(void *vmsg); 178#endif 179#endif /* _MPT_H_ */ |