Minor style issues.
This commit is contained in:
parent
202c735f35
commit
476daaec24
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=129102
@ -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;
|
||||
|
@ -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",
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user