Lines Matching +full:0 +full:x40800000

46 			 (offset >> 8) & 0xFF, offset & 0xFF) < 0)  in cuda_pram_read_byte()
47 return 0; in cuda_pram_read_byte()
58 (offset >> 8) & 0xFF, offset & 0xFF, data) < 0) in cuda_pram_write_byte()
71 offset & 0xFF, 1) < 0) in pmu_pram_read_byte()
72 return 0; in pmu_pram_read_byte()
75 return req.reply[0]; in pmu_pram_read_byte()
83 offset & 0xFF, 1, data) < 0) in pmu_pram_write_byte()
110 data = 0; in via_rtc_recv()
111 for (i = 0 ; i < 8 ; i++) { in via_rtc_recv()
132 for (i = 0 ; i < 8 ; i++) { in via_rtc_send()
133 bit = data & 0x80? 1 : 0; in via_rtc_send()
149 #define RTC_REG_SECONDS_0 0
163 #define RTC_CMD_XPRAM_ARG(a) (((a & 0xE0) << 3) | ((a & 0x1F) << 2))
181 /* The least significant bits must be 0b01 according to Inside Mac */ in via_rtc_command()
189 if (command & 0xFF00) { /* extended (two-byte) command */ in via_rtc_command()
190 via_rtc_send((command & 0xFF00) >> 8); in via_rtc_command()
191 via_rtc_send(command & 0xFF); in via_rtc_command()
224 temp = 0x55; in via_pram_write_byte()
230 temp = 0x55 | RTC_FLG_WRITE_PROTECT; in via_pram_write_byte()
253 via_rtc_command(RTC_CMD_READ(RTC_REG_SECONDS_3), &last_result.cdata[0]); in via_read_time()
268 &result.cdata[0]); in via_read_time()
279 pr_err("%s: failed to read a stable value; got 0x%08x then 0x%08x\n", in via_read_time()
282 return 0; in via_read_time()
306 temp = 0x55; in via_set_rtc_time()
313 via_rtc_command(RTC_CMD_WRITE(RTC_REG_SECONDS_3), &data.cdata[0]); in via_set_rtc_time()
317 temp = 0x55 | RTC_FLG_WRITE_PROTECT; in via_set_rtc_time()
324 via2[rBufB] &= ~0x04; in via_shutdown()
327 via2[vDirB] |= 0x04; in via_shutdown()
328 /* Send a value of 0 on that line */ in via_shutdown()
329 via2[vBufB] &= ~0x04; in via_shutdown()
344 if (cuda_request(&req, NULL, 2, CUDA_PACKET, CUDA_RESET_SYSTEM) < 0) in cuda_restart()
354 if (cuda_request(&req, NULL, 2, CUDA_PACKET, CUDA_POWERDOWN) < 0) in cuda_shutdown()
397 return 0xFF; in mac_pram_read_byte()
460 if (mac_bi_data.rombase == 0) in mac_reset()
461 mac_bi_data.rombase = 0x40800000; in mac_reset()
464 rom_reset = (void *) (mac_bi_data.rombase + 0xa); in mac_reset()
485 unsigned long rombase = 0x40000000; in mac_reset()
490 unsigned long addr = (phys&0xFF000000)|0x8777; in mac_reset()
495 "pmove %0,%/tt0\n\t" in mac_reset()
502 "addl %0,%/a0\n\t"/* fixup target address and stack ptr */ in mac_reset()
503 "addl %0,%/sp\n\t" in mac_reset()
506 "0:.long 0\n\t" /* a constant zero. */ in mac_reset()
509 "lea %/pc@(0b),%/a0\n\t" in mac_reset()
513 "movel #0, %/a0\n\t" in mac_reset()
516 "movel #0x0808,%/a0\n\t" in mac_reset()
518 "movew #0x2700,%/sr\n\t" /* set up status register */ in mac_reset()
519 "movel %1@(0x0),%/a0\n\t"/* load interrupt stack pointer */ in mac_reset()
521 "movel %1@(0x4),%/a0\n\t" /* load reset vector */ in mac_reset()
550 /* How many days come before each month (0-12). */ in unmktime()
554 { 0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365 }, in unmktime()
556 { 0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335, 366 } in unmktime()
563 while (rem < 0) { in unmktime()
577 if (wday < 0) wday += 7; in unmktime()
580 #define DIV(a, b) ((a) / (b) - ((a) % (b) < 0)) in unmktime()
583 ((year) % 4 == 0 && ((year) % 100 != 0 || (year) % 400 == 0)) in unmktime()
585 while (days < 0 || days >= (__isleap (y) ? 366 : 365)) in unmktime()
588 long int yg = y + days / 365 - (days % 365 < 0); in unmktime()
633 now = 0; in mac_hwclk()
636 t->tm_wday = 0; in mac_hwclk()
637 unmktime(now, 0, in mac_hwclk()
665 return 0; in mac_hwclk()