summaryrefslogtreecommitdiffstats
path: root/sys/dev/asmc
diff options
context:
space:
mode:
authorrpaulo <rpaulo@FreeBSD.org>2008-04-07 11:38:42 +0000
committerrpaulo <rpaulo@FreeBSD.org>2008-04-07 11:38:42 +0000
commitaef67c0d53abe10023b22bcdfaeac2448a8c22d5 (patch)
tree7d26adc39ce10b85be9d79e15ba241e0378cab1b /sys/dev/asmc
parente998ecd5670f4eba08e3e7ea98be9331cb7deef6 (diff)
downloadFreeBSD-src-aef67c0d53abe10023b22bcdfaeac2448a8c22d5.zip
FreeBSD-src-aef67c0d53abe10023b22bcdfaeac2448a8c22d5.tar.gz
"Prettyfy" numbers in hexadecimal. No functional change.
Diffstat (limited to 'sys/dev/asmc')
-rw-r--r--sys/dev/asmc/asmcvar.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/asmc/asmcvar.h b/sys/dev/asmc/asmcvar.h
index baee9c9..ee5fbfd 100644
--- a/sys/dev/asmc/asmcvar.h
+++ b/sys/dev/asmc/asmcvar.h
@@ -56,7 +56,7 @@ struct asmc_softc {
*/
#define ASMC_DATAPORT_READ(sc) bus_read_1(sc->sc_ioport, 0x00)
#define ASMC_DATAPORT_WRITE(sc, val) \
- bus_write_1(sc->sc_ioport, 0, val)
+ bus_write_1(sc->sc_ioport, 0x00, val)
#define ASMC_STATUS_MASK 0x0f
/*
@@ -64,7 +64,7 @@ struct asmc_softc {
*/
#define ASMC_CMDPORT_READ(sc) bus_read_1(sc->sc_ioport, 0x04)
#define ASMC_CMDPORT_WRITE(sc, val) \
- bus_write_1(sc->sc_ioport, 4, val)
+ bus_write_1(sc->sc_ioport, 0x04, val)
#define ASMC_CMDREAD 0x10
#define ASMC_CMDWRITE 0x11
OpenPOWER on IntegriCloud