isd200.c (b98052e9b5c4878f0e13b11cd5b7a04242c2d848) | isd200.c (32bca2df7da27be34371a37f9bb5e2b85fdd92bd) |
---|---|
1// SPDX-License-Identifier: GPL-2.0+ 2/* 3 * Transport & Protocol Driver for In-System Design, Inc. ISD200 ASIC 4 * 5 * Current development and maintenance: 6 * (C) 2001-2002 Björn Stenberg (bjorn@haxx.se) 7 * 8 * Developed with the assistance of: --- 39 unchanged lines hidden (view full) --- 48#include "debug.h" 49#include "scsiglue.h" 50 51#define DRV_NAME "ums-isd200" 52 53MODULE_DESCRIPTION("Driver for In-System Design, Inc. ISD200 ASIC"); 54MODULE_AUTHOR("Björn Stenberg <bjorn@haxx.se>"); 55MODULE_LICENSE("GPL"); | 1// SPDX-License-Identifier: GPL-2.0+ 2/* 3 * Transport & Protocol Driver for In-System Design, Inc. ISD200 ASIC 4 * 5 * Current development and maintenance: 6 * (C) 2001-2002 Björn Stenberg (bjorn@haxx.se) 7 * 8 * Developed with the assistance of: --- 39 unchanged lines hidden (view full) --- 48#include "debug.h" 49#include "scsiglue.h" 50 51#define DRV_NAME "ums-isd200" 52 53MODULE_DESCRIPTION("Driver for In-System Design, Inc. ISD200 ASIC"); 54MODULE_AUTHOR("Björn Stenberg <bjorn@haxx.se>"); 55MODULE_LICENSE("GPL"); |
56MODULE_IMPORT_NS(USB_STORAGE); |
|
56 57static int isd200_Initialization(struct us_data *us); 58 59 60/* 61 * The table of devices 62 */ 63#define UNUSUAL_DEV(id_vendor, id_product, bcdDeviceMin, bcdDeviceMax, \ --- 1442 unchanged lines hidden (view full) --- 1506 * ASIC. An ATAPI device that is connected as a slave device will be 1507 * detected in the driver initialization function and the protocol will 1508 * be changed to an ATAPI protocol (Transparent SCSI). 1509 * 1510 */ 1511 1512static void isd200_ata_command(struct scsi_cmnd *srb, struct us_data *us) 1513{ | 57 58static int isd200_Initialization(struct us_data *us); 59 60 61/* 62 * The table of devices 63 */ 64#define UNUSUAL_DEV(id_vendor, id_product, bcdDeviceMin, bcdDeviceMax, \ --- 1442 unchanged lines hidden (view full) --- 1507 * ASIC. An ATAPI device that is connected as a slave device will be 1508 * detected in the driver initialization function and the protocol will 1509 * be changed to an ATAPI protocol (Transparent SCSI). 1510 * 1511 */ 1512 1513static void isd200_ata_command(struct scsi_cmnd *srb, struct us_data *us) 1514{ |
1514 int sendToTransport, orig_bufflen; | 1515 int sendToTransport = 1, orig_bufflen; |
1515 union ata_cdb ataCdb; 1516 1517 /* Make sure driver was initialized */ 1518 1519 if (us->extra == NULL) { 1520 usb_stor_dbg(us, "ERROR Driver not initialized\n"); 1521 srb->result = DID_ERROR << 16; 1522 return; --- 50 unchanged lines hidden --- | 1516 union ata_cdb ataCdb; 1517 1518 /* Make sure driver was initialized */ 1519 1520 if (us->extra == NULL) { 1521 usb_stor_dbg(us, "ERROR Driver not initialized\n"); 1522 srb->result = DID_ERROR << 16; 1523 return; --- 50 unchanged lines hidden --- |