acpi_pcib.c (225736) | acpi_pcib.c (253426) |
---|---|
1/*- 2 * Copyright (c) 2000 Michael Smith 3 * Copyright (c) 2000 BSDi 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 12 unchanged lines hidden (view full) --- 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 */ 27 28#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2000 Michael Smith 3 * Copyright (c) 2000 BSDi 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 12 unchanged lines hidden (view full) --- 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 */ 27 28#include <sys/cdefs.h> |
29__FBSDID("$FreeBSD: stable/9/sys/dev/acpica/acpi_pcib.c 211430 2010-08-17 15:44:52Z jhb $"); | 29__FBSDID("$FreeBSD: stable/9/sys/dev/acpica/acpi_pcib.c 253426 2013-07-17 14:04:18Z jhb $"); |
30 31#include "opt_acpi.h" 32#include <sys/param.h> 33#include <sys/bus.h> 34#include <sys/malloc.h> 35#include <sys/kernel.h> 36 37#include <contrib/dev/acpica/include/acpi.h> --- 91 unchanged lines hidden (view full) --- 129int 130acpi_pcib_attach(device_t dev, ACPI_BUFFER *prt, int busno) 131{ 132 ACPI_STATUS status; 133 134 ACPI_FUNCTION_TRACE((char *)(uintptr_t)__func__); 135 136 /* | 30 31#include "opt_acpi.h" 32#include <sys/param.h> 33#include <sys/bus.h> 34#include <sys/malloc.h> 35#include <sys/kernel.h> 36 37#include <contrib/dev/acpica/include/acpi.h> --- 91 unchanged lines hidden (view full) --- 129int 130acpi_pcib_attach(device_t dev, ACPI_BUFFER *prt, int busno) 131{ 132 ACPI_STATUS status; 133 134 ACPI_FUNCTION_TRACE((char *)(uintptr_t)__func__); 135 136 /* |
137 * Don't attach if we're not really there. 138 * 139 * XXX: This isn't entirely correct since we may be a PCI bus 140 * on a hot-plug docking station, etc. 141 */ 142 if (!acpi_DeviceIsPresent(dev)) 143 return_VALUE(ENXIO); 144 145 /* | |
146 * Get the PCI interrupt routing table for this bus. If we can't 147 * get it, this is not an error but may reduce functionality. There 148 * are several valid bridges in the field that do not have a _PRT, so 149 * only warn about missing tables if bootverbose is set. 150 */ 151 prt->Length = ACPI_ALLOCATE_BUFFER; 152 status = AcpiGetIrqRoutingTable(acpi_get_handle(dev), prt); 153 if (ACPI_FAILURE(status) && (bootverbose || status != AE_NOT_FOUND)) --- 135 unchanged lines hidden --- | 137 * Get the PCI interrupt routing table for this bus. If we can't 138 * get it, this is not an error but may reduce functionality. There 139 * are several valid bridges in the field that do not have a _PRT, so 140 * only warn about missing tables if bootverbose is set. 141 */ 142 prt->Length = ACPI_ALLOCATE_BUFFER; 143 status = AcpiGetIrqRoutingTable(acpi_get_handle(dev), prt); 144 if (ACPI_FAILURE(status) && (bootverbose || status != AE_NOT_FOUND)) --- 135 unchanged lines hidden --- |