diff options
| author | christos <christos@NetBSD.org> | 2013-12-27 18:52:16 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2013-12-27 18:52:16 +0000 |
| commit | f679fe68989faf43249456232ae1cddb91527a4d (patch) | |
| tree | 83873d9584c32079e5a2e1b276b00a36aff431a3 /sys/dev | |
| parent | 7dadb2071a8da8a44df58482eec6e18618da1def (diff) | |
function argument changed width
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/acpi/acpi_wdrt.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/sys/dev/acpi/acpi_wdrt.c b/sys/dev/acpi/acpi_wdrt.c index cb2700ed330..7158952d20c 100644 --- a/sys/dev/acpi/acpi_wdrt.c +++ b/sys/dev/acpi/acpi_wdrt.c @@ -1,4 +1,4 @@ -/* $NetBSD: acpi_wdrt.c,v 1.2 2011/01/17 17:32:11 jmcneill Exp $ */ +/* $NetBSD: acpi_wdrt.c,v 1.3 2013/12/27 18:52:16 christos Exp $ */ /* * Copyright (c) 2011 Jared D. McNeill <jmcneill@invisible.ca> @@ -35,7 +35,7 @@ /* #define ACPIWDRT_DEBUG */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: acpi_wdrt.c,v 1.2 2011/01/17 17:32:11 jmcneill Exp $"); +__KERNEL_RCSID(0, "$NetBSD: acpi_wdrt.c,v 1.3 2013/12/27 18:52:16 christos Exp $"); #include <sys/param.h> #include <sys/device.h> @@ -100,8 +100,8 @@ static bool acpi_wdrt_suspend(device_t, const pmf_qual_t *); static int acpi_wdrt_setmode(struct sysmon_wdog *); static int acpi_wdrt_tickle(struct sysmon_wdog *); -static ACPI_STATUS acpi_wdrt_read_control(struct acpi_wdrt_softc *, uint32_t *); -static ACPI_STATUS acpi_wdrt_write_control(struct acpi_wdrt_softc *, uint32_t); +static ACPI_STATUS acpi_wdrt_read_control(struct acpi_wdrt_softc *, uint64_t *); +static ACPI_STATUS acpi_wdrt_write_control(struct acpi_wdrt_softc *, uint64_t); #if 0 static ACPI_STATUS acpi_wdrt_read_count(struct acpi_wdrt_softc *, uint32_t *); #endif @@ -121,7 +121,7 @@ acpi_wdrt_match(device_t parent, cfdata_t match, void *opaque) { ACPI_TABLE_WDRT *wdrt; ACPI_STATUS rv; - uint32_t val; + uint64_t val; rv = AcpiGetTable(ACPI_SIG_WDRT, 1, (ACPI_TABLE_HEADER **)&wdrt); if (ACPI_FAILURE(rv)) @@ -266,7 +266,7 @@ static int acpi_wdrt_setmode(struct sysmon_wdog *smw) { struct acpi_wdrt_softc *sc = smw->smw_cookie; - uint32_t val; + uint64_t val; DPRINTF(("%s: %s mode 0x%x period %u\n", device_xname(sc->sc_dev), __func__, smw->smw_mode, smw->smw_period)); @@ -314,7 +314,7 @@ static int acpi_wdrt_tickle(struct sysmon_wdog *smw) { struct acpi_wdrt_softc *sc = smw->smw_cookie; - uint32_t val; + uint64_t val; DPRINTF(("%s: %s mode 0x%x period %u\n", device_xname(sc->sc_dev), __func__, smw->smw_mode, smw->smw_period)); @@ -335,7 +335,7 @@ acpi_wdrt_tickle(struct sysmon_wdog *smw) } static ACPI_STATUS -acpi_wdrt_read_control(struct acpi_wdrt_softc *sc, uint32_t *val) +acpi_wdrt_read_control(struct acpi_wdrt_softc *sc, uint64_t *val) { ACPI_STATUS rv; @@ -353,7 +353,7 @@ acpi_wdrt_read_control(struct acpi_wdrt_softc *sc, uint32_t *val) } static ACPI_STATUS -acpi_wdrt_write_control(struct acpi_wdrt_softc *sc, uint32_t val) +acpi_wdrt_write_control(struct acpi_wdrt_softc *sc, uint64_t val) { ACPI_STATUS rv; |
