aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ata
diff options
context:
space:
mode:
authorDoug Rabson <dfr@FreeBSD.org>2000-08-28 21:48:13 +0000
committerDoug Rabson <dfr@FreeBSD.org>2000-08-28 21:48:13 +0000
commit21c3015a2483a7dd798e1baab65786a5abe7ed0a (patch)
treea117c5438eb796bf8d29ccd3951677aa5ef43dca /sys/dev/ata
parent5809aaba6742a9ef299b8b86706145105cdcf3e5 (diff)
Notes
Diffstat (limited to 'sys/dev/ata')
-rw-r--r--sys/dev/ata/ata-all.c2
-rw-r--r--sys/dev/ata/ata-disk.c1
-rw-r--r--sys/dev/ata/ata-dma.c1
-rw-r--r--sys/dev/ata/atapi-all.c1
4 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/ata/ata-all.c b/sys/dev/ata/ata-all.c
index cbb5a347cee2b..fc89297794fbe 100644
--- a/sys/dev/ata/ata-all.c
+++ b/sys/dev/ata/ata-all.c
@@ -519,7 +519,7 @@ ata_pci_alloc_resource(device_t dev, device_t child, int type, int *rid,
{
struct ata_pci_softc *sc = device_get_softc(dev);
int masterdev = pci_get_progif(dev) & PCIP_STORAGE_IDE_MASTERDEV;
- int unit = (int)device_get_ivars(child);
+ int unit = (intptr_t)device_get_ivars(child);
int myrid;
if (type == SYS_RES_IOPORT) {
diff --git a/sys/dev/ata/ata-disk.c b/sys/dev/ata/ata-disk.c
index e0f89c688df5d..86d945c3b869b 100644
--- a/sys/dev/ata/ata-disk.c
+++ b/sys/dev/ata/ata-disk.c
@@ -48,6 +48,7 @@
#include <vm/vm_object.h>
#include <machine/clock.h>
#include <machine/md_var.h>
+#include <machine/bus.h>
#include <dev/ata/ata-all.h>
#include <dev/ata/ata-disk.h>
diff --git a/sys/dev/ata/ata-dma.c b/sys/dev/ata/ata-dma.c
index ad542024b0a18..838495d280809 100644
--- a/sys/dev/ata/ata-dma.c
+++ b/sys/dev/ata/ata-dma.c
@@ -43,6 +43,7 @@
#endif
#include <dev/ata/ata-all.h>
#include <dev/ata/ata-disk.h>
+#include <machine/bus.h>
#if NPCI > 0
diff --git a/sys/dev/ata/atapi-all.c b/sys/dev/ata/atapi-all.c
index 1862ccff20858..b8ee8ae7e5cd0 100644
--- a/sys/dev/ata/atapi-all.c
+++ b/sys/dev/ata/atapi-all.c
@@ -39,6 +39,7 @@
#include <sys/bus.h>
#include <sys/malloc.h>
#include <machine/clock.h>
+#include <machine/bus.h>
#include <dev/ata/ata-all.h>
#include <dev/ata/atapi-all.h>