MCPcopy Create free account
hub / github.com/F-Stack/f-stack / octeon_rtc_attach

Function octeon_rtc_attach

freebsd/mips/cavium/octeon_rtc.c:88–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88static int
89octeon_rtc_attach(device_t dev)
90{
91 cvmx_rtc_options_t supported;
92
93 supported = cvmx_rtc_supported();
94 if ((supported & CVMX_RTC_READ) == 0)
95 return (ENXIO);
96
97 clock_register(dev, 1000000);
98 return (0);
99}
100
101static int
102octeon_rtc_settime(device_t dev, struct timespec *ts)

Callers

nothing calls this directly

Calls 2

cvmx_rtc_supportedFunction · 0.85
clock_registerFunction · 0.85

Tested by

no test coverage detected