From owner-freebsd-current Fri Sep 27 20:41:19 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0920737B401; Fri, 27 Sep 2002 20:41:17 -0700 (PDT) Received: from tasogare.imasy.or.jp (tasogare.imasy.or.jp [202.227.24.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5E5D143E42; Fri, 27 Sep 2002 20:41:14 -0700 (PDT) (envelope-from iwasaki@jp.FreeBSD.org) Received: from localhost (iwa@tasogare.imasy.or.jp [202.227.24.5]) by tasogare.imasy.or.jp (8.11.6+3.4W/8.11.6/tasogare) with ESMTP/inet id g8S3f8Y11307; Sat, 28 Sep 2002 12:41:09 +0900 (JST) (envelope-from iwasaki@jp.FreeBSD.org) Date: Sat, 28 Sep 2002 12:41:00 +0900 (JST) Message-Id: <20020928.124100.44565818.iwasaki@jp.FreeBSD.org> To: sos@FreeBSD.org Cc: current@FreeBSD.ORG Subject: [PATCH] Promise PDC20277 ATA RAID controller support From: Mitsuru IWASAKI X-Mailer: Mew version 2.2 on Emacs 20.7 / Mule 4.0 (HANANOEN) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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