summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/dev/ata/chipsets/ata-ite.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/ata/chipsets/ata-ite.c b/sys/dev/ata/chipsets/ata-ite.c
index fe6ff21..3f890fd 100644
--- a/sys/dev/ata/chipsets/ata-ite.c
+++ b/sys/dev/ata/chipsets/ata-ite.c
@@ -105,10 +105,10 @@ ata_ite_chipinit(device_t dev)
ctlr->setmode = ata_ite_821x_setmode;
/* No timing restrictions initally. */
- ctlr->chipset_data = (void *)0;
+ ctlr->chipset_data = NULL;
}
ctlr->ch_attach = ata_ite_ch_attach;
- return 0;
+ return (0);
}
static int
@@ -119,6 +119,9 @@ ata_ite_ch_attach(device_t dev)
error = ata_pci_ch_attach(dev);
ch->flags |= ATA_CHECKS_CABLE;
+#ifdef ATA_CAM
+ ch->flags |= ATA_NO_ATAPI_DMA;
+#endif
return (error);
}
OpenPOWER on IntegriCloud