diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-07-21 15:07:41 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-07-21 15:07:41 +0000 |
commit | 104e86c5743e8304b65c89f63fc9a8e1f04bc61a (patch) | |
tree | 5b1d3d45da5b58ed91ecdf2493aa5f6bdb788ed3 /sys/dev/acpi/dsdt.c | |
parent | 0073d5158b53d07733fbde3bf18437ad43a0f25d (diff) |
clean up a pile of prototypes and shred some macros which were just covering
for ones everyone knows better
Diffstat (limited to 'sys/dev/acpi/dsdt.c')
-rw-r--r-- | sys/dev/acpi/dsdt.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/sys/dev/acpi/dsdt.c b/sys/dev/acpi/dsdt.c index f690b152aa5..3c09f9f3467 100644 --- a/sys/dev/acpi/dsdt.c +++ b/sys/dev/acpi/dsdt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dsdt.c,v 1.169 2010/07/20 12:14:10 deraadt Exp $ */ +/* $OpenBSD: dsdt.c,v 1.170 2010/07/21 15:07:40 deraadt Exp $ */ /* * Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org> * @@ -47,7 +47,8 @@ #define AML_INTSTRLEN 16 #define AML_NAMESEG_LEN 4 -struct acpi_q *acpi_maptable(struct acpi_softc *sc, paddr_t, const char *, const char *, +struct acpi_q *acpi_maptable(struct acpi_softc *sc, paddr_t, + const char *, const char *, const char *, int); struct aml_scope *aml_load(struct acpi_softc *, struct aml_scope *, struct aml_value *, struct aml_value *); @@ -69,8 +70,8 @@ int aml_msb(u_int64_t); int aml_tstbit(const u_int8_t *, int); void aml_setbit(u_int8_t *, int, int); -void aml_xaddref(struct aml_value *, const char *); -void aml_xdelref(struct aml_value **, const char *); +void aml_xaddref(struct aml_value *, const char *); +void aml_xdelref(struct aml_value **, const char *); void aml_bufcpy(void *, int, const void *, int, int); @@ -581,7 +582,8 @@ aml_notify_dev(const char *pnpid, int notify_value) pdata->cbproc(pdata->node, notify_value, pdata->cbarg); } -void acpi_poll_notify(void) +void +acpi_poll_notify(void) { struct aml_notify_data *pdata = NULL; @@ -1565,10 +1567,10 @@ aml_print_resource(union acpi_resource *crs, void *arg) case LR_EXTIRQ: printf("extirq\tflags:%.2x len:%.2x irq:%.4x\n", crs->lr_extirq.flags, crs->lr_extirq.irq_count, - aml_letohost32(crs->lr_extirq.irq[0])); + letoh32(crs->lr_extirq.irq[0])); break; case SR_IRQ: - printf("irq\t%.4x %.2x\n", aml_letohost16(crs->sr_irq.irq_mask), + printf("irq\t%.4x %.2x\n", letoh16(crs->sr_irq.irq_mask), crs->sr_irq.irq_flags); break; case SR_DMA: |