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

Function mv_rtc_attach

freebsd/arm/mv/rtc.c:112–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112static int
113mv_rtc_attach(device_t dev)
114{
115 struct mv_rtc_softc *sc;
116
117 sc = device_get_softc(dev);
118 sc->dev = dev;
119
120 clock_register(dev, 1000000);
121
122 if (bus_alloc_resources(dev, res_spec, sc->res)) {
123 device_printf(dev, "could not allocate resources\n");
124 return (ENXIO);
125 }
126
127 return (0);
128}
129
130static int
131mv_rtc_gettime(device_t dev, struct timespec *ts)

Callers

nothing calls this directly

Calls 4

device_get_softcFunction · 0.85
clock_registerFunction · 0.85
bus_alloc_resourcesFunction · 0.85
device_printfFunction · 0.85

Tested by

no test coverage detected