aha.c (45575) | aha.c (46581) |
---|---|
1/* 2 * Generic register and struct definitions for the Adaptech 154x/164x 3 * SCSI host adapters. Product specific probe and attach routines can 4 * be found in: 5 * aha 1540/1542B/1542C/1542CF/1542CP aha_isa.c 6 * 7 * Copyright (c) 1998 M. Warner Losh. 8 * All Rights Reserved. --- 41 unchanged lines hidden (view full) --- 50 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 51 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 52 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 53 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 54 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 55 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 56 * SUCH DAMAGE. 57 * | 1/* 2 * Generic register and struct definitions for the Adaptech 154x/164x 3 * SCSI host adapters. Product specific probe and attach routines can 4 * be found in: 5 * aha 1540/1542B/1542C/1542CF/1542CP aha_isa.c 6 * 7 * Copyright (c) 1998 M. Warner Losh. 8 * All Rights Reserved. --- 41 unchanged lines hidden (view full) --- 50 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 51 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 52 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 53 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 54 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 55 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 56 * SUCH DAMAGE. 57 * |
58 * $Id: aha.c,v 1.20 1999/03/02 20:56:07 imp Exp $ | 58 * $Id: aha.c,v 1.21 1999/04/11 02:55:50 eivind Exp $ |
59 */ 60 61#include "pnp.h" 62 63#include <sys/param.h> 64#include <sys/systm.h> 65#include <sys/malloc.h> 66#include <sys/buf.h> --- 957 unchanged lines hidden (view full) --- 1024 case XPT_ABORT: /* Abort the specified CCB */ 1025 /* XXX Implement */ 1026 ccb->ccb_h.status = CAM_REQ_INVALID; 1027 xpt_done(ccb); 1028 break; 1029 case XPT_SET_TRAN_SETTINGS: 1030 { 1031 /* XXX Implement */ | 59 */ 60 61#include "pnp.h" 62 63#include <sys/param.h> 64#include <sys/systm.h> 65#include <sys/malloc.h> 66#include <sys/buf.h> --- 957 unchanged lines hidden (view full) --- 1024 case XPT_ABORT: /* Abort the specified CCB */ 1025 /* XXX Implement */ 1026 ccb->ccb_h.status = CAM_REQ_INVALID; 1027 xpt_done(ccb); 1028 break; 1029 case XPT_SET_TRAN_SETTINGS: 1030 { 1031 /* XXX Implement */ |
1032 ccb->ccb_h.status = CAM_REQ_CMP; | 1032 ccb->ccb_h.status = CAM_PROVIDE_FAIL; |
1033 xpt_done(ccb); 1034 break; 1035 } 1036 case XPT_GET_TRAN_SETTINGS: 1037 /* Get default/user set transfer settings for the target */ 1038 { 1039 struct ccb_trans_settings *cts; 1040 u_int target_mask; --- 74 unchanged lines hidden (view full) --- 1115 cpi->hba_inquiry = PI_SDTR_ABLE; 1116 cpi->target_sprt = 0; 1117 cpi->hba_misc = 0; 1118 cpi->hba_eng_cnt = 0; 1119 cpi->max_target = 7; 1120 cpi->max_lun = 7; 1121 cpi->initiator_id = aha->scsi_id; 1122 cpi->bus_id = cam_sim_bus(sim); | 1033 xpt_done(ccb); 1034 break; 1035 } 1036 case XPT_GET_TRAN_SETTINGS: 1037 /* Get default/user set transfer settings for the target */ 1038 { 1039 struct ccb_trans_settings *cts; 1040 u_int target_mask; --- 74 unchanged lines hidden (view full) --- 1115 cpi->hba_inquiry = PI_SDTR_ABLE; 1116 cpi->target_sprt = 0; 1117 cpi->hba_misc = 0; 1118 cpi->hba_eng_cnt = 0; 1119 cpi->max_target = 7; 1120 cpi->max_lun = 7; 1121 cpi->initiator_id = aha->scsi_id; 1122 cpi->bus_id = cam_sim_bus(sim); |
1123 cpi->base_transfer_speed = 3300; |
|
1123 strncpy(cpi->sim_vid, "FreeBSD", SIM_IDLEN); 1124 strncpy(cpi->hba_vid, "Adaptec", HBA_IDLEN); 1125 strncpy(cpi->dev_name, cam_sim_name(sim), DEV_IDLEN); 1126 cpi->unit_number = cam_sim_unit(sim); 1127 cpi->ccb_h.status = CAM_REQ_CMP; 1128 xpt_done(ccb); 1129 break; 1130 } --- 810 unchanged lines hidden --- | 1124 strncpy(cpi->sim_vid, "FreeBSD", SIM_IDLEN); 1125 strncpy(cpi->hba_vid, "Adaptec", HBA_IDLEN); 1126 strncpy(cpi->dev_name, cam_sim_name(sim), DEV_IDLEN); 1127 cpi->unit_number = cam_sim_unit(sim); 1128 cpi->ccb_h.status = CAM_REQ_CMP; 1129 xpt_done(ccb); 1130 break; 1131 } --- 810 unchanged lines hidden --- |