Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Sep 2002 12:41:00 +0900 (JST)
From:      Mitsuru IWASAKI <iwasaki@jp.FreeBSD.org>
To:        sos@FreeBSD.org
Cc:        current@FreeBSD.ORG
Subject:   [PATCH] Promise PDC20277 ATA RAID controller support
Message-ID:  <20020928.124100.44565818.iwasaki@jp.FreeBSD.org>

next in thread | raw e-mail | index | archive | help
Hi, I got a new machine with Promise PDC20277 ATA RAID controller.
This controller isn't supported yet, so I wrote simple patches for it.
It's working now, so far so good :)
Soren, Could you review the patches and commit them if acceptable?

Thanks

Index: dev/ata/ata-dma.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/ata/ata-dma.c,v
retrieving revision 1.102
diff -u -r1.102 ata-dma.c
--- dev/ata/ata-dma.c	14 Sep 2002 18:59:32 -0000	1.102
+++ dev/ata/ata-dma.c	27 Sep 2002 14:50:30 -0000
@@ -1042,6 +1042,7 @@
     case 0x4d69105a:	/* Promise TX2 ATA133 controllers */
     case 0x5275105a:	/* Promise TX2 ATA133 controllers */
     case 0x6269105a:	/* Promise TX2 ATA133 controllers */
+    case 0x7275105a:	/* Promise PDC20277 controllers */
 	ATA_OUTB(atadev->channel->r_bmio, ATA_BMDEVSPEC_0, 0x0b);
 	if (udmamode >= 6 &&
 	    !(ATA_INB(atadev->channel->r_bmio, ATA_BMDEVSPEC_1) & 0x04)) {
Index: dev/ata/ata-pci.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/ata/ata-pci.c,v
retrieving revision 1.45
diff -u -r1.45 ata-pci.c
--- dev/ata/ata-pci.c	14 Sep 2002 18:59:32 -0000	1.45
+++ dev/ata/ata-pci.c	27 Sep 2002 10:34:56 -0000
@@ -282,6 +282,9 @@
     case 0x6269105a: 
 	return "Promise TX2 ATA133 controller";
 
+    case 0x7275105a: 
+	return "Promise PDC20277 controller";
+
     case 0x00041103:
 	switch (pci_get_revid(dev)) {
 	case 0x00:
@@ -594,6 +597,7 @@
     case 0x4d69105a:	/* Promise TX2 ATA133 */
     case 0x5275105a:	/* Promise TX2 ATA133 */
     case 0x6269105a:	/* Promise TX2 ATA133 */
+    case 0x7275105a:	/* Promise PDC20277 */
 	ATA_OUTB(ch->r_bmio, ATA_BMDEVSPEC_0, 0x0b);
 	if (!(ATA_INB(ch->r_bmio, ATA_BMDEVSPEC_1) & 0x20))
 	    return 1;
Index: dev/ata/ata-raid.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/ata/ata-raid.c,v
retrieving revision 1.47
diff -u -r1.47 ata-raid.c
--- dev/ata/ata-raid.c	12 Apr 2002 14:10:19 -0000	1.47
+++ dev/ata/ata-raid.c	27 Sep 2002 09:38:15 -0000
@@ -123,6 +123,7 @@
     case 0x4d33105a: case 0x4d38105a: case 0x4d30105a:
     case 0x0d30105a: case 0x4d68105a: case 0x6268105a:
     case 0x4d69105a: case 0x5275105a: case 0x6269105a:
+    case 0x7275105a:
 
 	/* test RAID bit in PCI reg XXX */
 	return (ar_promise_read_conf(adp, ar_table, 0));

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020928.124100.44565818.iwasaki>