Deleted Added
full compact
27c27
< * $FreeBSD: head/sys/dev/acpica/acpi_pcib_acpi.c 126560 2004-03-03 18:34:42Z njl $
---
> * $FreeBSD: head/sys/dev/acpica/acpi_pcib_acpi.c 128058 2004-04-09 15:44:34Z imp $
72a73,76
> static struct resource *acpi_pcib_acpi_alloc_resource(device_t dev,
> device_t child, int type, int *rid,
> u_long start, u_long end, u_long count,
> u_int flags);
86c90
< DEVMETHOD(bus_alloc_resource, bus_generic_alloc_resource),
---
> DEVMETHOD(bus_alloc_resource, acpi_pcib_acpi_alloc_resource),
291a296,312
>
> struct resource *
> acpi_pcib_acpi_alloc_resource(device_t dev, device_t child, int type, int *rid,
> u_long start, u_long end, u_long count, u_int flags)
> {
> /*
> * If no memory preference is given, use upper 256MB slot most
> * bioses use for their memory window. Typically other bridges
> * before us get in the way to assert their preferences on memory.
> * Hardcoding like this sucks, so a more MD/MI way needs to be
> * found to do it.
> */
> if (type == SYS_RES_MEMORY && start == 0UL && end == ~0UL)
> start = 0xf0000000;
> return (bus_generic_alloc_resource(dev, child, type, rid, start, end,
> count, flags));
> }