diff options
author | marius <marius@FreeBSD.org> | 2005-05-19 21:20:42 +0000 |
---|---|---|
committer | marius <marius@FreeBSD.org> | 2005-05-19 21:20:42 +0000 |
commit | 54f40eb6c35f44b0ea5fe5f95b0ce7dc80a1317d (patch) | |
tree | 64e3bcc3a3097c9a888798d39f552f3bc44a05a9 /sys/dev/mc146818/mc146818var.h | |
parent | bedc4e05717f5dabf8d7fab67cee6819f1b93358 (diff) | |
download | FreeBSD-src-54f40eb6c35f44b0ea5fe5f95b0ce7dc80a1317d.zip FreeBSD-src-54f40eb6c35f44b0ea5fe5f95b0ce7dc80a1317d.tar.gz |
o mc146818(4):
- Add locking.
- Account for if the MC146818_NO_CENT_ADJUST flag is set we don't need
to check wheter year < POSIX_BASE_YEAR.
- Add some comments about mapping the day of week from the range the
generic clock code uses to the range the chip uses and which I meant
to add in the initial version.
- Minor clean-up, use __func__ instead of hardcoded function names in
error strings.
o in the rtc(4) front-end additionally:
- Don't leak resources in case mc146818_attach() fails.
- Account for ebus(4) defaulting to SYS_RES_MEMORY for the memory
resources since ebus.c rev. 1.22.
Diffstat (limited to 'sys/dev/mc146818/mc146818var.h')
-rw-r--r-- | sys/dev/mc146818/mc146818var.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/mc146818/mc146818var.h b/sys/dev/mc146818/mc146818var.h index 4e8600c..4c6ff09 100644 --- a/sys/dev/mc146818/mc146818var.h +++ b/sys/dev/mc146818/mc146818var.h @@ -32,6 +32,8 @@ struct mc146818_softc { bus_space_tag_t sc_bst; /* bus space tag */ bus_space_handle_t sc_bsh; /* bus space handle */ + struct mtx sc_mtx; /* hardware mutex */ + u_char sc_rega; /* register A */ u_char sc_regb; /* register B */ |