cvs commit: src/sys/dev/mk48txx mk48txx.c mk48txxreg.h mk48txxvar.h src/sys/sparc64/sparc64 eeprom.c

Marius Strobl marius at FreeBSD.org
Thu May 19 21:16:50 GMT 2005


marius      2005-05-19 21:16:50 UTC

  FreeBSD src repository

  Modified files:
    sys/dev/mk48txx      mk48txx.c mk48txxreg.h mk48txxvar.h 
    sys/sparc64/sparc64  eeprom.c 
  Log:
  - Add locking.
  - Add support for storing the century in MK48TXX_WDAY_CB on MK48Txx with
    extended registers when the MK48TXX_NO_CENT_ADJUST flag is set (and which
    is termed somewhat confusing as it actually means don't manually adjust
    the century in the driver).
  - Add the MI part of interfacing the watchdog functionality of MK48Txx with
    extended registers with watchdog(9). This is inspired by the SunOS/Solaris
    drivers for the 'eeprom' devices also having watchdog support. I actually
    expected this to work out of the box on Sun Exx00 machines with 'eeprom'
    devices which have a 'watchdog-enable' property. On terminal count of the
    the watchdog timer however only the MK48TXX_FLAGS_WDF bit rises but the
    reset signal and the interrupt respectively (depending on whether the
    MK48TXX_WDOG_WDS bit of the chip and the MK48TXX_WDOG_ENABLE_WDS flag
    of the driver respectively is set) goes nowhere. Apparently passing the
    reset signal on to the WDR line of the CPUs has to be enabled somewhere
    else but we don't have documentation for the Exx00 specific controllers.
    I decided to commit this nevertheless so it can be enabled in the eeprom(4)
    front-end later in e.g. 6.0-STABLE without breaking the API. Besides the
    Exx00 the watchdog part of the MK48Txx should also work on E250 and E450.
    Possibly also without extra fiddling on these machines but I haven't
    found someone willing to give it a try on such a machine so far.
  - Use uintXX_t instead of u_intXX_t, use __func__ instead of hardcoded
    function names in error strings.
  
  Revision  Changes    Path
  1.6       +110 -38   src/sys/dev/mk48txx/mk48txx.c
  1.5       +2 -0      src/sys/dev/mk48txx/mk48txxreg.h
  1.2       +8 -3      src/sys/dev/mk48txx/mk48txxvar.h
  1.9       +11 -1     src/sys/sparc64/sparc64/eeprom.c


More information about the cvs-src mailing list