View | Details | Raw Unified | Return to bug 224096
Collapse All | Expand All

(-)sys/dev/acpica/acpi_resource.c.patch (+18 lines)
Lines 35-40 Link Here
35
#include <sys/limits.h>
35
#include <sys/limits.h>
36
#include <sys/malloc.h>
36
#include <sys/malloc.h>
37
#include <sys/module.h>
37
#include <sys/module.h>
38
#include <sys/reboot.h>
38
39
39
#include <machine/bus.h>
40
#include <machine/bus.h>
40
#include <machine/resource.h>
41
#include <machine/resource.h>
Lines 525-530 Link Here
525
526
526
    if (cp == NULL)
527
    if (cp == NULL)
527
	return;
528
	return;
529
530
    /*
531
     * XXX: Some BIOSes contain buggy _CRS entries where fixed I/O
532
     * ranges are defined like relocatable ones.  Therefore, we treat
533
     * these just like fixed I/O ports, so device drivers may allocate
534
     * them.
535
     */
536
    if (high == (low + length)) {
537
	if (boothowto & RB_VERBOSE) {
538
	    device_printf(dev,
539
		"BIOS bug: _CRS has fixed I/O port range defined as relocatable\n");
540
	}
541
542
	bus_set_resource(dev, SYS_RES_IOPORT, cp->ar_nio++, low, length);
543
	return;
544
    }
545
528
    device_printf(dev, "I/O range not supported\n");
546
    device_printf(dev, "I/O range not supported\n");
529
}
547
}
530
548

Return to bug 224096