aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDoug Rabson <dfr@FreeBSD.org>2000-09-29 16:50:31 +0000
committerDoug Rabson <dfr@FreeBSD.org>2000-09-29 16:50:31 +0000
commitf6174366bf17893bb4be52560f436a6dcd8e2f12 (patch)
tree1b736d78c7347a40410b8c044e63032cecb8a385 /sys
parentb7da7f63eb3caab5a37f9faaa0114b7896db693e (diff)
downloadsrc-f6174366bf17893bb4be52560f436a6dcd8e2f12.tar.gz
src-f6174366bf17893bb4be52560f436a6dcd8e2f12.zip
Make the alpha hacks dependant on __alpha__ instead of !__i386__.
Notes
Notes: svn path=/head/; revision=66461
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ata/ata-all.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/sys/dev/ata/ata-all.c b/sys/dev/ata/ata-all.c
index e8b66aa01e19..c79fba22c51a 100644
--- a/sys/dev/ata/ata-all.c
+++ b/sys/dev/ata/ata-all.c
@@ -583,14 +583,14 @@ ata_pci_alloc_resource(device_t dev, device_t child, int type, int *rid,
return 0;
if (masterdev) {
-#ifdef __i386__
+#ifdef __alpha__
+ return alpha_platform_alloc_ide_intr(unit);
+#else
int irq = (unit == 0 ? 14 : 15);
return BUS_ALLOC_RESOURCE(device_get_parent(dev), child,
SYS_RES_IRQ, rid,
irq, irq, 1, flags & ~RF_SHAREABLE);
-#else
- return alpha_platform_alloc_ide_intr(unit);
#endif
} else {
/* primary and secondary channels share the same interrupt */
@@ -650,11 +650,11 @@ ata_pci_release_resource(device_t dev, device_t child, int type, int rid,
return ENOENT;
if (masterdev) {
-#ifdef __i386__
+#ifdef __alpha__
+ return alpha_platform_release_ide_intr(unit, r);
+#else
return BUS_RELEASE_RESOURCE(device_get_parent(dev),
child, SYS_RES_IRQ, rid, r);
-#else
- return alpha_platform_release_ide_intr(unit, r);
#endif
}
else {
@@ -674,11 +674,11 @@ ata_pci_setup_intr(device_t dev, device_t child, struct resource *irq,
void **cookiep)
{
if (pci_get_progif(dev) & PCIP_STORAGE_IDE_MASTERDEV) {
-#ifdef __i386__
+#ifdef __alpha__
+ return alpha_platform_setup_ide_intr(irq, intr, arg, cookiep);
+#else
return BUS_SETUP_INTR(device_get_parent(dev), child, irq,
flags, intr, arg, cookiep);
-#else
- return alpha_platform_setup_ide_intr(irq, intr, arg, cookiep);
#endif
}
else
@@ -691,10 +691,10 @@ ata_pci_teardown_intr(device_t dev, device_t child, struct resource *irq,
void *cookie)
{
if (pci_get_progif(dev) & PCIP_STORAGE_IDE_MASTERDEV) {
-#ifdef __i386__
- return BUS_TEARDOWN_INTR(device_get_parent(dev), child, irq, cookie);
-#else
+#ifdef __alpha__
return alpha_platform_teardown_ide_intr(irq, cookie);
+#else
+ return BUS_TEARDOWN_INTR(device_get_parent(dev), child, irq, cookie);
#endif
}
else