aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/advansys.c
diff options
context:
space:
mode:
authorMatthew Wilcox <matthew@wil.cx>2007-10-02 21:55:32 -0400
committerJames Bottomley <jejb@mulgrave.localdomain>2007-10-12 14:53:29 -0400
commitb08fc565500a6f691edae7c5ce2e0480365f848c (patch)
tree575ed06477c565cc9b51e29cc72a7bdebd51bd94 /drivers/scsi/advansys.c
parentd24114955846c321a9e94fff4764bbef532524b2 (diff)
[SCSI] advansys: Remove library version & serial numbers
With the ASC and ADV libraries merged into the driver, there really is no point in reporting their version numbers, or even trying to maintain them. Signed-off-by: Matthew Wilcox <willy@linux.intel.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/advansys.c')
-rw-r--r--drivers/scsi/advansys.c60
1 files changed, 15 insertions, 45 deletions
diff --git a/drivers/scsi/advansys.c b/drivers/scsi/advansys.c
index 7570380dc958..72ed9721c44b 100644
--- a/drivers/scsi/advansys.c
+++ b/drivers/scsi/advansys.c
@@ -77,10 +77,6 @@
77/* Enable driver tracing. */ 77/* Enable driver tracing. */
78/* #define ADVANSYS_DEBUG */ 78/* #define ADVANSYS_DEBUG */
79 79
80#define ASC_LIB_VERSION_MAJOR 1
81#define ASC_LIB_VERSION_MINOR 24
82#define ASC_LIB_SERIAL_NUMBER 123
83
84/* 80/*
85 * Portable Data Types 81 * Portable Data Types
86 * 82 *
@@ -554,8 +550,6 @@ typedef struct asc_dvc_cfg {
554 uchar isa_dma_speed; 550 uchar isa_dma_speed;
555 uchar isa_dma_channel; 551 uchar isa_dma_channel;
556 uchar chip_version; 552 uchar chip_version;
557 ushort lib_serial_no;
558 ushort lib_version;
559 ushort mcode_date; 553 ushort mcode_date;
560 ushort mcode_version; 554 ushort mcode_version;
561 uchar max_tag_qng[ASC_MAX_TID + 1]; 555 uchar max_tag_qng[ASC_MAX_TID + 1];
@@ -958,13 +952,6 @@ typedef struct asc_mc_saved {
958#define AscReadChipDvcID(port) (uchar)inp((port)+IOP_REG_ID) 952#define AscReadChipDvcID(port) (uchar)inp((port)+IOP_REG_ID)
959#define AscWriteChipDvcID(port, data) outp((port)+IOP_REG_ID, data) 953#define AscWriteChipDvcID(port, data) outp((port)+IOP_REG_ID, data)
960 954
961#define ADV_LIB_VERSION_MAJOR 5
962#define ADV_LIB_VERSION_MINOR 14
963
964/*
965 * Define Adv Library required special types.
966 */
967
968/* 955/*
969 * Portable Data Types 956 * Portable Data Types
970 * 957 *
@@ -1856,7 +1843,6 @@ typedef struct adv_dvc_cfg {
1856 ushort disc_enable; /* enable disconnection */ 1843 ushort disc_enable; /* enable disconnection */
1857 uchar chip_version; /* chip version */ 1844 uchar chip_version; /* chip version */
1858 uchar termination; /* Term. Ctrl. bits 6-5 of SCSI_CFG1 register */ 1845 uchar termination; /* Term. Ctrl. bits 6-5 of SCSI_CFG1 register */
1859 ushort lib_version; /* Adv Library version number */
1860 ushort control_flag; /* Microcode Control Flag */ 1846 ushort control_flag; /* Microcode Control Flag */
1861 ushort mcode_date; /* Microcode date */ 1847 ushort mcode_date; /* Microcode date */
1862 ushort mcode_version; /* Microcode version */ 1848 ushort mcode_version; /* Microcode version */
@@ -2637,18 +2623,13 @@ static void asc_prt_asc_dvc_cfg(ASC_DVC_CFG *h)
2637 printk(" disc_enable 0x%x, sdtr_enable 0x%x,\n", 2623 printk(" disc_enable 0x%x, sdtr_enable 0x%x,\n",
2638 h->disc_enable, h->sdtr_enable); 2624 h->disc_enable, h->sdtr_enable);
2639 2625
2640 printk 2626 printk(" chip_scsi_id %d, isa_dma_speed %d, isa_dma_channel %d, "
2641 (" chip_scsi_id %d, isa_dma_speed %d, isa_dma_channel %d, chip_version %d,\n", 2627 "chip_version %d,\n", h->chip_scsi_id, h->isa_dma_speed,
2642 h->chip_scsi_id, h->isa_dma_speed, h->isa_dma_channel, 2628 h->isa_dma_channel, h->chip_version);
2643 h->chip_version);
2644
2645 printk
2646 (" pci_device_id %d, lib_serial_no %u, lib_version %u, mcode_date 0x%x,\n",
2647 to_pci_dev(h->dev)->device, h->lib_serial_no, h->lib_version,
2648 h->mcode_date);
2649 2629
2650 printk(" mcode_version %d, overrun_buf 0x%lx\n", 2630 printk(" pci_device_id %d, mcode_date 0x%x, mcode_version %d, "
2651 h->mcode_version, (ulong)h->overrun_buf); 2631 "overrun_buf 0x%p\n", to_pci_dev(h->dev)->device,
2632 h->mcode_date, h->mcode_version, h->overrun_buf);
2652} 2633}
2653 2634
2654/* 2635/*
@@ -2752,8 +2733,8 @@ static void asc_prt_adv_dvc_cfg(ADV_DVC_CFG *h)
2752 printk(" chip_version 0x%x, mcode_date 0x%x\n", 2733 printk(" chip_version 0x%x, mcode_date 0x%x\n",
2753 h->chip_version, h->mcode_date); 2734 h->chip_version, h->mcode_date);
2754 2735
2755 printk(" mcode_version 0x%x, pci_device_id 0x%x, lib_version %u\n", 2736 printk(" mcode_version 0x%x, pci_device_id 0x%x\n",
2756 h->mcode_version, to_pci_dev(h->dev)->device, h->lib_version); 2737 h->mcode_version, to_pci_dev(h->dev)->device);
2757 2738
2758 printk(" control_flag 0x%x\n", h->control_flag); 2739 printk(" control_flag 0x%x\n", h->control_flag);
2759} 2740}
@@ -3731,15 +3712,10 @@ static int asc_prt_asc_board_info(struct Scsi_Host *shost, char *cp, int cplen)
3731 shost->host_no); 3712 shost->host_no);
3732 ASC_PRT_NEXT(); 3713 ASC_PRT_NEXT();
3733 3714
3734 len = asc_prt_line(cp, leftlen, 3715 len = asc_prt_line(cp, leftlen, " chip_version %u, mcode_date 0x%x, "
3735 " chip_version %u, lib_version 0x%x, lib_serial_no %u, mcode_date 0x%x\n", 3716 "mcode_version 0x%x, err_code %u\n",
3736 c->chip_version, c->lib_version, c->lib_serial_no, 3717 c->chip_version, c->mcode_date, c->mcode_version,
3737 c->mcode_date); 3718 v->err_code);
3738 ASC_PRT_NEXT();
3739
3740 len = asc_prt_line(cp, leftlen,
3741 " mcode_version 0x%x, err_code %u\n",
3742 c->mcode_version, v->err_code);
3743 ASC_PRT_NEXT(); 3719 ASC_PRT_NEXT();
3744 3720
3745 /* Current number of commands waiting for the host. */ 3721 /* Current number of commands waiting for the host. */
@@ -3934,10 +3910,9 @@ static int asc_prt_adv_board_info(struct Scsi_Host *shost, char *cp, int cplen)
3934 v->err_code); 3910 v->err_code);
3935 ASC_PRT_NEXT(); 3911 ASC_PRT_NEXT();
3936 3912
3937 len = asc_prt_line(cp, leftlen, 3913 len = asc_prt_line(cp, leftlen, " chip_version %u, mcode_date 0x%x, "
3938 " chip_version %u, lib_version 0x%x, mcode_date 0x%x, mcode_version 0x%x\n", 3914 "mcode_version 0x%x\n", c->chip_version,
3939 c->chip_version, c->lib_version, c->mcode_date, 3915 c->mcode_date, c->mcode_version);
3940 c->mcode_version);
3941 ASC_PRT_NEXT(); 3916 ASC_PRT_NEXT();
3942 3917
3943 AdvReadWordLram(iop_base, ASC_MC_TAGQNG_ABLE, tagqng_able); 3918 AdvReadWordLram(iop_base, ASC_MC_TAGQNG_ABLE, tagqng_able);
@@ -11566,9 +11541,6 @@ static ushort __devinit AscInitAscDvcVar(ASC_DVC_VAR *asc_dvc)
11566 asc_dvc->cfg->sdtr_enable = ASC_SCSI_WIDTH_BIT_SET; 11541 asc_dvc->cfg->sdtr_enable = ASC_SCSI_WIDTH_BIT_SET;
11567 asc_dvc->cfg->disc_enable = ASC_SCSI_WIDTH_BIT_SET; 11542 asc_dvc->cfg->disc_enable = ASC_SCSI_WIDTH_BIT_SET;
11568 asc_dvc->cfg->chip_scsi_id = ASC_DEF_CHIP_SCSI_ID; 11543 asc_dvc->cfg->chip_scsi_id = ASC_DEF_CHIP_SCSI_ID;
11569 asc_dvc->cfg->lib_serial_no = ASC_LIB_SERIAL_NUMBER;
11570 asc_dvc->cfg->lib_version = (ASC_LIB_VERSION_MAJOR << 8) |
11571 ASC_LIB_VERSION_MINOR;
11572 chip_version = AscGetChipVersion(iop_base, asc_dvc->bus_type); 11544 chip_version = AscGetChipVersion(iop_base, asc_dvc->bus_type);
11573 asc_dvc->cfg->chip_version = chip_version; 11545 asc_dvc->cfg->chip_version = chip_version;
11574 asc_dvc->sdtr_period_tbl[0] = SYN_XFER_NS_0; 11546 asc_dvc->sdtr_period_tbl[0] = SYN_XFER_NS_0;
@@ -13542,8 +13514,6 @@ AdvInitGetConfig(struct pci_dev *pdev, struct asc_board *boardp)
13542 if ((cmd & PCI_COMMAND_PARITY) == 0) 13514 if ((cmd & PCI_COMMAND_PARITY) == 0)
13543 asc_dvc->cfg->control_flag |= CONTROL_FLAG_IGNORE_PERR; 13515 asc_dvc->cfg->control_flag |= CONTROL_FLAG_IGNORE_PERR;
13544 13516
13545 asc_dvc->cfg->lib_version = (ADV_LIB_VERSION_MAJOR << 8) |
13546 ADV_LIB_VERSION_MINOR;
13547 asc_dvc->cfg->chip_version = 13517 asc_dvc->cfg->chip_version =
13548 AdvGetChipVersion(iop_base, asc_dvc->bus_type); 13518 AdvGetChipVersion(iop_base, asc_dvc->bus_type);
13549 13519