Lines Matching +full:0 +full:x7000000
53 #define MV_RTC_TIME_REG 0x00
54 #define MV_RTC_DATE_REG 0x04
63 { SYS_RES_MEMORY, 0, RF_ACTIVE },
64 { -1, 0 }
84 { 0, 0 },
93 DRIVER_MODULE(mv_rtc, simplebus, mv_rtc_driver, 0, 0);
124 return (0); in mv_rtc_attach()
138 ct.nsec = 0; in mv_rtc_gettime()
139 ct.sec = FROMBCD(val & 0x7f); in mv_rtc_gettime()
140 ct.min = FROMBCD((val & 0x7f00) >> 8); in mv_rtc_gettime()
141 ct.hour = FROMBCD((val & 0x3f0000) >> 16); in mv_rtc_gettime()
142 ct.dow = FROMBCD((val & 0x7000000) >> 24) - 1; in mv_rtc_gettime()
146 ct.day = FROMBCD(val & 0x7f); in mv_rtc_gettime()
147 ct.mon = FROMBCD((val & 0x1f00) >> 8); in mv_rtc_gettime()
148 ct.year = YEAR_BASE + FROMBCD((val & 0xff0000) >> 16); in mv_rtc_gettime()
165 ts->tv_nsec = 0; in mv_rtc_settime()
176 return (0); in mv_rtc_settime()
183 return (bus_read_4(sc->res[0], off)); in mv_rtc_reg_read()
190 bus_write_4(sc->res[0], off, val); in mv_rtc_reg_write()
191 return (0); in mv_rtc_reg_write()