- Kai Germaschewski: ISDN update (including Makefiles)
[davej-history.git] / drivers / acpi / driver.h
blobea99f4d4814d3ec4b1813766c952410d468bc8ba
1 /*
2 * driver.h - ACPI driver
4 * Copyright (C) 2000 Andrew Henroid
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 #ifndef __DRIVER_H
22 #define __DRIVER_H
24 #include <linux/tqueue.h>
25 #include <linux/wait.h>
26 #include <linux/pm.h>
27 #include <linux/acpi.h>
28 #include <asm/io.h>
30 #define ACPI_MAX_THROTTLE 10
31 #define ACPI_INVALID ~0UL
32 #define ACPI_INFINITE ~0UL
35 * cpu.c
37 int acpi_cpu_init(void);
38 u32 acpi_read_pm_timer(void);
40 extern unsigned long acpi_c2_exit_latency;
41 extern unsigned long acpi_c3_exit_latency;
42 extern unsigned long acpi_c2_enter_latency;
43 extern unsigned long acpi_c3_enter_latency;
46 * driver.c
48 int acpi_run(void (*callback)(void*), void *context);
51 * ec.c
53 int acpi_ec_init(void);
56 * cmbatt.c
58 int acpi_cmbatt_init(void);
61 * sys.c
63 int acpi_sys_init(void);
64 int acpi_enter_sx(acpi_sstate_t state);
66 extern volatile acpi_sstate_t acpi_sleep_state;
69 * table.c
71 extern FADT_DESCRIPTOR acpi_fadt;
73 int acpi_find_and_load_tables(u64 rsdp);
75 #endif /* __DRIVER_H */