/[linux-patches]/genpatches-2.6/tags/2.6.12-12/4325_promise-pdc20619.patch
Gentoo

Contents of /genpatches-2.6/tags/2.6.12-12/4325_promise-pdc20619.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 137 - (show annotations) (download)
Tue Aug 9 21:23:12 2005 UTC (12 years, 10 months ago) by dsd
File size: 2095 byte(s)
2.6.12-12 release
1 Author: Tobias Lorenz <tobias.lorenz@gmx.net>
2 Date: Thu, 12 May 2005 19:51:01 +0000 (-0400)
3 Source: http://www.kernel.org/git/gitweb.cgi?p=linux/kernel/git/jgarzik/libata-dev.git;a=commitdiff;h=f497ba735fc9ff4e35a19641143708b3be1c7061
4
5 [libata sata_promise] pdc20619 (PATA) support
6
7 --- a/drivers/scsi/sata_promise.c
8 +++ b/drivers/scsi/sata_promise.c
9 @@ -59,6 +59,7 @@ enum {
10
11 board_2037x = 0, /* FastTrak S150 TX2plus */
12 board_20319 = 1, /* FastTrak S150 TX4 */
13 + board_20619 = 2, /* FastTrak TX4000 */
14
15 PDC_HAS_PATA = (1 << 1), /* PDC20375 has PATA */
16
17 @@ -146,6 +147,17 @@ static struct ata_port_info pdc_port_inf
18 .udma_mask = 0x7f, /* udma0-6 ; FIXME */
19 .port_ops = &pdc_ata_ops,
20 },
21 +
22 + /* board_20619 */
23 + {
24 + .sht = &pdc_ata_sht,
25 + .host_flags = ATA_FLAG_NO_LEGACY | ATA_FLAG_SRST |
26 + ATA_FLAG_MMIO | ATA_FLAG_SLAVE_POSS,
27 + .pio_mask = 0x1f, /* pio0-4 */
28 + .mwdma_mask = 0x07, /* mwdma0-2 */
29 + .udma_mask = 0x7f, /* udma0-6 ; FIXME */
30 + .port_ops = &pdc_ata_ops,
31 + },
32 };
33
34 static struct pci_device_id pdc_ata_pci_tbl[] = {
35 @@ -169,6 +181,9 @@ static struct pci_device_id pdc_ata_pci_
36 { PCI_VENDOR_ID_PROMISE, 0x3d18, PCI_ANY_ID, PCI_ANY_ID, 0, 0,
37 board_20319 },
38
39 + { PCI_VENDOR_ID_PROMISE, 0x6629, PCI_ANY_ID, PCI_ANY_ID, 0, 0,
40 + board_20619 },
41 +
42 { } /* terminate list */
43 };
44
45 @@ -633,6 +648,15 @@ static int pdc_ata_init_one (struct pci_
46 case board_2037x:
47 probe_ent->n_ports = 2;
48 break;
49 + case board_20619:
50 + probe_ent->n_ports = 4;
51 +
52 + pdc_ata_setup_port(&probe_ent->port[2], base + 0x300);
53 + pdc_ata_setup_port(&probe_ent->port[3], base + 0x380);
54 +
55 + probe_ent->port[2].scr_addr = base + 0x600;
56 + probe_ent->port[3].scr_addr = base + 0x700;
57 + break;
58 default:
59 BUG();
60 break;
61 @@ -673,7 +697,7 @@ static void __exit pdc_ata_exit(void)
62
63
64 MODULE_AUTHOR("Jeff Garzik");
65 -MODULE_DESCRIPTION("Promise SATA TX2/TX4 low-level driver");
66 +MODULE_DESCRIPTION("Promise ATA TX2/TX4/TX4000 low-level driver");
67 MODULE_LICENSE("GPL");
68 MODULE_DEVICE_TABLE(pci, pdc_ata_pci_tbl);
69 MODULE_VERSION(DRV_VERSION);

  ViewVC Help
Powered by ViewVC 1.1.20