diff options
author | Thorsten Lockert <tholo@cvs.openbsd.org> | 2005-06-02 20:09:40 +0000 |
---|---|---|
committer | Thorsten Lockert <tholo@cvs.openbsd.org> | 2005-06-02 20:09:40 +0000 |
commit | c2b861c0e32dd295ee7538db6b2aac4dd7c87de2 (patch) | |
tree | 7da2e9ae4792b3d3765f32971ba6c6c0ad4de685 /sys/arch/amd64/include/conf.h | |
parent | 204533b59784a2ed890ea3c6aad96531b3989704 (diff) |
Start on a basic ACPI framework -- does not do much more than read out the
ACPI tables into kernel memory and attach ACPI and HPET timers currently.
In order to test this code, enabling the devices in GENERIC as well as
the ACPI_ENABLE option is needed. This code does not do any thermal
control yet, so this should be done with care depending on the platform.
In the tree so more people can contribute to making this more fully
featured.
Ok niklas@ grange@ tedu@
Diffstat (limited to 'sys/arch/amd64/include/conf.h')
-rw-r--r-- | sys/arch/amd64/include/conf.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/arch/amd64/include/conf.h b/sys/arch/amd64/include/conf.h index 0eeee30a029..688c8eda04d 100644 --- a/sys/arch/amd64/include/conf.h +++ b/sys/arch/amd64/include/conf.h @@ -1,4 +1,4 @@ -/* $OpenBSD: conf.h,v 1.1 2004/01/28 01:39:39 mickey Exp $ */ +/* $OpenBSD: conf.h,v 1.2 2005/06/02 20:09:39 tholo Exp $ */ /* $NetBSD: conf.h,v 1.2 1996/05/05 19:28:34 christos Exp $ */ /* @@ -43,3 +43,10 @@ cdev_decl(spkr); #define biosselect seltrue cdev_decl(bios); + +#define cdev_acpi_init(c,n) {\ + dev_init(c,n,open), dev_init(c,n,close), (dev_type_read((*))) enodev, \ + (dev_type_write((*))) enodev, dev_init(c,n,ioctl), \ + (dev_type_stop((*))) enodev, 0, (dev_type_poll((*))) enodev, \ + (dev_type_mmap((*))) enodev, D_KQFILTER, dev_init(c,n,kqfilter) } +cdev_decl(acpi); |