isp_library.h (155228) | isp_library.h (155704) |
---|---|
1/* $FreeBSD: head/sys/dev/isp/isp_library.h 155228 2006-02-02 21:31:34Z mjacob $ */ | 1/* $FreeBSD: head/sys/dev/isp/isp_library.h 155704 2006-02-15 00:31:48Z mjacob $ */ |
2/*- 3 * Qlogic Host Adapter Library Functions 4 * 5 * Copyright (c) 1999-2006 by Matthew Jacob 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions --- 15 unchanged lines hidden (view full) --- 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 */ 30#ifndef _ISP_LIBRARY_H 31#define _ISP_LIBRARY_H 32 | 2/*- 3 * Qlogic Host Adapter Library Functions 4 * 5 * Copyright (c) 1999-2006 by Matthew Jacob 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions --- 15 unchanged lines hidden (view full) --- 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 */ 30#ifndef _ISP_LIBRARY_H 31#define _ISP_LIBRARY_H 32 |
33extern int isp_save_xs(ispsoftc_t *, XS_T *, u_int16_t *); 34extern XS_T *isp_find_xs(ispsoftc_t *, u_int16_t); 35extern u_int16_t isp_find_handle(ispsoftc_t *, XS_T *); 36extern int isp_handle_index(u_int16_t); 37extern u_int16_t isp_index_handle(int); 38extern void isp_destroy_handle(ispsoftc_t *, u_int16_t); 39extern int isp_getrqentry(ispsoftc_t *, u_int16_t *, u_int16_t *, void **); | 33extern int isp_save_xs(ispsoftc_t *, XS_T *, uint16_t *); 34extern XS_T *isp_find_xs(ispsoftc_t *, uint16_t); 35extern uint16_t isp_find_handle(ispsoftc_t *, XS_T *); 36extern int isp_handle_index(uint16_t); 37extern uint16_t isp_index_handle(int); 38extern void isp_destroy_handle(ispsoftc_t *, uint16_t); 39extern int isp_getrqentry(ispsoftc_t *, uint16_t *, uint16_t *, void **); |
40extern void isp_print_qentry (ispsoftc_t *, char *, int, void *); 41extern void isp_print_bytes(ispsoftc_t *, char *, int, void *); 42extern int isp_fc_runstate(ispsoftc_t *, int); 43extern void isp_copy_out_hdr(ispsoftc_t *, isphdr_t *, isphdr_t *); 44extern void isp_copy_in_hdr(ispsoftc_t *, isphdr_t *, isphdr_t *); 45extern int isp_get_response_type(ispsoftc_t *, isphdr_t *); 46extern void 47isp_put_request(ispsoftc_t *, ispreq_t *, ispreq_t *); --- 42 unchanged lines hidden (view full) --- 90extern void 91isp_get_gff_id_response(ispsoftc_t *, sns_gff_id_rsp_t *, 92 sns_gff_id_rsp_t *); 93extern void 94isp_get_ga_nxt_response(ispsoftc_t *, sns_ga_nxt_rsp_t *, 95 sns_ga_nxt_rsp_t *); 96 97#ifdef ISP_TARGET_MODE | 40extern void isp_print_qentry (ispsoftc_t *, char *, int, void *); 41extern void isp_print_bytes(ispsoftc_t *, char *, int, void *); 42extern int isp_fc_runstate(ispsoftc_t *, int); 43extern void isp_copy_out_hdr(ispsoftc_t *, isphdr_t *, isphdr_t *); 44extern void isp_copy_in_hdr(ispsoftc_t *, isphdr_t *, isphdr_t *); 45extern int isp_get_response_type(ispsoftc_t *, isphdr_t *); 46extern void 47isp_put_request(ispsoftc_t *, ispreq_t *, ispreq_t *); --- 42 unchanged lines hidden (view full) --- 90extern void 91isp_get_gff_id_response(ispsoftc_t *, sns_gff_id_rsp_t *, 92 sns_gff_id_rsp_t *); 93extern void 94isp_get_ga_nxt_response(ispsoftc_t *, sns_ga_nxt_rsp_t *, 95 sns_ga_nxt_rsp_t *); 96 97#ifdef ISP_TARGET_MODE |
98#if defined(__NetBSD__) || defined(__OpenBSD__) 99#include <dev/ic/isp_target.h> 100#elif defined(__FreeBSD__) |
|
98#include <dev/isp/isp_target.h> | 101#include <dev/isp/isp_target.h> |
102#else 103#include "isp_target.h" 104#endif |
|
99 | 105 |
100extern int isp_save_xs_tgt(ispsoftc_t *, void *, u_int16_t *); 101extern void *isp_find_xs_tgt(ispsoftc_t *, u_int16_t); 102extern u_int16_t isp_find_tgt_handle(ispsoftc_t *, void *); 103extern void isp_destroy_tgt_handle(ispsoftc_t *, u_int16_t); | 106extern int isp_save_xs_tgt(ispsoftc_t *, void *, uint16_t *); 107extern void *isp_find_xs_tgt(ispsoftc_t *, uint16_t); 108extern uint16_t isp_find_tgt_handle(ispsoftc_t *, void *); 109extern void isp_destroy_tgt_handle(ispsoftc_t *, uint16_t); |
104 105extern void 106isp_put_atio(ispsoftc_t *, at_entry_t *, at_entry_t *); 107extern void 108isp_get_atio(ispsoftc_t *, at_entry_t *, at_entry_t *); 109extern void 110isp_put_atio2(ispsoftc_t *, at2_entry_t *, at2_entry_t *); 111extern void --- 47 unchanged lines hidden --- | 110 111extern void 112isp_put_atio(ispsoftc_t *, at_entry_t *, at_entry_t *); 113extern void 114isp_get_atio(ispsoftc_t *, at_entry_t *, at_entry_t *); 115extern void 116isp_put_atio2(ispsoftc_t *, at2_entry_t *, at2_entry_t *); 117extern void --- 47 unchanged lines hidden --- |