diff options
author | marius <marius@FreeBSD.org> | 2007-06-16 23:10:00 +0000 |
---|---|---|
committer | marius <marius@FreeBSD.org> | 2007-06-16 23:10:00 +0000 |
commit | 6058946083bbe243c24bd97443923e39f391bb9b (patch) | |
tree | ff354c44ac3eff218af1cdfb1c27a76e19462806 /sys | |
parent | 2f5e33cdc9ffe22fedcf6c55a4935b776c043fe8 (diff) | |
download | FreeBSD-src-6058946083bbe243c24bd97443923e39f391bb9b.zip FreeBSD-src-6058946083bbe243c24bd97443923e39f391bb9b.tar.gz |
Export mc146818_def_{read,write}() so the front-end can make use
of them if needed.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/mc146818/mc146818.c | 6 | ||||
-rw-r--r-- | sys/dev/mc146818/mc146818var.h | 4 |
2 files changed, 6 insertions, 4 deletions
diff --git a/sys/dev/mc146818/mc146818.c b/sys/dev/mc146818/mc146818.c index 3bd4ce3..ea59d2c 100644 --- a/sys/dev/mc146818/mc146818.c +++ b/sys/dev/mc146818/mc146818.c @@ -49,8 +49,6 @@ __FBSDID("$FreeBSD$"); static u_int mc146818_def_getcent(device_t); static void mc146818_def_setcent(device_t, u_int); -static u_int mc146818_def_read(device_t, u_int); -static void mc146818_def_write(device_t, u_int, u_int); int mc146818_attach(device_t dev) @@ -242,7 +240,7 @@ mc146818_settime(device_t dev, struct timespec *ts) #define MC_ADDR 0 #define MC_DATA 1 -static u_int +u_int mc146818_def_read(device_t dev, u_int reg) { struct mc146818_softc *sc; @@ -252,7 +250,7 @@ mc146818_def_read(device_t dev, u_int reg) return (bus_space_read_1(sc->sc_bst, sc->sc_bsh, MC_DATA)); } -static void +void mc146818_def_write(device_t dev, u_int reg, u_int val) { struct mc146818_softc *sc; diff --git a/sys/dev/mc146818/mc146818var.h b/sys/dev/mc146818/mc146818var.h index 4c6ff09..cce9508 100644 --- a/sys/dev/mc146818/mc146818var.h +++ b/sys/dev/mc146818/mc146818var.h @@ -51,6 +51,10 @@ struct mc146818_softc { void (*sc_setcent)(device_t, u_int); }; +/* Default read/write functions */ +u_int mc146818_def_read(device_t, u_int); +void mc146818_def_write(device_t, u_int, u_int); + /* Chip attach function */ int mc146818_attach(device_t); |