Deleted Added
full compact
acpivar.h (125526) acpivar.h (125679)
1/*-
2 * Copyright (c) 2000 Mitsuru IWASAKI <iwasaki@jp.freebsd.org>
3 * Copyright (c) 2000 Michael Smith <msmith@freebsd.org>
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

--- 11 unchanged lines hidden (view full) ---

20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
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 *
1/*-
2 * Copyright (c) 2000 Mitsuru IWASAKI <iwasaki@jp.freebsd.org>
3 * Copyright (c) 2000 Michael Smith <msmith@freebsd.org>
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

--- 11 unchanged lines hidden (view full) ---

20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
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 * $FreeBSD: head/sys/dev/acpica/acpivar.h 125526 2004-02-06 19:38:05Z philip $
28 * $FreeBSD: head/sys/dev/acpica/acpivar.h 125679 2004-02-11 02:57:33Z njl $
29 */
30
31#include "bus_if.h"
32#include <sys/eventhandler.h>
33#include <sys/sysctl.h>
34#if __FreeBSD_version >= 500000
35#include <sys/lock.h>
36#include <sys/mutex.h>

--- 183 unchanged lines hidden (view full) ---

220
221extern struct acpi_parse_resource_set acpi_res_parse_set;
222extern ACPI_STATUS acpi_parse_resources(device_t dev, ACPI_HANDLE handle,
223 struct acpi_parse_resource_set *set);
224/* XXX until Intel fix this in their headers, based on NEXT_RESOURCE */
225#define ACPI_RESOURCE_NEXT(Res) (ACPI_RESOURCE *)((UINT8 *)Res + Res->Length)
226
227/* ACPI event handling */
29 */
30
31#include "bus_if.h"
32#include <sys/eventhandler.h>
33#include <sys/sysctl.h>
34#if __FreeBSD_version >= 500000
35#include <sys/lock.h>
36#include <sys/mutex.h>

--- 183 unchanged lines hidden (view full) ---

220
221extern struct acpi_parse_resource_set acpi_res_parse_set;
222extern ACPI_STATUS acpi_parse_resources(device_t dev, ACPI_HANDLE handle,
223 struct acpi_parse_resource_set *set);
224/* XXX until Intel fix this in their headers, based on NEXT_RESOURCE */
225#define ACPI_RESOURCE_NEXT(Res) (ACPI_RESOURCE *)((UINT8 *)Res + Res->Length)
226
227/* ACPI event handling */
228extern UINT32 acpi_eventhandler_power_button_for_sleep(void *context);
229extern UINT32 acpi_eventhandler_power_button_for_wakeup(void *context);
230extern UINT32 acpi_eventhandler_sleep_button_for_sleep(void *context);
231extern UINT32 acpi_eventhandler_sleep_button_for_wakeup(void *context);
228extern UINT32 acpi_event_power_button_sleep(void *context);
229extern UINT32 acpi_event_power_button_wake(void *context);
230extern UINT32 acpi_event_sleep_button_sleep(void *context);
231extern UINT32 acpi_event_sleep_button_wake(void *context);
232
233#define ACPI_EVENT_PRI_FIRST 0
234#define ACPI_EVENT_PRI_DEFAULT 10000
235#define ACPI_EVENT_PRI_LAST 20000
236
237typedef void (*acpi_event_handler_t)(void *, int);
238
239EVENTHANDLER_DECLARE(acpi_sleep_event, acpi_event_handler_t);

--- 76 unchanged lines hidden ---
232
233#define ACPI_EVENT_PRI_FIRST 0
234#define ACPI_EVENT_PRI_DEFAULT 10000
235#define ACPI_EVENT_PRI_LAST 20000
236
237typedef void (*acpi_event_handler_t)(void *, int);
238
239EVENTHANDLER_DECLARE(acpi_sleep_event, acpi_event_handler_t);

--- 76 unchanged lines hidden ---