Deleted Added
full compact
acpivar.h (91640) acpivar.h (92739)
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 91640 2002-03-04 18:46:13Z iwasaki $
28 * $FreeBSD: head/sys/dev/acpica/acpivar.h 92739 2002-03-20 02:08:01Z alfred $
29 */
30
31#include "bus_if.h"
32#include <sys/eventhandler.h>
33#include <sys/sysctl.h>
34
35#include <machine/bus.h>
36#include <machine/resource.h>

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

292extern UINT32 acpi_eventhandler_power_button_for_wakeup(void *context);
293extern UINT32 acpi_eventhandler_sleep_button_for_sleep(void *context);
294extern UINT32 acpi_eventhandler_sleep_button_for_wakeup(void *context);
295
296#define ACPI_EVENT_PRI_FIRST 0
297#define ACPI_EVENT_PRI_DEFAULT 10000
298#define ACPI_EVENT_PRI_LAST 20000
299
29 */
30
31#include "bus_if.h"
32#include <sys/eventhandler.h>
33#include <sys/sysctl.h>
34
35#include <machine/bus.h>
36#include <machine/resource.h>

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

292extern UINT32 acpi_eventhandler_power_button_for_wakeup(void *context);
293extern UINT32 acpi_eventhandler_sleep_button_for_sleep(void *context);
294extern UINT32 acpi_eventhandler_sleep_button_for_wakeup(void *context);
295
296#define ACPI_EVENT_PRI_FIRST 0
297#define ACPI_EVENT_PRI_DEFAULT 10000
298#define ACPI_EVENT_PRI_LAST 20000
299
300typedef void (*acpi_event_handler_t) __P((void *, int));
300typedef void (*acpi_event_handler_t)(void *, int);
301
302EVENTHANDLER_DECLARE(acpi_sleep_event, acpi_event_handler_t);
303EVENTHANDLER_DECLARE(acpi_wakeup_event, acpi_event_handler_t);
304
305/*
306 * Device power control.
307 */
308extern ACPI_STATUS acpi_pwr_switch_consumer(ACPI_HANDLE consumer, int state);

--- 59 unchanged lines hidden ---
301
302EVENTHANDLER_DECLARE(acpi_sleep_event, acpi_event_handler_t);
303EVENTHANDLER_DECLARE(acpi_wakeup_event, acpi_event_handler_t);
304
305/*
306 * Device power control.
307 */
308extern ACPI_STATUS acpi_pwr_switch_consumer(ACPI_HANDLE consumer, int state);

--- 59 unchanged lines hidden ---