Changeset View
Changeset View
Standalone View
Standalone View
sys/arm/freescale/imx/imx_gpt.c
Show First 20 Lines • Show All 376 Lines • ▼ Show 20 Lines | static driver_t imx_gpt_driver = { | ||||
imx_gpt_methods, | imx_gpt_methods, | ||||
sizeof(struct imx_gpt_softc), | sizeof(struct imx_gpt_softc), | ||||
}; | }; | ||||
static devclass_t imx_gpt_devclass; | static devclass_t imx_gpt_devclass; | ||||
EARLY_DRIVER_MODULE(imx_gpt, simplebus, imx_gpt_driver, imx_gpt_devclass, 0, | EARLY_DRIVER_MODULE(imx_gpt, simplebus, imx_gpt_driver, imx_gpt_devclass, 0, | ||||
0, BUS_PASS_TIMER); | 0, BUS_PASS_TIMER); | ||||
SIMPLEBUS_PNP_INFO(compat_data); | |||||
void | void | ||||
DELAY(int usec) | DELAY(int usec) | ||||
{ | { | ||||
uint64_t curcnt, endcnt, startcnt, ticks; | uint64_t curcnt, endcnt, startcnt, ticks; | ||||
/* If the timer hardware is not accessible, just use a loop. */ | /* If the timer hardware is not accessible, just use a loop. */ | ||||
if (imx_gpt_sc == NULL) { | if (imx_gpt_sc == NULL) { | ||||
Show All 23 Lines |