summaryrefslogtreecommitdiffstats
path: root/sys/dev/mc146818/mc146818var.h
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2009-12-25 22:53:46 +0000
committermarius <marius@FreeBSD.org>2009-12-25 22:53:46 +0000
commit2b2ab161211ea3caf90b307e431dfe38db75a95e (patch)
tree0e04c69f69869c6c5111bd1952ca8d6da2e21187 /sys/dev/mc146818/mc146818var.h
parentfafe874fa56eac30f631a1455711edb3249c9fc2 (diff)
downloadFreeBSD-src-2b2ab161211ea3caf90b307e431dfe38db75a95e.zip
FreeBSD-src-2b2ab161211ea3caf90b307e431dfe38db75a95e.tar.gz
Style changes
Obtained from: NetBSD (mc146818reg.h)
Diffstat (limited to 'sys/dev/mc146818/mc146818var.h')
-rw-r--r--sys/dev/mc146818/mc146818var.h25
1 files changed, 13 insertions, 12 deletions
diff --git a/sys/dev/mc146818/mc146818var.h b/sys/dev/mc146818/mc146818var.h
index cce9508..d54f53e 100644
--- a/sys/dev/mc146818/mc146818var.h
+++ b/sys/dev/mc146818/mc146818var.h
@@ -38,29 +38,30 @@ struct mc146818_softc {
u_char sc_regb; /* register B */
u_int sc_year0; /* year counter offset */
+
u_int sc_flag; /* MD flags */
-#define MC146818_NO_CENT_ADJUST 0x0001 /* don't adjust century */
-#define MC146818_BCD 0x0002 /* use BCD mode */
-#define MC146818_12HR 0x0004 /* use AM/PM mode */
+#define MC146818_NO_CENT_ADJUST 0x0001 /* don't adjust century */
+#define MC146818_BCD 0x0002 /* use BCD mode */
+#define MC146818_12HR 0x0004 /* use AM/PM mode */
/* MD chip register read/write functions */
- u_int (*sc_mcread)(device_t, u_int);
- void (*sc_mcwrite)(device_t, u_int, u_int);
+ u_int (*sc_mcread)(device_t dev, u_int reg);
+ void (*sc_mcwrite)(device_t dev, u_int reg, u_int val);
/* MD century get/set functions */
- u_int (*sc_getcent)(device_t);
- void (*sc_setcent)(device_t, u_int);
+ u_int (*sc_getcent)(device_t dev);
+ void (*sc_setcent)(device_t dev, u_int cent);
};
/* Default read/write functions */
-u_int mc146818_def_read(device_t, u_int);
-void mc146818_def_write(device_t, u_int, u_int);
+u_int mc146818_def_read(device_t dev, u_int reg);
+void mc146818_def_write(device_t dev, u_int reg, u_int val);
/* Chip attach function */
int mc146818_attach(device_t);
/* Methods for the clock interface */
#ifdef notyet
-int mc146818_getsecs(device_t, int *);
+int mc146818_getsecs(device_t dev, int *secp);
#endif
-int mc146818_gettime(device_t, struct timespec *);
-int mc146818_settime(device_t, struct timespec *);
+int mc146818_gettime(device_t dev, struct timespec *ts);
+int mc146818_settime(device_t dev, struct timespec *ts);
OpenPOWER on IntegriCloud