From 0f921e0992f543c4aafd5604a99a6edaa059ff36 Mon Sep 17 00:00:00 2001 From: jhb Date: Fri, 12 May 2006 05:04:46 +0000 Subject: Remove various bits of conditional Alpha code and fixup a few comments. --- sys/dev/ata/ata-all.c | 3 --- sys/dev/ata/ata-pci.c | 20 -------------------- 2 files changed, 23 deletions(-) (limited to 'sys/dev/ata') diff --git a/sys/dev/ata/ata-all.c b/sys/dev/ata/ata-all.c index e9cffe1..d76b11b 100644 --- a/sys/dev/ata/ata-all.c +++ b/sys/dev/ata/ata-all.c @@ -47,9 +47,6 @@ __FBSDID("$FreeBSD$"); #include #include #include -#ifdef __alpha__ -#include -#endif #include #include diff --git a/sys/dev/ata/ata-pci.c b/sys/dev/ata/ata-pci.c index 38d3c06..e322757 100644 --- a/sys/dev/ata/ata-pci.c +++ b/sys/dev/ata/ata-pci.c @@ -42,9 +42,6 @@ __FBSDID("$FreeBSD$"); #include #include #include -#ifdef __alpha__ -#include -#endif #include #include #include @@ -288,14 +285,10 @@ ata_pci_alloc_resource(device_t dev, device_t child, int type, int *rid, } if (type == SYS_RES_IRQ && *rid == ATA_IRQ_RID) { if (ata_legacy(dev)) { -#ifdef __alpha__ - res = alpha_platform_alloc_ide_intr(unit); -#else int irq = (unit == 0 ? 14 : 15); res = BUS_ALLOC_RESOURCE(device_get_parent(dev), child, SYS_RES_IRQ, rid, irq, irq, 1, flags); -#endif } else res = controller->r_irq; @@ -331,12 +324,8 @@ ata_pci_release_resource(device_t dev, device_t child, int type, int rid, return ENOENT; if (ata_legacy(dev)) { -#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); -#endif } else return 0; @@ -350,13 +339,8 @@ ata_pci_setup_intr(device_t dev, device_t child, struct resource *irq, void **cookiep) { if (ata_legacy(dev)) { -#ifdef __alpha__ - return alpha_platform_setup_ide_intr(child, irq, function, argument, - cookiep); -#else return BUS_SETUP_INTR(device_get_parent(dev), child, irq, flags, function, argument, cookiep); -#endif } else { struct ata_pci_controller *controller = device_get_softc(dev); @@ -374,11 +358,7 @@ ata_pci_teardown_intr(device_t dev, device_t child, struct resource *irq, void *cookie) { if (ata_legacy(dev)) { -#ifdef __alpha__ - return alpha_platform_teardown_ide_intr(child, irq, cookie); -#else return BUS_TEARDOWN_INTR(device_get_parent(dev), child, irq, cookie); -#endif } else { struct ata_pci_controller *controller = device_get_softc(dev); -- cgit v1.1