Minor style issues.

This commit is contained in:
des 2004-05-10 21:18:03 +00:00
parent 95d16c325a
commit 31cd8c7867
3 changed files with 6 additions and 6 deletions

View File

@ -684,7 +684,7 @@ acpi_handle_rsdt(struct ACPIsdt *rsdp)
}
struct ACPIsdt *
sdt_load_devmem()
sdt_load_devmem(void)
{
struct ACPIrsdp *rp;
struct ACPIsdt *rsdp;

View File

@ -96,7 +96,7 @@ acpi_user_find_mapping(vm_offset_t pa, size_t size)
* Public interfaces
*/
struct ACPIrsdp *
acpi_find_rsd_ptr()
acpi_find_rsd_ptr(void)
{
struct ACPIrsdp rsdp;
u_long addr;
@ -106,7 +106,7 @@ acpi_find_rsd_ptr()
/* Attempt to use sysctl to find RSD PTR record */
len = sizeof(addr);
if (sysctlbyname(machdep_acpi_root, &addr, &len, NULL, 0) == 0) {
if (sysctlbyname(machdep_acpi_root, &addr, &len, NULL, 0) == 0) {
pread(acpi_mem_fd, &rsdp, sizeof(rsdp), addr);
if (memcmp(rsdp.signature, "RSD PTR ", 8) != 0)
errx(1, "sysctl %s does not point to RSDP",

View File

@ -306,14 +306,14 @@ struct ACPIsdt *dsdt_load_file(char *);
void dsdt_save_file(char *, struct ACPIsdt *);
/* Print out as many fixed tables as possible, given the RSD PTR */
void sdt_print_all(struct ACPIsdt *);
void sdt_print_all(struct ACPIsdt *);
/* Disassemble the AML in the DSDT */
void aml_disassemble(struct ACPIsdt *);
void aml_disassemble(struct ACPIsdt *);
/* Routines for accessing tables in physical memory */
struct ACPIrsdp *acpi_find_rsd_ptr(void);
void * acpi_map_physical(vm_offset_t, size_t);
void *acpi_map_physical(vm_offset_t, size_t);
struct ACPIsdt *sdt_from_rsdt(struct ACPIsdt *, const char *);
struct ACPIsdt *dsdt_from_fadt(struct FADTbody *);
int acpi_checksum(void *, size_t);