diff options
author | Tejun Heo <htejun@gmail.com> | 2008-01-04 04:42:20 -0500 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2008-01-23 05:24:15 -0500 |
commit | 723159c58371b860cf6ef38affd19d16290e4898 (patch) | |
tree | 7e9b5cfef7d79ac81dddd74855badf4a9b1c67ed /drivers | |
parent | 442eacc362c2576aac8ebfd41b99252e28e0f49c (diff) |
ata_piix: kill unused constants and flags
Kill PIIX_FLAG_SCR, PIIX_PORT_ENABLED and PIIX_PORT_PRESENT. These
are unused.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/ata/ata_piix.c | 27 |
1 files changed, 7 insertions, 20 deletions
diff --git a/drivers/ata/ata_piix.c b/drivers/ata/ata_piix.c index 2db635817edf..3183b3f38e49 100644 --- a/drivers/ata/ata_piix.c +++ b/drivers/ata/ata_piix.c | |||
@@ -102,19 +102,12 @@ enum { | |||
102 | ICH5_PCS = 0x92, /* port control and status */ | 102 | ICH5_PCS = 0x92, /* port control and status */ |
103 | PIIX_SCC = 0x0A, /* sub-class code register */ | 103 | PIIX_SCC = 0x0A, /* sub-class code register */ |
104 | 104 | ||
105 | PIIX_FLAG_SCR = (1 << 26), /* SCR available */ | ||
106 | PIIX_FLAG_AHCI = (1 << 27), /* AHCI possible */ | 105 | PIIX_FLAG_AHCI = (1 << 27), /* AHCI possible */ |
107 | PIIX_FLAG_CHECKINTR = (1 << 28), /* make sure PCI INTx enabled */ | 106 | PIIX_FLAG_CHECKINTR = (1 << 28), /* make sure PCI INTx enabled */ |
108 | 107 | ||
109 | PIIX_PATA_FLAGS = ATA_FLAG_SLAVE_POSS, | 108 | PIIX_PATA_FLAGS = ATA_FLAG_SLAVE_POSS, |
110 | PIIX_SATA_FLAGS = ATA_FLAG_SATA | PIIX_FLAG_CHECKINTR, | 109 | PIIX_SATA_FLAGS = ATA_FLAG_SATA | PIIX_FLAG_CHECKINTR, |
111 | 110 | ||
112 | /* combined mode. if set, PATA is channel 0. | ||
113 | * if clear, PATA is channel 1. | ||
114 | */ | ||
115 | PIIX_PORT_ENABLED = (1 << 0), | ||
116 | PIIX_PORT_PRESENT = (1 << 4), | ||
117 | |||
118 | PIIX_80C_PRI = (1 << 5) | (1 << 4), | 111 | PIIX_80C_PRI = (1 << 5) | (1 << 4), |
119 | PIIX_80C_SEC = (1 << 7) | (1 << 6), | 112 | PIIX_80C_SEC = (1 << 7) | (1 << 6), |
120 | 113 | ||
@@ -588,7 +581,7 @@ static struct ata_port_info piix_port_info[] = { | |||
588 | [ich6_sata] = | 581 | [ich6_sata] = |
589 | { | 582 | { |
590 | .sht = &piix_sht, | 583 | .sht = &piix_sht, |
591 | .flags = PIIX_SATA_FLAGS | PIIX_FLAG_SCR, | 584 | .flags = PIIX_SATA_FLAGS, |
592 | .pio_mask = 0x1f, /* pio0-4 */ | 585 | .pio_mask = 0x1f, /* pio0-4 */ |
593 | .mwdma_mask = 0x07, /* mwdma0-2 */ | 586 | .mwdma_mask = 0x07, /* mwdma0-2 */ |
594 | .udma_mask = ATA_UDMA6, | 587 | .udma_mask = ATA_UDMA6, |
@@ -598,8 +591,7 @@ static struct ata_port_info piix_port_info[] = { | |||
598 | [ich6_sata_ahci] = | 591 | [ich6_sata_ahci] = |
599 | { | 592 | { |
600 | .sht = &piix_sht, | 593 | .sht = &piix_sht, |
601 | .flags = PIIX_SATA_FLAGS | PIIX_FLAG_SCR | | 594 | .flags = PIIX_SATA_FLAGS | PIIX_FLAG_AHCI, |
602 | PIIX_FLAG_AHCI, | ||
603 | .pio_mask = 0x1f, /* pio0-4 */ | 595 | .pio_mask = 0x1f, /* pio0-4 */ |
604 | .mwdma_mask = 0x07, /* mwdma0-2 */ | 596 | .mwdma_mask = 0x07, /* mwdma0-2 */ |
605 | .udma_mask = ATA_UDMA6, | 597 | .udma_mask = ATA_UDMA6, |
@@ -609,8 +601,7 @@ static struct ata_port_info piix_port_info[] = { | |||
609 | [ich6m_sata_ahci] = | 601 | [ich6m_sata_ahci] = |
610 | { | 602 | { |
611 | .sht = &piix_sht, | 603 | .sht = &piix_sht, |
612 | .flags = PIIX_SATA_FLAGS | PIIX_FLAG_SCR | | 604 | .flags = PIIX_SATA_FLAGS | PIIX_FLAG_AHCI, |
613 | PIIX_FLAG_AHCI, | ||
614 | .pio_mask = 0x1f, /* pio0-4 */ | 605 | .pio_mask = 0x1f, /* pio0-4 */ |
615 | .mwdma_mask = 0x07, /* mwdma0-2 */ | 606 | .mwdma_mask = 0x07, /* mwdma0-2 */ |
616 | .udma_mask = ATA_UDMA6, | 607 | .udma_mask = ATA_UDMA6, |
@@ -620,8 +611,7 @@ static struct ata_port_info piix_port_info[] = { | |||
620 | [ich8_sata_ahci] = | 611 | [ich8_sata_ahci] = |
621 | { | 612 | { |
622 | .sht = &piix_sht, | 613 | .sht = &piix_sht, |
623 | .flags = PIIX_SATA_FLAGS | PIIX_FLAG_SCR | | 614 | .flags = PIIX_SATA_FLAGS | PIIX_FLAG_AHCI, |
624 | PIIX_FLAG_AHCI, | ||
625 | .pio_mask = 0x1f, /* pio0-4 */ | 615 | .pio_mask = 0x1f, /* pio0-4 */ |
626 | .mwdma_mask = 0x07, /* mwdma0-2 */ | 616 | .mwdma_mask = 0x07, /* mwdma0-2 */ |
627 | .udma_mask = ATA_UDMA6, | 617 | .udma_mask = ATA_UDMA6, |
@@ -631,8 +621,7 @@ static struct ata_port_info piix_port_info[] = { | |||
631 | [ich8_2port_sata] = | 621 | [ich8_2port_sata] = |
632 | { | 622 | { |
633 | .sht = &piix_sht, | 623 | .sht = &piix_sht, |
634 | .flags = PIIX_SATA_FLAGS | PIIX_FLAG_SCR | | 624 | .flags = PIIX_SATA_FLAGS | PIIX_FLAG_AHCI, |
635 | PIIX_FLAG_AHCI, | ||
636 | .pio_mask = 0x1f, /* pio0-4 */ | 625 | .pio_mask = 0x1f, /* pio0-4 */ |
637 | .mwdma_mask = 0x07, /* mwdma0-2 */ | 626 | .mwdma_mask = 0x07, /* mwdma0-2 */ |
638 | .udma_mask = ATA_UDMA6, | 627 | .udma_mask = ATA_UDMA6, |
@@ -642,8 +631,7 @@ static struct ata_port_info piix_port_info[] = { | |||
642 | [tolapai_sata_ahci] = | 631 | [tolapai_sata_ahci] = |
643 | { | 632 | { |
644 | .sht = &piix_sht, | 633 | .sht = &piix_sht, |
645 | .flags = PIIX_SATA_FLAGS | PIIX_FLAG_SCR | | 634 | .flags = PIIX_SATA_FLAGS | PIIX_FLAG_AHCI, |
646 | PIIX_FLAG_AHCI, | ||
647 | .pio_mask = 0x1f, /* pio0-4 */ | 635 | .pio_mask = 0x1f, /* pio0-4 */ |
648 | .mwdma_mask = 0x07, /* mwdma0-2 */ | 636 | .mwdma_mask = 0x07, /* mwdma0-2 */ |
649 | .udma_mask = ATA_UDMA6, | 637 | .udma_mask = ATA_UDMA6, |
@@ -653,8 +641,7 @@ static struct ata_port_info piix_port_info[] = { | |||
653 | [ich8m_apple_sata_ahci] = | 641 | [ich8m_apple_sata_ahci] = |
654 | { | 642 | { |
655 | .sht = &piix_sht, | 643 | .sht = &piix_sht, |
656 | .flags = PIIX_SATA_FLAGS | PIIX_FLAG_SCR | | 644 | .flags = PIIX_SATA_FLAGS | PIIX_FLAG_AHCI, |
657 | PIIX_FLAG_AHCI, | ||
658 | .pio_mask = 0x1f, /* pio0-4 */ | 645 | .pio_mask = 0x1f, /* pio0-4 */ |
659 | .mwdma_mask = 0x07, /* mwdma0-2 */ | 646 | .mwdma_mask = 0x07, /* mwdma0-2 */ |
660 | .udma_mask = ATA_UDMA6, | 647 | .udma_mask = ATA_UDMA6, |