Deleted Added
full compact
acpivar.h (79387) acpivar.h (80028)
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 79387 2001-07-07 10:20:17Z msmith $
28 * $FreeBSD: head/sys/dev/acpica/acpivar.h 80028 2001-07-20 06:07:34Z takawata $
29 */
30
31#include "bus_if.h"
32#include <sys/eventhandler.h>
33#include <sys/sysctl.h>
34
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>
37
35extern devclass_t acpi_devclass;
36
37struct acpi_softc {
38 device_t acpi_dev;
39 dev_t acpi_dev_t;
40
41 struct resource *acpi_irq;
42 int acpi_irq_rid;

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

49 struct sysctl_oid *acpi_sysctl_tree;
50#define ACPI_POWER_BUTTON_DEFAULT_SX ACPI_STATE_S5;
51#define ACPI_SLEEP_BUTTON_DEFAULT_SX ACPI_STATE_S1;
52#define ACPI_LID_SWITCH_DEFAULT_SX ACPI_STATE_S1;
53 int acpi_power_button_sx;
54 int acpi_sleep_button_sx;
55 int acpi_lid_switch_sx;
56
38extern devclass_t acpi_devclass;
39
40struct acpi_softc {
41 device_t acpi_dev;
42 dev_t acpi_dev_t;
43
44 struct resource *acpi_irq;
45 int acpi_irq_rid;

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

52 struct sysctl_oid *acpi_sysctl_tree;
53#define ACPI_POWER_BUTTON_DEFAULT_SX ACPI_STATE_S5;
54#define ACPI_SLEEP_BUTTON_DEFAULT_SX ACPI_STATE_S1;
55#define ACPI_LID_SWITCH_DEFAULT_SX ACPI_STATE_S1;
56 int acpi_power_button_sx;
57 int acpi_sleep_button_sx;
58 int acpi_lid_switch_sx;
59
60 bus_dma_tag_t acpi_waketag;
61 bus_dmamap_t acpi_wakemap;
62 vm_offset_t acpi_wakeaddr;
63 vm_offset_t acpi_wakephys;
64
57 struct sysctl_ctx_list acpi_battery_sysctl_ctx;
58 struct sysctl_oid *acpi_battery_sysctl_tree;
59};
60
61struct acpi_device {
62 /* ACPI ivars */
63 ACPI_HANDLE ad_handle;
64 int ad_magic;

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

262 }
263 return(device_get_softc(parent));
264}
265
266extern char *acpi_name(ACPI_HANDLE handle);
267extern int acpi_avoid(ACPI_HANDLE handle);
268extern int acpi_disabled(char *subsys);
269
65 struct sysctl_ctx_list acpi_battery_sysctl_ctx;
66 struct sysctl_oid *acpi_battery_sysctl_tree;
67};
68
69struct acpi_device {
70 /* ACPI ivars */
71 ACPI_HANDLE ad_handle;
72 int ad_magic;

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

270 }
271 return(device_get_softc(parent));
272}
273
274extern char *acpi_name(ACPI_HANDLE handle);
275extern int acpi_avoid(ACPI_HANDLE handle);
276extern int acpi_disabled(char *subsys);
277
278extern void acpi_install_wakeup_handler(struct acpi_softc *sc);
279extern int acpi_sleep_machdep(struct acpi_softc *sc, int state);
280
270/*
271 * Battery Abstruction.
272 */
273struct acpi_battinfo;
274
275extern int acpi_battery_register(int, int);
276extern int acpi_cmbat_get_battinfo(int, struct acpi_battinfo *);
277

--- 14 unchanged lines hidden ---
281/*
282 * Battery Abstruction.
283 */
284struct acpi_battinfo;
285
286extern int acpi_battery_register(int, int);
287extern int acpi_cmbat_get_battinfo(int, struct acpi_battinfo *);
288

--- 14 unchanged lines hidden ---