summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/acpidump/acpidump.c24
1 files changed, 22 insertions, 2 deletions
diff --git a/usr.sbin/acpidump/acpidump.c b/usr.sbin/acpidump/acpidump.c
index 58afa455f5b..df457073b3c 100644
--- a/usr.sbin/acpidump/acpidump.c
+++ b/usr.sbin/acpidump/acpidump.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpidump.c,v 1.7 2010/08/08 14:40:19 jmc Exp $ */
+/* $OpenBSD: acpidump.c,v 1.8 2013/11/12 19:44:26 deraadt Exp $ */
/*
* Copyright (c) 2000 Mitsuru IWASAKI <iwasaki@FreeBSD.org>
* All rights reserved.
@@ -170,6 +170,26 @@ int acpi_mem_fd = -1;
char *aml_dumpfile;
FILE *fhdr;
+int acpi_checksum(void *_p, size_t _length);
+struct acpi_user_mapping *acpi_user_find_mapping(vm_offset_t _pa, size_t _size);
+void *acpi_map_physical(vm_offset_t _pa, size_t _size);
+void acpi_user_init(void);
+struct ACPIrsdp *acpi_find_rsd_ptr(void);
+void acpi_print_string(char *_s, size_t _length);
+void acpi_print_rsd_ptr(struct ACPIrsdp *_rp);
+struct ACPIsdt *acpi_map_sdt(vm_offset_t _pa);
+void aml_dump(struct ACPIsdt *_hdr);
+void acpi_print_sdt(struct ACPIsdt *_sdp);
+void acpi_print_rsdt(struct ACPIsdt *_rsdp);
+void acpi_print_facp(struct FACPbody *_facp);
+void acpi_print_dsdt(struct ACPIsdt *_dsdp);
+void acpi_handle_dsdt(struct ACPIsdt *_dsdp);
+void acpi_handle_facp(struct FACPbody *_facp);
+void acpi_handle_rsdt(struct ACPIsdt *_rsdp);
+void asl_dump_from_devmem(void);
+void usage(void);
+
+
struct ACPIsdt dsdt_header = {
"DSDT", 0, 1, 0, "OEMID", "OEMTBLID", 0x12345678, "CRTR", 0x12345678
};
@@ -236,7 +256,7 @@ acpi_user_init(void)
}
struct ACPIrsdp *
-acpi_find_rsd_ptr()
+acpi_find_rsd_ptr(void)
{
int i;
u_int8_t buf[sizeof(struct ACPIrsdp)];