diff options
author | marius <marius@FreeBSD.org> | 2004-11-17 12:54:12 +0000 |
---|---|---|
committer | marius <marius@FreeBSD.org> | 2004-11-17 12:54:12 +0000 |
commit | 2686579ad5a500820a0201b64388f2961bb1f9fc (patch) | |
tree | 5c5676a797dec7f8d747b5904812c05bbcb4338e /sys/sparc64/include | |
parent | 03daabfd53b688217a7c372346a879e5c3b5162b (diff) | |
download | FreeBSD-src-2686579ad5a500820a0201b64388f2961bb1f9fc.zip FreeBSD-src-2686579ad5a500820a0201b64388f2961bb1f9fc.tar.gz |
o Sync with the NetBSD mk48txx driver (the result simplyfies some changes
I have in mind for the genclock interface):
- Recognize the MK48T18 as well (differs from the MK48T08 only in
packaging options and voltages).
- Allow MD code to provide functions for reading/writing NVRAM/RTC
locations.
If passed NULL, the old behaviour using bus_space_{read,write}_1() is
used. Otherwise, all access to the chip goes via the MD functions.
This is necessary for mvmeppc boards where the mk48txx NVRAM/RTC is
not directly addressable.
- Cleanup MI mk48txx(4) todclock driver:
- Prepare mk48txxvar.h and leave only register definitions in
mk48txxreg.h.
- Define struct mk48txx_softc as usual devices and allocate necessary
members in it.
- Change mk48txx_attach() to only take a device_t.
o While converting the sparc64 eeprom driver to the above changes:
- Remove some dead code and stale comments.
- Use the NVRAM size provided by the mk48txx driver instead of hardcoding
it as suggested by a comment.
- Add a comment about why it doesn't make much sense to read the hostid
directly from the NVRAM except for displaying it when attaching.
- Don't print the hostid if it reads all zero because it's stored
elsewhere.
Diffstat (limited to 'sys/sparc64/include')
-rw-r--r-- | sys/sparc64/include/eeprom.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/sparc64/include/eeprom.h b/sys/sparc64/include/eeprom.h index 57a7ff5..21bd3d3 100644 --- a/sys/sparc64/include/eeprom.h +++ b/sys/sparc64/include/eeprom.h @@ -53,13 +53,9 @@ #ifndef _MACHINE_EEPROM_H_ #define _MACHINE_EEPROM_H_ -struct eeprom_softc { - struct mk48txx_softc *sc_mksoftc; -}; - extern devclass_t eeprom_devclass; int eeprom_probe(device_t); -int eeprom_attach(device_t, bus_space_tag_t, bus_space_handle_t); +int eeprom_attach(device_t); #endif /* _MACHINE_EEPROM_H_ */ |