isp_target.h (63390) | isp_target.h (64089) |
---|---|
1/* $FreeBSD: head/sys/dev/isp/isp_target.h 63390 2000-07-18 07:06:47Z mjacob $ */ | 1/* $FreeBSD: head/sys/dev/isp/isp_target.h 64089 2000-08-01 06:23:24Z mjacob $ */ |
2/* 3 * Qlogic Target Mode Structure and Flag Definitions 4 * 5 * Copyright (c) 1997, 1998 6 * Patrick Stirling 7 * pms@psconsult.com 8 * All rights reserved. 9 * --- 493 unchanged lines hidden (view full) --- 503 ISP_SBUS_SWOZZLE(isp, source, vdst, at_status, at_scsi_status); \ 504 ISP_SBUS_SWOZZLE(isp, source, vdst, at_tag_val, at_tag_type); \ 505 MEMCPY(vdst->at_cdb, source->at_cdb, ATIO_CDBLEN); \ 506 MEMCPY(vdst->at_sense, source->at_sense, QLTM_SENSELEN); \ 507} 508 509#define ISP_SWIZ_CTIO(isp, dest, vsrc) \ 510{ \ | 2/* 3 * Qlogic Target Mode Structure and Flag Definitions 4 * 5 * Copyright (c) 1997, 1998 6 * Patrick Stirling 7 * pms@psconsult.com 8 * All rights reserved. 9 * --- 493 unchanged lines hidden (view full) --- 503 ISP_SBUS_SWOZZLE(isp, source, vdst, at_status, at_scsi_status); \ 504 ISP_SBUS_SWOZZLE(isp, source, vdst, at_tag_val, at_tag_type); \ 505 MEMCPY(vdst->at_cdb, source->at_cdb, ATIO_CDBLEN); \ 506 MEMCPY(vdst->at_sense, source->at_sense, QLTM_SENSELEN); \ 507} 508 509#define ISP_SWIZ_CTIO(isp, dest, vsrc) \ 510{ \ |
511 ct_entry_t *source = (ct_entry-t *) vsrc; \ | 511 ct_entry_t *source = (ct_entry_t *) vsrc; \ |
512 ct_entry_t *local, *vdst; \ 513 if ((void *)dest == (void *)vsrc) { \ 514 MEMCPY(vsrc, &local, sizeof (ct_entry_t)); \ 515 vdst = &local; \ 516 } else { \ 517 vdst = dest; \ 518 } \ 519 vdst->ct_header = source->ct_header; \ --- 86 unchanged lines hidden (view full) --- 606#define ISP_SWIZ_ATIO2(isp, d, s) MCIDF(d, s) 607#define ISP_SWIZ_CTIO2(isp, d, s) MCIDF(d, s) 608#endif 609 610/* 611 * Debug macros 612 */ 613 | 512 ct_entry_t *local, *vdst; \ 513 if ((void *)dest == (void *)vsrc) { \ 514 MEMCPY(vsrc, &local, sizeof (ct_entry_t)); \ 515 vdst = &local; \ 516 } else { \ 517 vdst = dest; \ 518 } \ 519 vdst->ct_header = source->ct_header; \ --- 86 unchanged lines hidden (view full) --- 606#define ISP_SWIZ_ATIO2(isp, d, s) MCIDF(d, s) 607#define ISP_SWIZ_CTIO2(isp, d, s) MCIDF(d, s) 608#endif 609 610/* 611 * Debug macros 612 */ 613 |
614extern int isp_tdebug; | |
615#define ISP_TDQE(isp, msg, idx, arg) \ | 614#define ISP_TDQE(isp, msg, idx, arg) \ |
616 if (isp_tdebug > 3) isp_print_qentry(isp, msg, idx, arg) | 615 if (isp->isp_dblev & ISP_LOGTDEBUG2) isp_print_qentry(isp, msg, idx, arg) |
617 | 616 |
618#define ITDEBUG(level, msg) if (isp_tdebug >= level) PRINTF msg 619 | |
620/* 621 * The functions below are target mode functions that 622 * are generally internal to the Qlogic driver. 623 */ 624 625/* 626 * This function handles new response queue entry appropriate for target mode. 627 */ 628int isp_target_notify __P((struct ispsoftc *, void *, u_int16_t *)); 629 630/* 631 * Enable/Disable/Modify a logical unit. 632 */ | 617/* 618 * The functions below are target mode functions that 619 * are generally internal to the Qlogic driver. 620 */ 621 622/* 623 * This function handles new response queue entry appropriate for target mode. 624 */ 625int isp_target_notify __P((struct ispsoftc *, void *, u_int16_t *)); 626 627/* 628 * Enable/Disable/Modify a logical unit. 629 */ |
633#define DFLT_CMD_CNT (RESULT_QUEUE_LEN >> 1) | 630#define DFLT_CMD_CNT 32 /* XX */ |
634#define DFLT_INOTIFY (4) 635int isp_lun_cmd __P((struct ispsoftc *, int, int, int, int, u_int32_t)); 636 637/* 638 * General request queue 'put' routine for target mode entries. 639 */ 640int isp_target_put_entry __P((struct ispsoftc *isp, void *)); 641 --- 22 unchanged lines hidden --- | 631#define DFLT_INOTIFY (4) 632int isp_lun_cmd __P((struct ispsoftc *, int, int, int, int, u_int32_t)); 633 634/* 635 * General request queue 'put' routine for target mode entries. 636 */ 637int isp_target_put_entry __P((struct ispsoftc *isp, void *)); 638 --- 22 unchanged lines hidden --- |