Home
last modified time | relevance | path

Searched refs:RTC_PORT (Results 1 – 25 of 25) sorted by relevance

/Linux-v4.19/arch/alpha/include/asm/
Dmc146818rtc.h10 #ifndef RTC_PORT
11 #define RTC_PORT(x) (0x70 + (x)) macro
20 outb_p((addr),RTC_PORT(0)); \
21 inb_p(RTC_PORT(1)); \
24 outb_p((addr),RTC_PORT(0)); \
25 outb_p((val),RTC_PORT(1)); \
Dio.h555 # define RTC_PORT(x) ((x) + alpha_mv.rtc_port) macro
558 # define RTC_PORT(x) (0x170+(x)) macro
560 # define RTC_PORT(x) (0x70 + (x)) macro
/Linux-v4.19/arch/powerpc/include/asm/
Dmc146818rtc.h17 #ifndef RTC_PORT
18 #define RTC_PORT(x) (0x70 + (x)) macro
27 outb_p((addr),RTC_PORT(0)); \
28 inb_p(RTC_PORT(1)); \
31 outb_p((addr),RTC_PORT(0)); \
32 outb_p((val),RTC_PORT(1)); \
/Linux-v4.19/arch/sparc/include/asm/
Dmc146818rtc_32.h10 #ifndef RTC_PORT
11 #define RTC_PORT(x) (0x70 + (x)) macro
20 outb_p((addr),RTC_PORT(0)); \
21 inb_p(RTC_PORT(1)); \
24 outb_p((addr),RTC_PORT(0)); \
25 outb_p((val),RTC_PORT(1)); \
Dmc146818rtc_64.h10 #ifndef RTC_PORT
12 #define RTC_PORT(x) (cmos_regs + (x)) macro
21 outb_p((addr),RTC_PORT(0)); \
22 inb_p(RTC_PORT(1)); \
25 outb_p((addr),RTC_PORT(0)); \
26 outb_p((val),RTC_PORT(1)); \
/Linux-v4.19/arch/arm/include/asm/
Dmc146818rtc.h13 #ifndef RTC_PORT
14 #define RTC_PORT(x) (0x70 + (x)) macro
23 outb_p((addr),RTC_PORT(0)); \
24 inb_p(RTC_PORT(1)); \
27 outb_p((addr),RTC_PORT(0)); \
28 outb_p((val),RTC_PORT(1)); \
/Linux-v4.19/arch/mips/include/asm/mach-loongson64/
Dmc146818rtc.h15 #define RTC_PORT(x) (0x70 + (x)) macro
20 outb_p(addr, RTC_PORT(0)); in CMOS_READ()
21 return inb_p(RTC_PORT(1)); in CMOS_READ()
26 outb_p(addr, RTC_PORT(0)); in CMOS_WRITE()
27 outb_p(data, RTC_PORT(1)); in CMOS_WRITE()
/Linux-v4.19/arch/mips/include/asm/mach-generic/
Dmc146818rtc.h15 #define RTC_PORT(x) (0x70 + (x)) macro
20 outb_p(addr, RTC_PORT(0)); in CMOS_READ()
21 return inb_p(RTC_PORT(1)); in CMOS_READ()
26 outb_p(addr, RTC_PORT(0)); in CMOS_WRITE()
27 outb_p(data, RTC_PORT(1)); in CMOS_WRITE()
/Linux-v4.19/arch/x86/kernel/
Drtc.c131 outb(addr, RTC_PORT(0)); in rtc_cmos_read()
132 val = inb(RTC_PORT(1)); in rtc_cmos_read()
142 outb(addr, RTC_PORT(0)); in rtc_cmos_write()
143 outb(val, RTC_PORT(1)); in rtc_cmos_write()
162 .start = RTC_PORT(0),
163 .end = RTC_PORT(1),
/Linux-v4.19/arch/mips/include/asm/mach-jazz/
Dmc146818rtc.h19 #define RTC_PORT(x) (0x70 + (x)) macro
24 outb_p(addr, RTC_PORT(0)); in CMOS_READ()
30 outb_p(addr, RTC_PORT(0)); in CMOS_WRITE()
/Linux-v4.19/drivers/acpi/
Dacpi_watchdog.c43 case RTC_PORT(0): in acpi_watchdog_uses_rtc()
44 case RTC_PORT(1): in acpi_watchdog_uses_rtc()
45 case RTC_PORT(2): in acpi_watchdog_uses_rtc()
46 case RTC_PORT(3): in acpi_watchdog_uses_rtc()
/Linux-v4.19/arch/mips/loongson64/common/
Drtc.c19 .start = RTC_PORT(0),
20 .end = RTC_PORT(1),
/Linux-v4.19/arch/mips/dec/
Dplatform.c39 dec_rtc_resources[0].start = RTC_PORT(0); in dec_add_devices()
40 dec_rtc_resources[0].end = RTC_PORT(0) + dec_kn_slot_size - 1; in dec_add_devices()
/Linux-v4.19/arch/x86/include/asm/
Dmc146818rtc.h11 #ifndef RTC_PORT
12 #define RTC_PORT(x) (0x70 + (x)) macro
/Linux-v4.19/arch/x86/platform/olpc/
Dolpc-xo1-rtc.c32 .start = RTC_PORT(0),
33 .end = RTC_PORT(1),
/Linux-v4.19/arch/mips/include/asm/mach-dec/
Dmc146818rtc.h24 #define RTC_PORT(x) CPHYSADDR((long)dec_rtc_base) macro
/Linux-v4.19/arch/mips/include/asm/mach-malta/
Dmc146818rtc.h29 #define RTC_PORT(x) (0x70 + (x)) macro
/Linux-v4.19/arch/arm/mach-footbridge/
Disa-rtc.c18 #define RTC_PORT(x) (0x70+(x)) macro
/Linux-v4.19/drivers/input/serio/
Di8042-io.h24 # define I8042_AUX_IRQ (RTC_PORT(0) == 0x170 ? 9 : 12) /* Jensen is special */
/Linux-v4.19/arch/powerpc/sysdev/
Drtc_cmos_setup.c43 if (res[0].start != RTC_PORT(0)) in add_rtc()
/Linux-v4.19/drivers/char/
Drtc.c829 r = request_region(RTC_PORT(0), size, "rtc"); in rtc_request_region()
831 r = request_mem_region(RTC_PORT(0), size, "rtc"); in rtc_request_region()
842 release_region(RTC_PORT(0), rtc_size); in rtc_release_region()
844 release_mem_region(RTC_PORT(0), rtc_size); in rtc_release_region()
918 (long)(RTC_PORT(0))); in rtc_init()
Dnvram.c77 #define RTC_PORT(x) (TT_RTC_BAS + 2*(x)) macro
/Linux-v4.19/drivers/rtc/
Drtc-cmos.c177 #ifdef RTC_PORT
187 outb(addr, RTC_PORT(2)); in cmos_read_bank2()
188 return inb(RTC_PORT(3)); in cmos_read_bank2()
193 outb(addr, RTC_PORT(2)); in cmos_write_bank2()
194 outb(val, RTC_PORT(3)); in cmos_write_bank2()
/Linux-v4.19/arch/powerpc/platforms/maple/
Dtime.c163 maple_rtc_addr = RTC_PORT(0); /* legacy address */ in maple_get_boot_time()
/Linux-v4.19/arch/alpha/kernel/
Dsetup.c256 standard_io_resources[0].start = RTC_PORT(0); in reserve_std_resources()
257 standard_io_resources[0].end = RTC_PORT(0) + 0x10; in reserve_std_resources()