Lines Matching refs:ds1687_read
63 int ds1687_read(struct dsrtc_softc *sc, int addr);
74 ds1687_read(struct dsrtc_softc *sc, int addr)
94 data = ds1687_read(sc, RTC_REG_A);
107 return(ds1687_read(sc, RTC_PC_RAM_START + addr));
111 return(ds1687_read(sc, RTC_BANK0_RAM_START + addr));
119 data = ds1687_read(sc, RTC_EXT_RAM_DATA);
168 dt->dt_sec = ds1687_read(sc, RTC_SECONDS);
169 dt->dt_min = ds1687_read(sc, RTC_MINUTES);
170 dt->dt_hour = ds1687_read(sc, RTC_HOURS);
171 dt->dt_day = ds1687_read(sc, RTC_DAYOFMONTH);
172 dt->dt_mon = ds1687_read(sc, RTC_MONTH);
173 dt->dt_year = ds1687_read(sc, RTC_YEAR);
175 dt->dt_year += ds1687_read(sc, RTC_CENTURY) * 100;
232 if (!(ds1687_read(sc, RTC_REG_D) & RTC_REG_D_VRT))