acpi_wmi.c (212457) | acpi_wmi.c (212762) |
---|---|
1/*- 2 * Copyright (c) 2009 Michael Gmelin <freebsd@grem.de> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2009 Michael Gmelin <freebsd@grem.de> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> |
28__FBSDID("$FreeBSD: head/sys/dev/acpi_support/acpi_wmi.c 212457 2010-09-11 08:09:14Z avg $"); | 28__FBSDID("$FreeBSD: head/sys/dev/acpi_support/acpi_wmi.c 212762 2010-09-16 20:11:40Z jkim $"); |
29 30/* 31 * Driver for acpi-wmi mapping, provides an interface for vendor specific 32 * implementations (e.g. HP and Acer laptops). 33 * Inspired by the ACPI-WMI mapping driver (c) 2008-2008 Carlos Corbacho which 34 * implements this functionality for Linux. 35 * 36 * WMI and ACPI: http://www.microsoft.com/whdc/system/pnppwr/wmi/wmi-acpi.mspx --- 160 unchanged lines hidden (view full) --- 197 acpi_wmi_methods, 198 sizeof(struct acpi_wmi_softc), 199}; 200 201static devclass_t acpi_wmi_devclass; 202DRIVER_MODULE(acpi_wmi, acpi, acpi_wmi_driver, acpi_wmi_devclass, 0, 0); 203MODULE_VERSION(acpi_wmi, 1); 204MODULE_DEPEND(acpi_wmi, acpi, 1, 1, 1); | 29 30/* 31 * Driver for acpi-wmi mapping, provides an interface for vendor specific 32 * implementations (e.g. HP and Acer laptops). 33 * Inspired by the ACPI-WMI mapping driver (c) 2008-2008 Carlos Corbacho which 34 * implements this functionality for Linux. 35 * 36 * WMI and ACPI: http://www.microsoft.com/whdc/system/pnppwr/wmi/wmi-acpi.mspx --- 160 unchanged lines hidden (view full) --- 197 acpi_wmi_methods, 198 sizeof(struct acpi_wmi_softc), 199}; 200 201static devclass_t acpi_wmi_devclass; 202DRIVER_MODULE(acpi_wmi, acpi, acpi_wmi_driver, acpi_wmi_devclass, 0, 0); 203MODULE_VERSION(acpi_wmi, 1); 204MODULE_DEPEND(acpi_wmi, acpi, 1, 1, 1); |
205static char *wmi_ids[] = {"PNP0C14", "PNP0c14", NULL}; | 205static char *wmi_ids[] = {"PNP0C14", NULL}; |
206 207/* 208 * Probe for the PNP0C14 ACPI node 209 */ 210static int 211acpi_wmi_probe(device_t dev) 212{ 213 if (acpi_disabled("wmi") || --- 804 unchanged lines hidden --- | 206 207/* 208 * Probe for the PNP0C14 ACPI node 209 */ 210static int 211acpi_wmi_probe(device_t dev) 212{ 213 if (acpi_disabled("wmi") || --- 804 unchanged lines hidden --- |