Lines Matching full:isp

32  * Soft Definitions for Qlogic ISP SCSI adapters.
43 #include <dev/isp/isp_stds.h>
44 #include <dev/isp/ispmbox.h>
80 #define ISP_MAX_TARGETS(isp) MAX_FC_TARG argument
84 * Macros to access ISP registers through bus specific layers-
87 #define ISP_RUN_ISR(isp) \ argument
88 (*(isp)->isp_mdvec->dv_run_isr)(isp)
90 #define ISP_READ(isp, reg) \ argument
91 (*(isp)->isp_mdvec->dv_rd_reg)((isp), (reg))
93 #define ISP_WRITE(isp, reg, val) \ argument
94 (*(isp)->isp_mdvec->dv_wr_reg)((isp), (reg), (val))
96 #define ISP_MBOXDMASETUP(isp) \ argument
97 (*(isp)->isp_mdvec->dv_mbxdma)((isp))
99 #define ISP_SEND_CMD(isp, qe, segp, nseg) \ argument
100 (*(isp)->isp_mdvec->dv_send_cmd)((isp), (qe), (segp), (nseg))
102 #define ISP_IRQSETUP(isp) \ argument
103 (((isp)->isp_mdvec->dv_irqsetup) ? (*(isp)->isp_mdvec->dv_irqsetup)(isp) : 0)
104 #define ISP_DUMPREGS(isp, m) \ argument
105 if ((isp)->isp_mdvec->dv_dregs) (*(isp)->isp_mdvec->dv_dregs)((isp),(m))
107 #define ISP_SETBITS(isp, reg, val) \ argument
108 (*(isp)->isp_mdvec->dv_wr_reg)((isp), (reg), ISP_READ((isp), (reg)) | (val))
110 #define ISP_CLRBITS(isp, reg, val) \ argument
111 (*(isp)->isp_mdvec->dv_wr_reg)((isp), (reg), ISP_READ((isp), (reg)) & ~(val))
121 #define SYNC_SFORDEV 2 /* scratch, sync for ISP */
125 #define SYNC_IFORDEV 6 /* synchrounous IOCB, sync for ISP */
144 #define ISP_QAVAIL(isp) \ argument
145 ISP_QFREE(isp->isp_reqidx, isp->isp_reqodx, RQUEST_QUEUE_LEN(isp))
147 #define ISP_ADD_REQUEST(isp, nxti) \ argument
148 MEMORYBARRIER(isp, SYNC_REQUEST, isp->isp_reqidx, QENTRY_LEN, -1); \
149 ISP_WRITE(isp, BIU2400_REQINP, nxti); \
150 isp->isp_reqidx = nxti
152 #define ISP_SYNC_REQUEST(isp) \ argument
153 MEMORYBARRIER(isp, SYNC_REQUEST, isp->isp_reqidx, QENTRY_LEN, -1); \
154 isp->isp_reqidx = ISP_NXT_QENTRY(isp->isp_reqidx, RQUEST_QUEUE_LEN(isp)); \
155 ISP_WRITE(isp, BIU2400_REQINP, isp->isp_reqidx)
237 #define ISP_HANDLE_NUM(isp) ((isp)->isp_maxcmds + ISP_HANDLE_RESERVE) argument
238 #define ISP_VALID_HANDLE(isp, hdl) \ argument
242 ((hdl) & ISP_HANDLE_CMD_MASK) < ISP_HANDLE_NUM(isp) && \
243 (hdl) == ((isp)->isp_xflist[(hdl) & ISP_HANDLE_CMD_MASK].handle))
336 #define FC_PORTDB_TGT(isp, bus, pdb) (int)(lp - FCPARAM(isp, bus)->portdb) argument
348 int isp_fwstate; /* ISP F/W state */
539 volatile uint32_t isp_reqodx; /* index of last ISP pickup */
575 #define FCPARAM(isp, chan) (&(isp)->isp_param[(chan)]) argument
577 #define ISP_SET_SENDMARKER(isp, chan, val) \ argument
578 FCPARAM(isp, chan)->sendmarker = val \
580 #define ISP_TST_SENDMARKER(isp, chan) \ argument
581 (FCPARAM(isp, chan)->sendmarker != 0)
584 * ISP Driver Run States
593 * ISP Runtime Configuration Options
690 #define IS_25XX(isp) ((isp)->isp_type >= ISP_HA_FC_2500) argument
691 #define IS_26XX(isp) ((isp)->isp_type >= ISP_HA_FC_2600) argument
692 #define IS_27XX(isp) ((isp)->isp_type >= ISP_HA_FC_2700) argument
693 #define IS_28XX(isp) ((isp)->isp_type >= ISP_HA_FC_2800) argument
751 * Reset the ISP and call completion for any orphaned commands.
914 * ISP_SLEEP(isp, usecs) microsecond sleep function
935 * various objects so that the ISP's and the system's view