diff options
Diffstat (limited to 'drivers/scsi/dc395x.c')
-rw-r--r-- | drivers/scsi/dc395x.c | 110 |
1 files changed, 55 insertions, 55 deletions
diff --git a/drivers/scsi/dc395x.c b/drivers/scsi/dc395x.c index 7b8a3457b69..1591824cf4b 100644 --- a/drivers/scsi/dc395x.c +++ b/drivers/scsi/dc395x.c | |||
@@ -778,7 +778,7 @@ static void srb_waiting_insert(struct DeviceCtlBlk *dcb, | |||
778 | struct ScsiReqBlk *srb) | 778 | struct ScsiReqBlk *srb) |
779 | { | 779 | { |
780 | dprintkdbg(DBG_0, "srb_waiting_insert: (pid#%li) <%02i-%i> srb=%p\n", | 780 | dprintkdbg(DBG_0, "srb_waiting_insert: (pid#%li) <%02i-%i> srb=%p\n", |
781 | srb->cmd->pid, dcb->target_id, dcb->target_lun, srb); | 781 | srb->cmd->serial_number, dcb->target_id, dcb->target_lun, srb); |
782 | list_add(&srb->list, &dcb->srb_waiting_list); | 782 | list_add(&srb->list, &dcb->srb_waiting_list); |
783 | } | 783 | } |
784 | 784 | ||
@@ -787,7 +787,7 @@ static void srb_waiting_append(struct DeviceCtlBlk *dcb, | |||
787 | struct ScsiReqBlk *srb) | 787 | struct ScsiReqBlk *srb) |
788 | { | 788 | { |
789 | dprintkdbg(DBG_0, "srb_waiting_append: (pid#%li) <%02i-%i> srb=%p\n", | 789 | dprintkdbg(DBG_0, "srb_waiting_append: (pid#%li) <%02i-%i> srb=%p\n", |
790 | srb->cmd->pid, dcb->target_id, dcb->target_lun, srb); | 790 | srb->cmd->serial_number, dcb->target_id, dcb->target_lun, srb); |
791 | list_add_tail(&srb->list, &dcb->srb_waiting_list); | 791 | list_add_tail(&srb->list, &dcb->srb_waiting_list); |
792 | } | 792 | } |
793 | 793 | ||
@@ -795,7 +795,7 @@ static void srb_waiting_append(struct DeviceCtlBlk *dcb, | |||
795 | static void srb_going_append(struct DeviceCtlBlk *dcb, struct ScsiReqBlk *srb) | 795 | static void srb_going_append(struct DeviceCtlBlk *dcb, struct ScsiReqBlk *srb) |
796 | { | 796 | { |
797 | dprintkdbg(DBG_0, "srb_going_append: (pid#%li) <%02i-%i> srb=%p\n", | 797 | dprintkdbg(DBG_0, "srb_going_append: (pid#%li) <%02i-%i> srb=%p\n", |
798 | srb->cmd->pid, dcb->target_id, dcb->target_lun, srb); | 798 | srb->cmd->serial_number, dcb->target_id, dcb->target_lun, srb); |
799 | list_add_tail(&srb->list, &dcb->srb_going_list); | 799 | list_add_tail(&srb->list, &dcb->srb_going_list); |
800 | } | 800 | } |
801 | 801 | ||
@@ -805,7 +805,7 @@ static void srb_going_remove(struct DeviceCtlBlk *dcb, struct ScsiReqBlk *srb) | |||
805 | struct ScsiReqBlk *i; | 805 | struct ScsiReqBlk *i; |
806 | struct ScsiReqBlk *tmp; | 806 | struct ScsiReqBlk *tmp; |
807 | dprintkdbg(DBG_0, "srb_going_remove: (pid#%li) <%02i-%i> srb=%p\n", | 807 | dprintkdbg(DBG_0, "srb_going_remove: (pid#%li) <%02i-%i> srb=%p\n", |
808 | srb->cmd->pid, dcb->target_id, dcb->target_lun, srb); | 808 | srb->cmd->serial_number, dcb->target_id, dcb->target_lun, srb); |
809 | 809 | ||
810 | list_for_each_entry_safe(i, tmp, &dcb->srb_going_list, list) | 810 | list_for_each_entry_safe(i, tmp, &dcb->srb_going_list, list) |
811 | if (i == srb) { | 811 | if (i == srb) { |
@@ -821,7 +821,7 @@ static void srb_waiting_remove(struct DeviceCtlBlk *dcb, | |||
821 | struct ScsiReqBlk *i; | 821 | struct ScsiReqBlk *i; |
822 | struct ScsiReqBlk *tmp; | 822 | struct ScsiReqBlk *tmp; |
823 | dprintkdbg(DBG_0, "srb_waiting_remove: (pid#%li) <%02i-%i> srb=%p\n", | 823 | dprintkdbg(DBG_0, "srb_waiting_remove: (pid#%li) <%02i-%i> srb=%p\n", |
824 | srb->cmd->pid, dcb->target_id, dcb->target_lun, srb); | 824 | srb->cmd->serial_number, dcb->target_id, dcb->target_lun, srb); |
825 | 825 | ||
826 | list_for_each_entry_safe(i, tmp, &dcb->srb_waiting_list, list) | 826 | list_for_each_entry_safe(i, tmp, &dcb->srb_waiting_list, list) |
827 | if (i == srb) { | 827 | if (i == srb) { |
@@ -836,7 +836,7 @@ static void srb_going_to_waiting_move(struct DeviceCtlBlk *dcb, | |||
836 | { | 836 | { |
837 | dprintkdbg(DBG_0, | 837 | dprintkdbg(DBG_0, |
838 | "srb_going_to_waiting_move: (pid#%li) <%02i-%i> srb=%p\n", | 838 | "srb_going_to_waiting_move: (pid#%li) <%02i-%i> srb=%p\n", |
839 | srb->cmd->pid, dcb->target_id, dcb->target_lun, srb); | 839 | srb->cmd->serial_number, dcb->target_id, dcb->target_lun, srb); |
840 | list_move(&srb->list, &dcb->srb_waiting_list); | 840 | list_move(&srb->list, &dcb->srb_waiting_list); |
841 | } | 841 | } |
842 | 842 | ||
@@ -846,7 +846,7 @@ static void srb_waiting_to_going_move(struct DeviceCtlBlk *dcb, | |||
846 | { | 846 | { |
847 | dprintkdbg(DBG_0, | 847 | dprintkdbg(DBG_0, |
848 | "srb_waiting_to_going_move: (pid#%li) <%02i-%i> srb=%p\n", | 848 | "srb_waiting_to_going_move: (pid#%li) <%02i-%i> srb=%p\n", |
849 | srb->cmd->pid, dcb->target_id, dcb->target_lun, srb); | 849 | srb->cmd->serial_number, dcb->target_id, dcb->target_lun, srb); |
850 | list_move(&srb->list, &dcb->srb_going_list); | 850 | list_move(&srb->list, &dcb->srb_going_list); |
851 | } | 851 | } |
852 | 852 | ||
@@ -982,7 +982,7 @@ static void build_srb(struct scsi_cmnd *cmd, struct DeviceCtlBlk *dcb, | |||
982 | int nseg; | 982 | int nseg; |
983 | enum dma_data_direction dir = cmd->sc_data_direction; | 983 | enum dma_data_direction dir = cmd->sc_data_direction; |
984 | dprintkdbg(DBG_0, "build_srb: (pid#%li) <%02i-%i>\n", | 984 | dprintkdbg(DBG_0, "build_srb: (pid#%li) <%02i-%i>\n", |
985 | cmd->pid, dcb->target_id, dcb->target_lun); | 985 | cmd->serial_number, dcb->target_id, dcb->target_lun); |
986 | 986 | ||
987 | srb->dcb = dcb; | 987 | srb->dcb = dcb; |
988 | srb->cmd = cmd; | 988 | srb->cmd = cmd; |
@@ -1086,7 +1086,7 @@ static int dc395x_queue_command(struct scsi_cmnd *cmd, void (*done)(struct scsi_ | |||
1086 | struct AdapterCtlBlk *acb = | 1086 | struct AdapterCtlBlk *acb = |
1087 | (struct AdapterCtlBlk *)cmd->device->host->hostdata; | 1087 | (struct AdapterCtlBlk *)cmd->device->host->hostdata; |
1088 | dprintkdbg(DBG_0, "queue_command: (pid#%li) <%02i-%i> cmnd=0x%02x\n", | 1088 | dprintkdbg(DBG_0, "queue_command: (pid#%li) <%02i-%i> cmnd=0x%02x\n", |
1089 | cmd->pid, cmd->device->id, cmd->device->lun, cmd->cmnd[0]); | 1089 | cmd->serial_number, cmd->device->id, cmd->device->lun, cmd->cmnd[0]); |
1090 | 1090 | ||
1091 | /* Assume BAD_TARGET; will be cleared later */ | 1091 | /* Assume BAD_TARGET; will be cleared later */ |
1092 | cmd->result = DID_BAD_TARGET << 16; | 1092 | cmd->result = DID_BAD_TARGET << 16; |
@@ -1139,7 +1139,7 @@ static int dc395x_queue_command(struct scsi_cmnd *cmd, void (*done)(struct scsi_ | |||
1139 | /* process immediately */ | 1139 | /* process immediately */ |
1140 | send_srb(acb, srb); | 1140 | send_srb(acb, srb); |
1141 | } | 1141 | } |
1142 | dprintkdbg(DBG_1, "queue_command: (pid#%li) done\n", cmd->pid); | 1142 | dprintkdbg(DBG_1, "queue_command: (pid#%li) done\n", cmd->serial_number); |
1143 | return 0; | 1143 | return 0; |
1144 | 1144 | ||
1145 | complete: | 1145 | complete: |
@@ -1203,7 +1203,7 @@ static void dump_register_info(struct AdapterCtlBlk *acb, | |||
1203 | else | 1203 | else |
1204 | dprintkl(KERN_INFO, "dump: srb=%p cmd=%p (pid#%li) " | 1204 | dprintkl(KERN_INFO, "dump: srb=%p cmd=%p (pid#%li) " |
1205 | "cmnd=0x%02x <%02i-%i>\n", | 1205 | "cmnd=0x%02x <%02i-%i>\n", |
1206 | srb, srb->cmd, srb->cmd->pid, | 1206 | srb, srb->cmd, srb->cmd->serial_number, |
1207 | srb->cmd->cmnd[0], srb->cmd->device->id, | 1207 | srb->cmd->cmnd[0], srb->cmd->device->id, |
1208 | srb->cmd->device->lun); | 1208 | srb->cmd->device->lun); |
1209 | printk(" sglist=%p cnt=%i idx=%i len=%zu\n", | 1209 | printk(" sglist=%p cnt=%i idx=%i len=%zu\n", |
@@ -1300,7 +1300,7 @@ static int __dc395x_eh_bus_reset(struct scsi_cmnd *cmd) | |||
1300 | (struct AdapterCtlBlk *)cmd->device->host->hostdata; | 1300 | (struct AdapterCtlBlk *)cmd->device->host->hostdata; |
1301 | dprintkl(KERN_INFO, | 1301 | dprintkl(KERN_INFO, |
1302 | "eh_bus_reset: (pid#%li) target=<%02i-%i> cmd=%p\n", | 1302 | "eh_bus_reset: (pid#%li) target=<%02i-%i> cmd=%p\n", |
1303 | cmd->pid, cmd->device->id, cmd->device->lun, cmd); | 1303 | cmd->serial_number, cmd->device->id, cmd->device->lun, cmd); |
1304 | 1304 | ||
1305 | if (timer_pending(&acb->waiting_timer)) | 1305 | if (timer_pending(&acb->waiting_timer)) |
1306 | del_timer(&acb->waiting_timer); | 1306 | del_timer(&acb->waiting_timer); |
@@ -1367,7 +1367,7 @@ static int dc395x_eh_abort(struct scsi_cmnd *cmd) | |||
1367 | struct DeviceCtlBlk *dcb; | 1367 | struct DeviceCtlBlk *dcb; |
1368 | struct ScsiReqBlk *srb; | 1368 | struct ScsiReqBlk *srb; |
1369 | dprintkl(KERN_INFO, "eh_abort: (pid#%li) target=<%02i-%i> cmd=%p\n", | 1369 | dprintkl(KERN_INFO, "eh_abort: (pid#%li) target=<%02i-%i> cmd=%p\n", |
1370 | cmd->pid, cmd->device->id, cmd->device->lun, cmd); | 1370 | cmd->serial_number, cmd->device->id, cmd->device->lun, cmd); |
1371 | 1371 | ||
1372 | dcb = find_dcb(acb, cmd->device->id, cmd->device->lun); | 1372 | dcb = find_dcb(acb, cmd->device->id, cmd->device->lun); |
1373 | if (!dcb) { | 1373 | if (!dcb) { |
@@ -1494,7 +1494,7 @@ static u8 start_scsi(struct AdapterCtlBlk* acb, struct DeviceCtlBlk* dcb, | |||
1494 | u8 s_stat, scsicommand, i, identify_message; | 1494 | u8 s_stat, scsicommand, i, identify_message; |
1495 | u8 *ptr; | 1495 | u8 *ptr; |
1496 | dprintkdbg(DBG_0, "start_scsi: (pid#%li) <%02i-%i> srb=%p\n", | 1496 | dprintkdbg(DBG_0, "start_scsi: (pid#%li) <%02i-%i> srb=%p\n", |
1497 | srb->cmd->pid, dcb->target_id, dcb->target_lun, srb); | 1497 | srb->cmd->serial_number, dcb->target_id, dcb->target_lun, srb); |
1498 | 1498 | ||
1499 | srb->tag_number = TAG_NONE; /* acb->tag_max_num: had error read in eeprom */ | 1499 | srb->tag_number = TAG_NONE; /* acb->tag_max_num: had error read in eeprom */ |
1500 | 1500 | ||
@@ -1504,7 +1504,7 @@ static u8 start_scsi(struct AdapterCtlBlk* acb, struct DeviceCtlBlk* dcb, | |||
1504 | #if 1 | 1504 | #if 1 |
1505 | if (s_stat & 0x20 /* s_stat2 & 0x02000 */ ) { | 1505 | if (s_stat & 0x20 /* s_stat2 & 0x02000 */ ) { |
1506 | dprintkdbg(DBG_KG, "start_scsi: (pid#%li) BUSY %02x %04x\n", | 1506 | dprintkdbg(DBG_KG, "start_scsi: (pid#%li) BUSY %02x %04x\n", |
1507 | srb->cmd->pid, s_stat, s_stat2); | 1507 | srb->cmd->serial_number, s_stat, s_stat2); |
1508 | /* | 1508 | /* |
1509 | * Try anyway? | 1509 | * Try anyway? |
1510 | * | 1510 | * |
@@ -1522,14 +1522,14 @@ static u8 start_scsi(struct AdapterCtlBlk* acb, struct DeviceCtlBlk* dcb, | |||
1522 | if (acb->active_dcb) { | 1522 | if (acb->active_dcb) { |
1523 | dprintkl(KERN_DEBUG, "start_scsi: (pid#%li) Attempt to start a" | 1523 | dprintkl(KERN_DEBUG, "start_scsi: (pid#%li) Attempt to start a" |
1524 | "command while another command (pid#%li) is active.", | 1524 | "command while another command (pid#%li) is active.", |
1525 | srb->cmd->pid, | 1525 | srb->cmd->serial_number, |
1526 | acb->active_dcb->active_srb ? | 1526 | acb->active_dcb->active_srb ? |
1527 | acb->active_dcb->active_srb->cmd->pid : 0); | 1527 | acb->active_dcb->active_srb->cmd->serial_number : 0); |
1528 | return 1; | 1528 | return 1; |
1529 | } | 1529 | } |
1530 | if (DC395x_read16(acb, TRM_S1040_SCSI_STATUS) & SCSIINTERRUPT) { | 1530 | if (DC395x_read16(acb, TRM_S1040_SCSI_STATUS) & SCSIINTERRUPT) { |
1531 | dprintkdbg(DBG_KG, "start_scsi: (pid#%li) Failed (busy)\n", | 1531 | dprintkdbg(DBG_KG, "start_scsi: (pid#%li) Failed (busy)\n", |
1532 | srb->cmd->pid); | 1532 | srb->cmd->serial_number); |
1533 | return 1; | 1533 | return 1; |
1534 | } | 1534 | } |
1535 | /* Allow starting of SCSI commands half a second before we allow the mid-level | 1535 | /* Allow starting of SCSI commands half a second before we allow the mid-level |
@@ -1603,7 +1603,7 @@ static u8 start_scsi(struct AdapterCtlBlk* acb, struct DeviceCtlBlk* dcb, | |||
1603 | if (tag_number >= dcb->max_command) { | 1603 | if (tag_number >= dcb->max_command) { |
1604 | dprintkl(KERN_WARNING, "start_scsi: (pid#%li) " | 1604 | dprintkl(KERN_WARNING, "start_scsi: (pid#%li) " |
1605 | "Out of tags target=<%02i-%i>)\n", | 1605 | "Out of tags target=<%02i-%i>)\n", |
1606 | srb->cmd->pid, srb->cmd->device->id, | 1606 | srb->cmd->serial_number, srb->cmd->device->id, |
1607 | srb->cmd->device->lun); | 1607 | srb->cmd->device->lun); |
1608 | srb->state = SRB_READY; | 1608 | srb->state = SRB_READY; |
1609 | DC395x_write16(acb, TRM_S1040_SCSI_CONTROL, | 1609 | DC395x_write16(acb, TRM_S1040_SCSI_CONTROL, |
@@ -1622,7 +1622,7 @@ static u8 start_scsi(struct AdapterCtlBlk* acb, struct DeviceCtlBlk* dcb, | |||
1622 | /*polling:*/ | 1622 | /*polling:*/ |
1623 | /* Send CDB ..command block ......... */ | 1623 | /* Send CDB ..command block ......... */ |
1624 | dprintkdbg(DBG_KG, "start_scsi: (pid#%li) <%02i-%i> cmnd=0x%02x tag=%i\n", | 1624 | dprintkdbg(DBG_KG, "start_scsi: (pid#%li) <%02i-%i> cmnd=0x%02x tag=%i\n", |
1625 | srb->cmd->pid, srb->cmd->device->id, srb->cmd->device->lun, | 1625 | srb->cmd->serial_number, srb->cmd->device->id, srb->cmd->device->lun, |
1626 | srb->cmd->cmnd[0], srb->tag_number); | 1626 | srb->cmd->cmnd[0], srb->tag_number); |
1627 | if (srb->flag & AUTO_REQSENSE) { | 1627 | if (srb->flag & AUTO_REQSENSE) { |
1628 | DC395x_write8(acb, TRM_S1040_SCSI_FIFO, REQUEST_SENSE); | 1628 | DC395x_write8(acb, TRM_S1040_SCSI_FIFO, REQUEST_SENSE); |
@@ -1647,7 +1647,7 @@ static u8 start_scsi(struct AdapterCtlBlk* acb, struct DeviceCtlBlk* dcb, | |||
1647 | * : Let's process it first! | 1647 | * : Let's process it first! |
1648 | */ | 1648 | */ |
1649 | dprintkdbg(DBG_0, "start_scsi: (pid#%li) <%02i-%i> Failed - busy\n", | 1649 | dprintkdbg(DBG_0, "start_scsi: (pid#%li) <%02i-%i> Failed - busy\n", |
1650 | srb->cmd->pid, dcb->target_id, dcb->target_lun); | 1650 | srb->cmd->serial_number, dcb->target_id, dcb->target_lun); |
1651 | srb->state = SRB_READY; | 1651 | srb->state = SRB_READY; |
1652 | free_tag(dcb, srb); | 1652 | free_tag(dcb, srb); |
1653 | srb->msg_count = 0; | 1653 | srb->msg_count = 0; |
@@ -1842,7 +1842,7 @@ static irqreturn_t dc395x_interrupt(int irq, void *dev_id) | |||
1842 | static void msgout_phase0(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb, | 1842 | static void msgout_phase0(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb, |
1843 | u16 *pscsi_status) | 1843 | u16 *pscsi_status) |
1844 | { | 1844 | { |
1845 | dprintkdbg(DBG_0, "msgout_phase0: (pid#%li)\n", srb->cmd->pid); | 1845 | dprintkdbg(DBG_0, "msgout_phase0: (pid#%li)\n", srb->cmd->serial_number); |
1846 | if (srb->state & (SRB_UNEXPECT_RESEL + SRB_ABORT_SENT)) | 1846 | if (srb->state & (SRB_UNEXPECT_RESEL + SRB_ABORT_SENT)) |
1847 | *pscsi_status = PH_BUS_FREE; /*.. initial phase */ | 1847 | *pscsi_status = PH_BUS_FREE; /*.. initial phase */ |
1848 | 1848 | ||
@@ -1856,18 +1856,18 @@ static void msgout_phase1(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb, | |||
1856 | { | 1856 | { |
1857 | u16 i; | 1857 | u16 i; |
1858 | u8 *ptr; | 1858 | u8 *ptr; |
1859 | dprintkdbg(DBG_0, "msgout_phase1: (pid#%li)\n", srb->cmd->pid); | 1859 | dprintkdbg(DBG_0, "msgout_phase1: (pid#%li)\n", srb->cmd->serial_number); |
1860 | 1860 | ||
1861 | clear_fifo(acb, "msgout_phase1"); | 1861 | clear_fifo(acb, "msgout_phase1"); |
1862 | if (!(srb->state & SRB_MSGOUT)) { | 1862 | if (!(srb->state & SRB_MSGOUT)) { |
1863 | srb->state |= SRB_MSGOUT; | 1863 | srb->state |= SRB_MSGOUT; |
1864 | dprintkl(KERN_DEBUG, | 1864 | dprintkl(KERN_DEBUG, |
1865 | "msgout_phase1: (pid#%li) Phase unexpected\n", | 1865 | "msgout_phase1: (pid#%li) Phase unexpected\n", |
1866 | srb->cmd->pid); /* So what ? */ | 1866 | srb->cmd->serial_number); /* So what ? */ |
1867 | } | 1867 | } |
1868 | if (!srb->msg_count) { | 1868 | if (!srb->msg_count) { |
1869 | dprintkdbg(DBG_0, "msgout_phase1: (pid#%li) NOP msg\n", | 1869 | dprintkdbg(DBG_0, "msgout_phase1: (pid#%li) NOP msg\n", |
1870 | srb->cmd->pid); | 1870 | srb->cmd->serial_number); |
1871 | DC395x_write8(acb, TRM_S1040_SCSI_FIFO, MSG_NOP); | 1871 | DC395x_write8(acb, TRM_S1040_SCSI_FIFO, MSG_NOP); |
1872 | DC395x_write16(acb, TRM_S1040_SCSI_CONTROL, DO_DATALATCH); /* it's important for atn stop */ | 1872 | DC395x_write16(acb, TRM_S1040_SCSI_CONTROL, DO_DATALATCH); /* it's important for atn stop */ |
1873 | DC395x_write8(acb, TRM_S1040_SCSI_COMMAND, SCMD_FIFO_OUT); | 1873 | DC395x_write8(acb, TRM_S1040_SCSI_COMMAND, SCMD_FIFO_OUT); |
@@ -1887,7 +1887,7 @@ static void msgout_phase1(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb, | |||
1887 | static void command_phase0(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb, | 1887 | static void command_phase0(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb, |
1888 | u16 *pscsi_status) | 1888 | u16 *pscsi_status) |
1889 | { | 1889 | { |
1890 | dprintkdbg(DBG_0, "command_phase0: (pid#%li)\n", srb->cmd->pid); | 1890 | dprintkdbg(DBG_0, "command_phase0: (pid#%li)\n", srb->cmd->serial_number); |
1891 | DC395x_write16(acb, TRM_S1040_SCSI_CONTROL, DO_DATALATCH); | 1891 | DC395x_write16(acb, TRM_S1040_SCSI_CONTROL, DO_DATALATCH); |
1892 | } | 1892 | } |
1893 | 1893 | ||
@@ -1898,7 +1898,7 @@ static void command_phase1(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb, | |||
1898 | struct DeviceCtlBlk *dcb; | 1898 | struct DeviceCtlBlk *dcb; |
1899 | u8 *ptr; | 1899 | u8 *ptr; |
1900 | u16 i; | 1900 | u16 i; |
1901 | dprintkdbg(DBG_0, "command_phase1: (pid#%li)\n", srb->cmd->pid); | 1901 | dprintkdbg(DBG_0, "command_phase1: (pid#%li)\n", srb->cmd->serial_number); |
1902 | 1902 | ||
1903 | clear_fifo(acb, "command_phase1"); | 1903 | clear_fifo(acb, "command_phase1"); |
1904 | DC395x_write16(acb, TRM_S1040_SCSI_CONTROL, DO_CLRATN); | 1904 | DC395x_write16(acb, TRM_S1040_SCSI_CONTROL, DO_CLRATN); |
@@ -2042,7 +2042,7 @@ static void data_out_phase0(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb, | |||
2042 | u16 scsi_status = *pscsi_status; | 2042 | u16 scsi_status = *pscsi_status; |
2043 | u32 d_left_counter = 0; | 2043 | u32 d_left_counter = 0; |
2044 | dprintkdbg(DBG_0, "data_out_phase0: (pid#%li) <%02i-%i>\n", | 2044 | dprintkdbg(DBG_0, "data_out_phase0: (pid#%li) <%02i-%i>\n", |
2045 | srb->cmd->pid, srb->cmd->device->id, srb->cmd->device->lun); | 2045 | srb->cmd->serial_number, srb->cmd->device->id, srb->cmd->device->lun); |
2046 | 2046 | ||
2047 | /* | 2047 | /* |
2048 | * KG: We need to drain the buffers before we draw any conclusions! | 2048 | * KG: We need to drain the buffers before we draw any conclusions! |
@@ -2172,7 +2172,7 @@ static void data_out_phase1(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb, | |||
2172 | u16 *pscsi_status) | 2172 | u16 *pscsi_status) |
2173 | { | 2173 | { |
2174 | dprintkdbg(DBG_0, "data_out_phase1: (pid#%li) <%02i-%i>\n", | 2174 | dprintkdbg(DBG_0, "data_out_phase1: (pid#%li) <%02i-%i>\n", |
2175 | srb->cmd->pid, srb->cmd->device->id, srb->cmd->device->lun); | 2175 | srb->cmd->serial_number, srb->cmd->device->id, srb->cmd->device->lun); |
2176 | clear_fifo(acb, "data_out_phase1"); | 2176 | clear_fifo(acb, "data_out_phase1"); |
2177 | /* do prepare before transfer when data out phase */ | 2177 | /* do prepare before transfer when data out phase */ |
2178 | data_io_transfer(acb, srb, XFERDATAOUT); | 2178 | data_io_transfer(acb, srb, XFERDATAOUT); |
@@ -2184,7 +2184,7 @@ static void data_in_phase0(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb, | |||
2184 | u16 scsi_status = *pscsi_status; | 2184 | u16 scsi_status = *pscsi_status; |
2185 | 2185 | ||
2186 | dprintkdbg(DBG_0, "data_in_phase0: (pid#%li) <%02i-%i>\n", | 2186 | dprintkdbg(DBG_0, "data_in_phase0: (pid#%li) <%02i-%i>\n", |
2187 | srb->cmd->pid, srb->cmd->device->id, srb->cmd->device->lun); | 2187 | srb->cmd->serial_number, srb->cmd->device->id, srb->cmd->device->lun); |
2188 | 2188 | ||
2189 | /* | 2189 | /* |
2190 | * KG: DataIn is much more tricky than DataOut. When the device is finished | 2190 | * KG: DataIn is much more tricky than DataOut. When the device is finished |
@@ -2205,7 +2205,7 @@ static void data_in_phase0(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb, | |||
2205 | 2205 | ||
2206 | if (scsi_status & PARITYERROR) { | 2206 | if (scsi_status & PARITYERROR) { |
2207 | dprintkl(KERN_INFO, "data_in_phase0: (pid#%li) " | 2207 | dprintkl(KERN_INFO, "data_in_phase0: (pid#%li) " |
2208 | "Parity Error\n", srb->cmd->pid); | 2208 | "Parity Error\n", srb->cmd->serial_number); |
2209 | srb->status |= PARITY_ERROR; | 2209 | srb->status |= PARITY_ERROR; |
2210 | } | 2210 | } |
2211 | /* | 2211 | /* |
@@ -2395,7 +2395,7 @@ static void data_in_phase1(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb, | |||
2395 | u16 *pscsi_status) | 2395 | u16 *pscsi_status) |
2396 | { | 2396 | { |
2397 | dprintkdbg(DBG_0, "data_in_phase1: (pid#%li) <%02i-%i>\n", | 2397 | dprintkdbg(DBG_0, "data_in_phase1: (pid#%li) <%02i-%i>\n", |
2398 | srb->cmd->pid, srb->cmd->device->id, srb->cmd->device->lun); | 2398 | srb->cmd->serial_number, srb->cmd->device->id, srb->cmd->device->lun); |
2399 | data_io_transfer(acb, srb, XFERDATAIN); | 2399 | data_io_transfer(acb, srb, XFERDATAIN); |
2400 | } | 2400 | } |
2401 | 2401 | ||
@@ -2407,7 +2407,7 @@ static void data_io_transfer(struct AdapterCtlBlk *acb, | |||
2407 | u8 bval; | 2407 | u8 bval; |
2408 | dprintkdbg(DBG_0, | 2408 | dprintkdbg(DBG_0, |
2409 | "data_io_transfer: (pid#%li) <%02i-%i> %c len=%i, sg=(%i/%i)\n", | 2409 | "data_io_transfer: (pid#%li) <%02i-%i> %c len=%i, sg=(%i/%i)\n", |
2410 | srb->cmd->pid, srb->cmd->device->id, srb->cmd->device->lun, | 2410 | srb->cmd->serial_number, srb->cmd->device->id, srb->cmd->device->lun, |
2411 | ((io_dir & DMACMD_DIR) ? 'r' : 'w'), | 2411 | ((io_dir & DMACMD_DIR) ? 'r' : 'w'), |
2412 | srb->total_xfer_length, srb->sg_index, srb->sg_count); | 2412 | srb->total_xfer_length, srb->sg_index, srb->sg_count); |
2413 | if (srb == acb->tmp_srb) | 2413 | if (srb == acb->tmp_srb) |
@@ -2580,7 +2580,7 @@ static void status_phase0(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb, | |||
2580 | u16 *pscsi_status) | 2580 | u16 *pscsi_status) |
2581 | { | 2581 | { |
2582 | dprintkdbg(DBG_0, "status_phase0: (pid#%li) <%02i-%i>\n", | 2582 | dprintkdbg(DBG_0, "status_phase0: (pid#%li) <%02i-%i>\n", |
2583 | srb->cmd->pid, srb->cmd->device->id, srb->cmd->device->lun); | 2583 | srb->cmd->serial_number, srb->cmd->device->id, srb->cmd->device->lun); |
2584 | srb->target_status = DC395x_read8(acb, TRM_S1040_SCSI_FIFO); | 2584 | srb->target_status = DC395x_read8(acb, TRM_S1040_SCSI_FIFO); |
2585 | srb->end_message = DC395x_read8(acb, TRM_S1040_SCSI_FIFO); /* get message */ | 2585 | srb->end_message = DC395x_read8(acb, TRM_S1040_SCSI_FIFO); /* get message */ |
2586 | srb->state = SRB_COMPLETED; | 2586 | srb->state = SRB_COMPLETED; |
@@ -2594,7 +2594,7 @@ static void status_phase1(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb, | |||
2594 | u16 *pscsi_status) | 2594 | u16 *pscsi_status) |
2595 | { | 2595 | { |
2596 | dprintkdbg(DBG_0, "status_phase1: (pid#%li) <%02i-%i>\n", | 2596 | dprintkdbg(DBG_0, "status_phase1: (pid#%li) <%02i-%i>\n", |
2597 | srb->cmd->pid, srb->cmd->device->id, srb->cmd->device->lun); | 2597 | srb->cmd->serial_number, srb->cmd->device->id, srb->cmd->device->lun); |
2598 | srb->state = SRB_STATUS; | 2598 | srb->state = SRB_STATUS; |
2599 | DC395x_write16(acb, TRM_S1040_SCSI_CONTROL, DO_DATALATCH); /* it's important for atn stop */ | 2599 | DC395x_write16(acb, TRM_S1040_SCSI_CONTROL, DO_DATALATCH); /* it's important for atn stop */ |
2600 | DC395x_write8(acb, TRM_S1040_SCSI_COMMAND, SCMD_COMP); | 2600 | DC395x_write8(acb, TRM_S1040_SCSI_COMMAND, SCMD_COMP); |
@@ -2636,7 +2636,7 @@ static struct ScsiReqBlk *msgin_qtag(struct AdapterCtlBlk *acb, | |||
2636 | struct ScsiReqBlk *srb = NULL; | 2636 | struct ScsiReqBlk *srb = NULL; |
2637 | struct ScsiReqBlk *i; | 2637 | struct ScsiReqBlk *i; |
2638 | dprintkdbg(DBG_0, "msgin_qtag: (pid#%li) tag=%i srb=%p\n", | 2638 | dprintkdbg(DBG_0, "msgin_qtag: (pid#%li) tag=%i srb=%p\n", |
2639 | srb->cmd->pid, tag, srb); | 2639 | srb->cmd->serial_number, tag, srb); |
2640 | 2640 | ||
2641 | if (!(dcb->tag_mask & (1 << tag))) | 2641 | if (!(dcb->tag_mask & (1 << tag))) |
2642 | dprintkl(KERN_DEBUG, | 2642 | dprintkl(KERN_DEBUG, |
@@ -2655,7 +2655,7 @@ static struct ScsiReqBlk *msgin_qtag(struct AdapterCtlBlk *acb, | |||
2655 | goto mingx0; | 2655 | goto mingx0; |
2656 | 2656 | ||
2657 | dprintkdbg(DBG_0, "msgin_qtag: (pid#%li) <%02i-%i>\n", | 2657 | dprintkdbg(DBG_0, "msgin_qtag: (pid#%li) <%02i-%i>\n", |
2658 | srb->cmd->pid, srb->dcb->target_id, srb->dcb->target_lun); | 2658 | srb->cmd->serial_number, srb->dcb->target_id, srb->dcb->target_lun); |
2659 | if (dcb->flag & ABORT_DEV_) { | 2659 | if (dcb->flag & ABORT_DEV_) { |
2660 | /*srb->state = SRB_ABORT_SENT; */ | 2660 | /*srb->state = SRB_ABORT_SENT; */ |
2661 | enable_msgout_abort(acb, srb); | 2661 | enable_msgout_abort(acb, srb); |
@@ -2865,7 +2865,7 @@ static void msgin_phase0(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb, | |||
2865 | u16 *pscsi_status) | 2865 | u16 *pscsi_status) |
2866 | { | 2866 | { |
2867 | struct DeviceCtlBlk *dcb = acb->active_dcb; | 2867 | struct DeviceCtlBlk *dcb = acb->active_dcb; |
2868 | dprintkdbg(DBG_0, "msgin_phase0: (pid#%li)\n", srb->cmd->pid); | 2868 | dprintkdbg(DBG_0, "msgin_phase0: (pid#%li)\n", srb->cmd->serial_number); |
2869 | 2869 | ||
2870 | srb->msgin_buf[acb->msg_len++] = DC395x_read8(acb, TRM_S1040_SCSI_FIFO); | 2870 | srb->msgin_buf[acb->msg_len++] = DC395x_read8(acb, TRM_S1040_SCSI_FIFO); |
2871 | if (msgin_completed(srb->msgin_buf, acb->msg_len)) { | 2871 | if (msgin_completed(srb->msgin_buf, acb->msg_len)) { |
@@ -2933,7 +2933,7 @@ static void msgin_phase0(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb, | |||
2933 | */ | 2933 | */ |
2934 | dprintkdbg(DBG_0, "msgin_phase0: (pid#%li) " | 2934 | dprintkdbg(DBG_0, "msgin_phase0: (pid#%li) " |
2935 | "SAVE POINTER rem=%i Ignore\n", | 2935 | "SAVE POINTER rem=%i Ignore\n", |
2936 | srb->cmd->pid, srb->total_xfer_length); | 2936 | srb->cmd->serial_number, srb->total_xfer_length); |
2937 | break; | 2937 | break; |
2938 | 2938 | ||
2939 | case RESTORE_POINTERS: | 2939 | case RESTORE_POINTERS: |
@@ -2943,7 +2943,7 @@ static void msgin_phase0(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb, | |||
2943 | case ABORT: | 2943 | case ABORT: |
2944 | dprintkdbg(DBG_0, "msgin_phase0: (pid#%li) " | 2944 | dprintkdbg(DBG_0, "msgin_phase0: (pid#%li) " |
2945 | "<%02i-%i> ABORT msg\n", | 2945 | "<%02i-%i> ABORT msg\n", |
2946 | srb->cmd->pid, dcb->target_id, | 2946 | srb->cmd->serial_number, dcb->target_id, |
2947 | dcb->target_lun); | 2947 | dcb->target_lun); |
2948 | dcb->flag |= ABORT_DEV_; | 2948 | dcb->flag |= ABORT_DEV_; |
2949 | enable_msgout_abort(acb, srb); | 2949 | enable_msgout_abort(acb, srb); |
@@ -2975,7 +2975,7 @@ static void msgin_phase0(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb, | |||
2975 | static void msgin_phase1(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb, | 2975 | static void msgin_phase1(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb, |
2976 | u16 *pscsi_status) | 2976 | u16 *pscsi_status) |
2977 | { | 2977 | { |
2978 | dprintkdbg(DBG_0, "msgin_phase1: (pid#%li)\n", srb->cmd->pid); | 2978 | dprintkdbg(DBG_0, "msgin_phase1: (pid#%li)\n", srb->cmd->serial_number); |
2979 | clear_fifo(acb, "msgin_phase1"); | 2979 | clear_fifo(acb, "msgin_phase1"); |
2980 | DC395x_write32(acb, TRM_S1040_SCSI_COUNTER, 1); | 2980 | DC395x_write32(acb, TRM_S1040_SCSI_COUNTER, 1); |
2981 | if (!(srb->state & SRB_MSGIN)) { | 2981 | if (!(srb->state & SRB_MSGIN)) { |
@@ -3041,7 +3041,7 @@ static void disconnect(struct AdapterCtlBlk *acb) | |||
3041 | } | 3041 | } |
3042 | srb = dcb->active_srb; | 3042 | srb = dcb->active_srb; |
3043 | acb->active_dcb = NULL; | 3043 | acb->active_dcb = NULL; |
3044 | dprintkdbg(DBG_0, "disconnect: (pid#%li)\n", srb->cmd->pid); | 3044 | dprintkdbg(DBG_0, "disconnect: (pid#%li)\n", srb->cmd->serial_number); |
3045 | 3045 | ||
3046 | srb->scsi_phase = PH_BUS_FREE; /* initial phase */ | 3046 | srb->scsi_phase = PH_BUS_FREE; /* initial phase */ |
3047 | clear_fifo(acb, "disconnect"); | 3047 | clear_fifo(acb, "disconnect"); |
@@ -3072,13 +3072,13 @@ static void disconnect(struct AdapterCtlBlk *acb) | |||
3072 | srb->state = SRB_READY; | 3072 | srb->state = SRB_READY; |
3073 | dprintkl(KERN_DEBUG, | 3073 | dprintkl(KERN_DEBUG, |
3074 | "disconnect: (pid#%li) Unexpected\n", | 3074 | "disconnect: (pid#%li) Unexpected\n", |
3075 | srb->cmd->pid); | 3075 | srb->cmd->serial_number); |
3076 | srb->target_status = SCSI_STAT_SEL_TIMEOUT; | 3076 | srb->target_status = SCSI_STAT_SEL_TIMEOUT; |
3077 | goto disc1; | 3077 | goto disc1; |
3078 | } else { | 3078 | } else { |
3079 | /* Normal selection timeout */ | 3079 | /* Normal selection timeout */ |
3080 | dprintkdbg(DBG_KG, "disconnect: (pid#%li) " | 3080 | dprintkdbg(DBG_KG, "disconnect: (pid#%li) " |
3081 | "<%02i-%i> SelTO\n", srb->cmd->pid, | 3081 | "<%02i-%i> SelTO\n", srb->cmd->serial_number, |
3082 | dcb->target_id, dcb->target_lun); | 3082 | dcb->target_id, dcb->target_lun); |
3083 | if (srb->retry_count++ > DC395x_MAX_RETRIES | 3083 | if (srb->retry_count++ > DC395x_MAX_RETRIES |
3084 | || acb->scan_devices) { | 3084 | || acb->scan_devices) { |
@@ -3090,7 +3090,7 @@ static void disconnect(struct AdapterCtlBlk *acb) | |||
3090 | srb_going_to_waiting_move(dcb, srb); | 3090 | srb_going_to_waiting_move(dcb, srb); |
3091 | dprintkdbg(DBG_KG, | 3091 | dprintkdbg(DBG_KG, |
3092 | "disconnect: (pid#%li) Retry\n", | 3092 | "disconnect: (pid#%li) Retry\n", |
3093 | srb->cmd->pid); | 3093 | srb->cmd->serial_number); |
3094 | waiting_set_timer(acb, HZ / 20); | 3094 | waiting_set_timer(acb, HZ / 20); |
3095 | } | 3095 | } |
3096 | } else if (srb->state & SRB_DISCONNECT) { | 3096 | } else if (srb->state & SRB_DISCONNECT) { |
@@ -3144,7 +3144,7 @@ static void reselect(struct AdapterCtlBlk *acb) | |||
3144 | if (!acb->scan_devices) { | 3144 | if (!acb->scan_devices) { |
3145 | dprintkdbg(DBG_KG, "reselect: (pid#%li) <%02i-%i> " | 3145 | dprintkdbg(DBG_KG, "reselect: (pid#%li) <%02i-%i> " |
3146 | "Arb lost but Resel win rsel=%i stat=0x%04x\n", | 3146 | "Arb lost but Resel win rsel=%i stat=0x%04x\n", |
3147 | srb->cmd->pid, dcb->target_id, | 3147 | srb->cmd->serial_number, dcb->target_id, |
3148 | dcb->target_lun, rsel_tar_lun_id, | 3148 | dcb->target_lun, rsel_tar_lun_id, |
3149 | DC395x_read16(acb, TRM_S1040_SCSI_STATUS)); | 3149 | DC395x_read16(acb, TRM_S1040_SCSI_STATUS)); |
3150 | arblostflag = 1; | 3150 | arblostflag = 1; |
@@ -3318,7 +3318,7 @@ static void srb_done(struct AdapterCtlBlk *acb, struct DeviceCtlBlk *dcb, | |||
3318 | enum dma_data_direction dir = cmd->sc_data_direction; | 3318 | enum dma_data_direction dir = cmd->sc_data_direction; |
3319 | int ckc_only = 1; | 3319 | int ckc_only = 1; |
3320 | 3320 | ||
3321 | dprintkdbg(DBG_1, "srb_done: (pid#%li) <%02i-%i>\n", srb->cmd->pid, | 3321 | dprintkdbg(DBG_1, "srb_done: (pid#%li) <%02i-%i>\n", srb->cmd->serial_number, |
3322 | srb->cmd->device->id, srb->cmd->device->lun); | 3322 | srb->cmd->device->id, srb->cmd->device->lun); |
3323 | dprintkdbg(DBG_SG, "srb_done: srb=%p sg=%i(%i/%i) buf=%p\n", | 3323 | dprintkdbg(DBG_SG, "srb_done: srb=%p sg=%i(%i/%i) buf=%p\n", |
3324 | srb, scsi_sg_count(cmd), srb->sg_index, srb->sg_count, | 3324 | srb, scsi_sg_count(cmd), srb->sg_index, srb->sg_count, |
@@ -3499,7 +3499,7 @@ static void srb_done(struct AdapterCtlBlk *acb, struct DeviceCtlBlk *dcb, | |||
3499 | if (srb->total_xfer_length) | 3499 | if (srb->total_xfer_length) |
3500 | dprintkdbg(DBG_KG, "srb_done: (pid#%li) <%02i-%i> " | 3500 | dprintkdbg(DBG_KG, "srb_done: (pid#%li) <%02i-%i> " |
3501 | "cmnd=0x%02x Missed %i bytes\n", | 3501 | "cmnd=0x%02x Missed %i bytes\n", |
3502 | cmd->pid, cmd->device->id, cmd->device->lun, | 3502 | cmd->serial_number, cmd->device->id, cmd->device->lun, |
3503 | cmd->cmnd[0], srb->total_xfer_length); | 3503 | cmd->cmnd[0], srb->total_xfer_length); |
3504 | } | 3504 | } |
3505 | 3505 | ||
@@ -3509,7 +3509,7 @@ static void srb_done(struct AdapterCtlBlk *acb, struct DeviceCtlBlk *dcb, | |||
3509 | dprintkl(KERN_ERR, "srb_done: ERROR! Completed cmd with tmp_srb\n"); | 3509 | dprintkl(KERN_ERR, "srb_done: ERROR! Completed cmd with tmp_srb\n"); |
3510 | else { | 3510 | else { |
3511 | dprintkdbg(DBG_0, "srb_done: (pid#%li) done result=0x%08x\n", | 3511 | dprintkdbg(DBG_0, "srb_done: (pid#%li) done result=0x%08x\n", |
3512 | cmd->pid, cmd->result); | 3512 | cmd->serial_number, cmd->result); |
3513 | srb_free_insert(acb, srb); | 3513 | srb_free_insert(acb, srb); |
3514 | } | 3514 | } |
3515 | pci_unmap_srb(acb, srb); | 3515 | pci_unmap_srb(acb, srb); |
@@ -3538,7 +3538,7 @@ static void doing_srb_done(struct AdapterCtlBlk *acb, u8 did_flag, | |||
3538 | p = srb->cmd; | 3538 | p = srb->cmd; |
3539 | dir = p->sc_data_direction; | 3539 | dir = p->sc_data_direction; |
3540 | result = MK_RES(0, did_flag, 0, 0); | 3540 | result = MK_RES(0, did_flag, 0, 0); |
3541 | printk("G:%li(%02i-%i) ", p->pid, | 3541 | printk("G:%li(%02i-%i) ", p->serial_number, |
3542 | p->device->id, p->device->lun); | 3542 | p->device->id, p->device->lun); |
3543 | srb_going_remove(dcb, srb); | 3543 | srb_going_remove(dcb, srb); |
3544 | free_tag(dcb, srb); | 3544 | free_tag(dcb, srb); |
@@ -3568,7 +3568,7 @@ static void doing_srb_done(struct AdapterCtlBlk *acb, u8 did_flag, | |||
3568 | p = srb->cmd; | 3568 | p = srb->cmd; |
3569 | 3569 | ||
3570 | result = MK_RES(0, did_flag, 0, 0); | 3570 | result = MK_RES(0, did_flag, 0, 0); |
3571 | printk("W:%li<%02i-%i>", p->pid, p->device->id, | 3571 | printk("W:%li<%02i-%i>", p->serial_number, p->device->id, |
3572 | p->device->lun); | 3572 | p->device->lun); |
3573 | srb_waiting_remove(dcb, srb); | 3573 | srb_waiting_remove(dcb, srb); |
3574 | srb_free_insert(acb, srb); | 3574 | srb_free_insert(acb, srb); |
@@ -3678,7 +3678,7 @@ static void request_sense(struct AdapterCtlBlk *acb, struct DeviceCtlBlk *dcb, | |||
3678 | { | 3678 | { |
3679 | struct scsi_cmnd *cmd = srb->cmd; | 3679 | struct scsi_cmnd *cmd = srb->cmd; |
3680 | dprintkdbg(DBG_1, "request_sense: (pid#%li) <%02i-%i>\n", | 3680 | dprintkdbg(DBG_1, "request_sense: (pid#%li) <%02i-%i>\n", |
3681 | cmd->pid, cmd->device->id, cmd->device->lun); | 3681 | cmd->serial_number, cmd->device->id, cmd->device->lun); |
3682 | 3682 | ||
3683 | srb->flag |= AUTO_REQSENSE; | 3683 | srb->flag |= AUTO_REQSENSE; |
3684 | srb->adapter_status = 0; | 3684 | srb->adapter_status = 0; |
@@ -3709,7 +3709,7 @@ static void request_sense(struct AdapterCtlBlk *acb, struct DeviceCtlBlk *dcb, | |||
3709 | if (start_scsi(acb, dcb, srb)) { /* Should only happen, if sb. else grabs the bus */ | 3709 | if (start_scsi(acb, dcb, srb)) { /* Should only happen, if sb. else grabs the bus */ |
3710 | dprintkl(KERN_DEBUG, | 3710 | dprintkl(KERN_DEBUG, |
3711 | "request_sense: (pid#%li) failed <%02i-%i>\n", | 3711 | "request_sense: (pid#%li) failed <%02i-%i>\n", |
3712 | srb->cmd->pid, dcb->target_id, dcb->target_lun); | 3712 | srb->cmd->serial_number, dcb->target_id, dcb->target_lun); |
3713 | srb_going_to_waiting_move(dcb, srb); | 3713 | srb_going_to_waiting_move(dcb, srb); |
3714 | waiting_set_timer(acb, HZ / 100); | 3714 | waiting_set_timer(acb, HZ / 100); |
3715 | } | 3715 | } |
@@ -4717,13 +4717,13 @@ static int dc395x_proc_info(struct Scsi_Host *host, char *buffer, | |||
4717 | dcb->target_id, dcb->target_lun, | 4717 | dcb->target_id, dcb->target_lun, |
4718 | list_size(&dcb->srb_waiting_list)); | 4718 | list_size(&dcb->srb_waiting_list)); |
4719 | list_for_each_entry(srb, &dcb->srb_waiting_list, list) | 4719 | list_for_each_entry(srb, &dcb->srb_waiting_list, list) |
4720 | SPRINTF(" %li", srb->cmd->pid); | 4720 | SPRINTF(" %li", srb->cmd->serial_number); |
4721 | if (!list_empty(&dcb->srb_going_list)) | 4721 | if (!list_empty(&dcb->srb_going_list)) |
4722 | SPRINTF("\nDCB (%02i-%i): Going : %i:", | 4722 | SPRINTF("\nDCB (%02i-%i): Going : %i:", |
4723 | dcb->target_id, dcb->target_lun, | 4723 | dcb->target_id, dcb->target_lun, |
4724 | list_size(&dcb->srb_going_list)); | 4724 | list_size(&dcb->srb_going_list)); |
4725 | list_for_each_entry(srb, &dcb->srb_going_list, list) | 4725 | list_for_each_entry(srb, &dcb->srb_going_list, list) |
4726 | SPRINTF(" %li", srb->cmd->pid); | 4726 | SPRINTF(" %li", srb->cmd->serial_number); |
4727 | if (!list_empty(&dcb->srb_waiting_list) || !list_empty(&dcb->srb_going_list)) | 4727 | if (!list_empty(&dcb->srb_waiting_list) || !list_empty(&dcb->srb_going_list)) |
4728 | SPRINTF("\n"); | 4728 | SPRINTF("\n"); |
4729 | } | 4729 | } |