ds1743_write
ds1743_write(sc, addr, val);
ds1743_write(sc, DS_CENTURY, ctl); /* Lock RTC for both reading and writing */
ds1743_write(sc, DS_CENTURY, ctl); /* Enable updates */
ds1743_write(sc, DS_SECONDS, bintobcd(dt->dt_sec) & 0x7f);
ds1743_write(sc, DS_MINUTES, bintobcd(dt->dt_min) & 0x7f);
ds1743_write(sc, DS_HOURS, bintobcd(dt->dt_hour) & 0x3f);
ds1743_write(sc, DS_DATE, bintobcd(dt->dt_day) & 0x3f);
ds1743_write(sc, DS_MONTH, bintobcd(dt->dt_mon) & 0x1f);
ds1743_write(sc, DS_YEAR, bintobcd(dt->dt_year % 100));
ds1743_write(sc, DS_CENTURY, ((ds1743_read(sc, DS_CENTURY) & DS_CTL_RW)
static inline void ds1743_write(struct dsrtc_softc *, int, u_char);