| 110 | } |
| 111 | |
| 112 | static int |
| 113 | mv_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 | |
| 130 | static int |
| 131 | mv_rtc_gettime(device_t dev, struct timespec *ts) |
nothing calls this directly
no test coverage detected