Date: Tue, 2 Aug 2005 13:20:42 +0800 From: Jia-Shiun Li <jiashiun@gmail.com> To: =?ISO-8859-1?Q?S=F8ren_Schmidt?= <sos@freebsd.org>, freebsd-current@freebsd.org Subject: ATA driver patch for IT8211F Message-ID: <1d6d20bc05080122207b5f172e@mail.gmail.com>
index | next in thread | raw e-mail
[-- Attachment #1 --]
Hi all,
Attached is the patch for ITE IT8211F ATA controller. IT8211F is
compatible with IT8212F except the raid function. It is often used on
mainboards in addition to the only parallel ATA channel of ICH6/ICH7,
especially Asus ones. However I do not have any hardware available to
test. Anyone has such mainboards or addon cards please test this patch
to help add support for it.
Thanks,
Jia-Shiun
[-- Attachment #2 --]
Index: sys/dev/ata/ata-chipset.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/ata/ata-chipset.c,v
retrieving revision 1.126
diff -b -u -p -r1.126 ata-chipset.c
--- sys/dev/ata/ata-chipset.c 10 Jun 2005 07:43:10 -0000 1.126
+++ sys/dev/ata/ata-chipset.c 2 Aug 2005 05:06:56 -0000
@@ -1796,6 +1796,10 @@ ata_ite_ident(device_t dev)
{
struct ata_pci_controller *ctlr = device_get_softc(dev);
+ if (pci_get_devid(dev) == ATA_IT8211F) {
+ device_set_desc(dev, "ITE IT8211F ATA133 controller");
+ ctlr->chipinit = ata_ite_chipinit;
+ return 0;
if (pci_get_devid(dev) == ATA_IT8212F) {
device_set_desc(dev, "ITE IT8212F ATA133 controller");
ctlr->chipinit = ata_ite_chipinit;
Index: sys/dev/ata/ata-pci.h
===================================================================
RCS file: /home/ncvs/src/sys/dev/ata/ata-pci.h,v
retrieving revision 1.49
diff -b -u -p -r1.49 ata-pci.h
--- sys/dev/ata/ata-pci.h 8 Jun 2005 20:02:55 -0000 1.49
+++ sys/dev/ata/ata-pci.h 2 Aug 2005 05:06:56 -0000
@@ -149,6 +149,7 @@ struct ata_connect_task {
#define ATA_I31244 0x32008086
#define ATA_ITE_ID 0x1283
+#define ATA_IT8211F 0x82111283
#define ATA_IT8212F 0x82121283
#define ATA_MICRON_ID 0x1042
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1d6d20bc05080122207b5f172e>
