diff options
author | iwasaki <iwasaki@FreeBSD.org> | 2000-12-24 19:12:10 +0000 |
---|---|---|
committer | iwasaki <iwasaki@FreeBSD.org> | 2000-12-24 19:12:10 +0000 |
commit | fed3d6603d9a67e06f9dc0862ce01639796041bf (patch) | |
tree | 74a6d218c1851b7235c485357b9e50c3ac2835ee /sys/dev/acpica/acpiio.h | |
parent | 8921eca1c09551a049f519d9591eca16ed610dcb (diff) | |
download | FreeBSD-src-fed3d6603d9a67e06f9dc0862ce01639796041bf.zip FreeBSD-src-fed3d6603d9a67e06f9dc0862ce01639796041bf.tar.gz |
Add ioctls to acpi_cmbat and acpi_acad. These use mike's acpi_register_ioctl().
Fix wrong AML method calling in acpi_cmbat.
Diffstat (limited to 'sys/dev/acpica/acpiio.h')
-rw-r--r-- | sys/dev/acpica/acpiio.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/dev/acpica/acpiio.h b/sys/dev/acpica/acpiio.h index fec9dc2..d98ffed 100644 --- a/sys/dev/acpica/acpiio.h +++ b/sys/dev/acpica/acpiio.h @@ -58,6 +58,18 @@ struct acpi_bst { u_int32_t volt; /* Present Voltage */ }; +union acpi_cmbat_ioctl_arg { + int unit; + struct acpi_bif bif; + struct acpi_bst bst; +}; + +#define ACPIIO_CMBAT_GET_UNITS _IOR('B', 1, int) +#define ACPIIO_CMBAT_GET_BIF _IOWR('B', 2, union acpi_cmbat_ioctl_arg) +#define ACPIIO_CMBAT_GET_BST _IOWR('B', 3, union acpi_cmbat_ioctl_arg) + +#define ACPIIO_ACAD_GET_STATUS _IOR('A', 1, int) + #ifdef _KERNEL extern int acpi_register_ioctl(u_long cmd, int (* fn)(u_long cmd, caddr_t addr, void *arg), void *arg); extern void acpi_deregister_ioctl(u_long cmd, int (* fn)(u_long cmd, caddr_t addr, void *arg)); |