/src/sys/arch/evbppc/walnut/dev/ |
ds1743.c | 71 static inline void ds1743_write(struct dsrtc_softc *, int, u_char); 178 ds1743_write(struct dsrtc_softc *sc, int addr, u_char data) function in typeref:typename:void 201 ds1743_write(sc, addr, val); 215 ds1743_write(sc, DS_CENTURY, ctl); /* Lock RTC for both reading and writing */ 226 ds1743_write(sc, DS_CENTURY, ctl); /* Enable updates */ 237 ds1743_write(sc, DS_SECONDS, bintobcd(dt->dt_sec) & 0x7f); 238 ds1743_write(sc, DS_MINUTES, bintobcd(dt->dt_min) & 0x7f); 239 ds1743_write(sc, DS_HOURS, bintobcd(dt->dt_hour) & 0x3f); 240 ds1743_write(sc, DS_DATE, bintobcd(dt->dt_day) & 0x3f); 241 ds1743_write(sc, DS_MONTH, bintobcd(dt->dt_mon) & 0x1f) [all...] |
ds1743.c | 71 static inline void ds1743_write(struct dsrtc_softc *, int, u_char); 178 ds1743_write(struct dsrtc_softc *sc, int addr, u_char data) function in typeref:typename:void 201 ds1743_write(sc, addr, val); 215 ds1743_write(sc, DS_CENTURY, ctl); /* Lock RTC for both reading and writing */ 226 ds1743_write(sc, DS_CENTURY, ctl); /* Enable updates */ 237 ds1743_write(sc, DS_SECONDS, bintobcd(dt->dt_sec) & 0x7f); 238 ds1743_write(sc, DS_MINUTES, bintobcd(dt->dt_min) & 0x7f); 239 ds1743_write(sc, DS_HOURS, bintobcd(dt->dt_hour) & 0x3f); 240 ds1743_write(sc, DS_DATE, bintobcd(dt->dt_day) & 0x3f); 241 ds1743_write(sc, DS_MONTH, bintobcd(dt->dt_mon) & 0x1f) [all...] |