Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/acpi function argument changed width
details: https://anonhg.NetBSD.org/src/rev/a64d417ea52d
branches: trunk
changeset: 325506:a64d417ea52d
user: christos <christos%NetBSD.org@localhost>
date: Fri Dec 27 18:52:16 2013 +0000
description:
function argument changed width
diffstat:
sys/dev/acpi/acpi_wdrt.c | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
diffs (74 lines):
diff -r 6a7bb92b7d9e -r a64d417ea52d sys/dev/acpi/acpi_wdrt.c
--- a/sys/dev/acpi/acpi_wdrt.c Fri Dec 27 18:51:44 2013 +0000
+++ b/sys/dev/acpi/acpi_wdrt.c Fri Dec 27 18:52:16 2013 +0000
@@ -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@localhost>
@@ -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 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_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 @@
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 @@
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 @@
}
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 @@
}
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;
Home |
Main Index |
Thread Index |
Old Index