Lines Matching +full:0 +full:x40800000
45 (offset >> 8) & 0xFF, offset & 0xFF) < 0) in cuda_pram_read_byte()
46 return 0; in cuda_pram_read_byte()
57 (offset >> 8) & 0xFF, offset & 0xFF, data) < 0) in cuda_pram_write_byte()
70 offset & 0xFF, 1) < 0) in pmu_pram_read_byte()
71 return 0; in pmu_pram_read_byte()
74 return req.reply[0]; in pmu_pram_read_byte()
82 offset & 0xFF, 1, data) < 0) in pmu_pram_write_byte()
109 data = 0; in via_rtc_recv()
110 for (i = 0 ; i < 8 ; i++) { in via_rtc_recv()
131 for (i = 0 ; i < 8 ; i++) { in via_rtc_send()
132 bit = data & 0x80? 1 : 0; in via_rtc_send()
148 #define RTC_REG_SECONDS_0 0
162 #define RTC_CMD_XPRAM_ARG(a) (((a & 0xE0) << 3) | ((a & 0x1F) << 2))
180 /* The least significant bits must be 0b01 according to Inside Mac */ in via_rtc_command()
188 if (command & 0xFF00) { /* extended (two-byte) command */ in via_rtc_command()
189 via_rtc_send((command & 0xFF00) >> 8); in via_rtc_command()
190 via_rtc_send(command & 0xFF); in via_rtc_command()
223 temp = 0x55; in via_pram_write_byte()
229 temp = 0x55 | RTC_FLG_WRITE_PROTECT; in via_pram_write_byte()
252 via_rtc_command(RTC_CMD_READ(RTC_REG_SECONDS_3), &last_result.cdata[0]); in via_read_time()
267 &result.cdata[0]); in via_read_time()
278 pr_err("%s: failed to read a stable value; got 0x%08x then 0x%08x\n", in via_read_time()
281 return 0; in via_read_time()
305 temp = 0x55; in via_set_rtc_time()
312 via_rtc_command(RTC_CMD_WRITE(RTC_REG_SECONDS_3), &data.cdata[0]); in via_set_rtc_time()
316 temp = 0x55 | RTC_FLG_WRITE_PROTECT; in via_set_rtc_time()
323 via2[rBufB] &= ~0x04; in via_shutdown()
326 via2[vDirB] |= 0x04; in via_shutdown()
327 /* Send a value of 0 on that line */ in via_shutdown()
328 via2[vBufB] &= ~0x04; in via_shutdown()
343 if (cuda_request(&req, NULL, 2, CUDA_PACKET, CUDA_RESET_SYSTEM) < 0) in cuda_restart()
353 if (cuda_request(&req, NULL, 2, CUDA_PACKET, CUDA_POWERDOWN) < 0) in cuda_shutdown()
396 return 0xFF; in mac_pram_read_byte()
459 if (mac_bi_data.rombase == 0) in mac_reset()
460 mac_bi_data.rombase = 0x40800000; in mac_reset()
463 rom_reset = (void *) (mac_bi_data.rombase + 0xa); in mac_reset()
484 unsigned long rombase = 0x40000000; in mac_reset()
489 unsigned long addr = (phys&0xFF000000)|0x8777; in mac_reset()
494 "pmove %0,%/tt0\n\t" in mac_reset()
501 "addl %0,%/a0\n\t"/* fixup target address and stack ptr */ in mac_reset()
502 "addl %0,%/sp\n\t" in mac_reset()
505 "0:.long 0\n\t" /* a constant zero. */ in mac_reset()
508 "lea %/pc@(0b),%/a0\n\t" in mac_reset()
512 "movel #0, %/a0\n\t" in mac_reset()
515 "movel #0x0808,%/a0\n\t" in mac_reset()
517 "movew #0x2700,%/sr\n\t" /* set up status register */ in mac_reset()
518 "movel %1@(0x0),%/a0\n\t"/* load interrupt stack pointer */ in mac_reset()
520 "movel %1@(0x4),%/a0\n\t" /* load reset vector */ in mac_reset()
549 /* How many days come before each month (0-12). */ in unmktime()
553 { 0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365 }, in unmktime()
555 { 0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335, 366 } in unmktime()
562 while (rem < 0) { in unmktime()
576 if (wday < 0) wday += 7; in unmktime()
579 #define DIV(a, b) ((a) / (b) - ((a) % (b) < 0)) in unmktime()
582 ((year) % 4 == 0 && ((year) % 100 != 0 || (year) % 400 == 0)) in unmktime()
584 while (days < 0 || days >= (__isleap (y) ? 366 : 365)) in unmktime()
587 long int yg = y + days / 365 - (days % 365 < 0); in unmktime()
632 now = 0; in mac_hwclk()
635 t->tm_wday = 0; in mac_hwclk()
636 unmktime(now, 0, in mac_hwclk()
664 return 0; in mac_hwclk()