acpi_ec.c (227309) | acpi_ec.c (231161) |
---|---|
1/*- 2 * Copyright (c) 2003-2007 Nate Lawson 3 * Copyright (c) 2000 Michael Smith 4 * Copyright (c) 2000 BSDi 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 13 unchanged lines hidden (view full) --- 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 */ 28 29#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2003-2007 Nate Lawson 3 * Copyright (c) 2000 Michael Smith 4 * Copyright (c) 2000 BSDi 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 13 unchanged lines hidden (view full) --- 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 */ 28 29#include <sys/cdefs.h> |
30__FBSDID("$FreeBSD: head/sys/dev/acpica/acpi_ec.c 227309 2011-11-07 15:43:11Z ed $"); | 30__FBSDID("$FreeBSD: head/sys/dev/acpica/acpi_ec.c 231161 2012-02-07 20:54:44Z jkim $"); |
31 32#include "opt_acpi.h" 33#include <sys/param.h> 34#include <sys/kernel.h> 35#include <sys/bus.h> 36#include <sys/lock.h> 37#include <sys/malloc.h> 38#include <sys/module.h> --- 251 unchanged lines hidden (view full) --- 290 status = AcpiGetTable(ACPI_SIG_ECDT, 1, (ACPI_TABLE_HEADER **)&ecdt); 291 if (ACPI_FAILURE(status) || 292 ecdt->Control.BitWidth != 8 || 293 ecdt->Data.BitWidth != 8) { 294 return; 295 } 296 297 /* Create the child device with the given unit number. */ | 31 32#include "opt_acpi.h" 33#include <sys/param.h> 34#include <sys/kernel.h> 35#include <sys/bus.h> 36#include <sys/lock.h> 37#include <sys/malloc.h> 38#include <sys/module.h> --- 251 unchanged lines hidden (view full) --- 290 status = AcpiGetTable(ACPI_SIG_ECDT, 1, (ACPI_TABLE_HEADER **)&ecdt); 291 if (ACPI_FAILURE(status) || 292 ecdt->Control.BitWidth != 8 || 293 ecdt->Data.BitWidth != 8) { 294 return; 295 } 296 297 /* Create the child device with the given unit number. */ |
298 child = BUS_ADD_CHILD(parent, 0, "acpi_ec", ecdt->Uid); | 298 child = BUS_ADD_CHILD(parent, 3, "acpi_ec", ecdt->Uid); |
299 if (child == NULL) { 300 printf("%s: can't add child\n", __func__); 301 return; 302 } 303 304 /* Find and save the ACPI handle for this device. */ 305 status = AcpiGetHandle(NULL, ecdt->Id, &h); 306 if (ACPI_FAILURE(status)) { --- 718 unchanged lines hidden --- | 299 if (child == NULL) { 300 printf("%s: can't add child\n", __func__); 301 return; 302 } 303 304 /* Find and save the ACPI handle for this device. */ 305 status = AcpiGetHandle(NULL, ecdt->Id, &h); 306 if (ACPI_FAILURE(status)) { --- 718 unchanged lines hidden --- |