ATA driver patch for IT8211F
Jia-Shiun Li
jiashiun at gmail.com
Tue Aug 2 05:20:44 GMT 2005
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
-------------- next part --------------
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
More information about the freebsd-current
mailing list