isp_freebsd.h (316402) | isp_freebsd.h (316406) |
---|---|
1/* $FreeBSD: stable/11/sys/dev/isp/isp_freebsd.h 316402 2017-04-02 10:54:28Z mav $ */ | 1/* $FreeBSD: stable/11/sys/dev/isp/isp_freebsd.h 316406 2017-04-02 10:57:19Z mav $ */ |
2/*- 3 * Qlogic ISP SCSI Host Adapter FreeBSD Wrapper Definitions 4 * 5 * Copyright (c) 1997-2008 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 --- 505 unchanged lines hidden (view full) --- 515#define XS_LUN(ccb) (ccb)->ccb_h.target_lun 516 517#define XS_CDBP(ccb) \ 518 (((ccb)->ccb_h.flags & CAM_CDB_POINTER)? \ 519 (ccb)->cdb_io.cdb_ptr : (ccb)->cdb_io.cdb_bytes) 520 521#define XS_CDBLEN(ccb) (ccb)->cdb_len 522#define XS_XFRLEN(ccb) (ccb)->dxfer_len | 2/*- 3 * Qlogic ISP SCSI Host Adapter FreeBSD Wrapper Definitions 4 * 5 * Copyright (c) 1997-2008 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 --- 505 unchanged lines hidden (view full) --- 515#define XS_LUN(ccb) (ccb)->ccb_h.target_lun 516 517#define XS_CDBP(ccb) \ 518 (((ccb)->ccb_h.flags & CAM_CDB_POINTER)? \ 519 (ccb)->cdb_io.cdb_ptr : (ccb)->cdb_io.cdb_bytes) 520 521#define XS_CDBLEN(ccb) (ccb)->cdb_len 522#define XS_XFRLEN(ccb) (ccb)->dxfer_len |
523#define XS_TIME(ccb) (ccb)->ccb_h.timeout | 523#define XS_TIME(ccb) \ 524 (((ccb)->ccb_h.timeout > 0xffff * 1000 - 999) ? 0 : \ 525 (((ccb)->ccb_h.timeout + 999) / 1000)) |
524#define XS_GET_RESID(ccb) (ccb)->resid 525#define XS_SET_RESID(ccb, r) (ccb)->resid = r 526#define XS_STSP(ccb) (&(ccb)->scsi_status) 527#define XS_SNSP(ccb) (&(ccb)->sense_data) 528 529#define XS_TOT_SNSLEN(ccb) ccb->sense_len 530#define XS_CUR_SNSLEN(ccb) (ccb->sense_len - ccb->sense_resid) 531 --- 174 unchanged lines hidden (view full) --- 706void isp_prt(ispsoftc_t *, int level, const char *, ...) __printflike(3, 4); 707void isp_xs_prt(ispsoftc_t *, XS_T *, int level, const char *, ...) __printflike(4, 5); 708uint64_t isp_nanotime_sub(struct timespec *, struct timespec *); 709int isp_mbox_acquire(ispsoftc_t *); 710void isp_mbox_wait_complete(ispsoftc_t *, mbreg_t *); 711void isp_mbox_notify_done(ispsoftc_t *); 712void isp_mbox_release(ispsoftc_t *); 713int isp_fc_scratch_acquire(ispsoftc_t *, int); | 526#define XS_GET_RESID(ccb) (ccb)->resid 527#define XS_SET_RESID(ccb, r) (ccb)->resid = r 528#define XS_STSP(ccb) (&(ccb)->scsi_status) 529#define XS_SNSP(ccb) (&(ccb)->sense_data) 530 531#define XS_TOT_SNSLEN(ccb) ccb->sense_len 532#define XS_CUR_SNSLEN(ccb) (ccb->sense_len - ccb->sense_resid) 533 --- 174 unchanged lines hidden (view full) --- 708void isp_prt(ispsoftc_t *, int level, const char *, ...) __printflike(3, 4); 709void isp_xs_prt(ispsoftc_t *, XS_T *, int level, const char *, ...) __printflike(4, 5); 710uint64_t isp_nanotime_sub(struct timespec *, struct timespec *); 711int isp_mbox_acquire(ispsoftc_t *); 712void isp_mbox_wait_complete(ispsoftc_t *, mbreg_t *); 713void isp_mbox_notify_done(ispsoftc_t *); 714void isp_mbox_release(ispsoftc_t *); 715int isp_fc_scratch_acquire(ispsoftc_t *, int); |
714int isp_mstohz(int); | |
715void isp_platform_intr(void *); 716void isp_platform_intr_resp(void *); 717void isp_platform_intr_atio(void *); 718void isp_common_dmateardown(ispsoftc_t *, struct ccb_scsiio *, uint32_t); 719void isp_fcp_reset_crn(ispsoftc_t *, int, uint32_t, int); 720int isp_fcp_next_crn(ispsoftc_t *, uint8_t *, XS_T *); 721 722/* --- 18 unchanged lines hidden --- | 716void isp_platform_intr(void *); 717void isp_platform_intr_resp(void *); 718void isp_platform_intr_atio(void *); 719void isp_common_dmateardown(ispsoftc_t *, struct ccb_scsiio *, uint32_t); 720void isp_fcp_reset_crn(ispsoftc_t *, int, uint32_t, int); 721int isp_fcp_next_crn(ispsoftc_t *, uint8_t *, XS_T *); 722 723/* --- 18 unchanged lines hidden --- |