rk805.c (c200441872e7e85e21d5d953bbfac87108edba88) rk805.c (91a908e051bb44a41d045e7452b7736d340f341e)
1/*-
2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3 *
4 * Copyright (c) 2018-2021 Emmanuel Vadot <manu@FreeBSD.org>
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 173 unchanged lines hidden (view full) ---

182
183static device_method_t rk805_methods[] = {
184 DEVMETHOD(device_probe, rk805_probe),
185 DEVMETHOD(device_attach, rk805_attach),
186
187 DEVMETHOD_END
188};
189
1/*-
2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3 *
4 * Copyright (c) 2018-2021 Emmanuel Vadot <manu@FreeBSD.org>
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 173 unchanged lines hidden (view full) ---

182
183static device_method_t rk805_methods[] = {
184 DEVMETHOD(device_probe, rk805_probe),
185 DEVMETHOD(device_attach, rk805_attach),
186
187 DEVMETHOD_END
188};
189
190DEFINE_CLASS_1(rk805, rk805_driver, rk805_methods,
190DEFINE_CLASS_1(rk805_pmu, rk805_driver, rk805_methods,
191 sizeof(struct rk8xx_softc), rk8xx_driver);
192
193static devclass_t rk805_devclass;
194
191 sizeof(struct rk8xx_softc), rk8xx_driver);
192
193static devclass_t rk805_devclass;
194
195EARLY_DRIVER_MODULE(rk805, iicbus, rk805_driver, rk805_devclass, 0, 0,
195EARLY_DRIVER_MODULE(rk805_pmu, iicbus, rk805_driver, rk805_devclass, 0, 0,
196 BUS_PASS_INTERRUPT + BUS_PASS_ORDER_LAST);
196 BUS_PASS_INTERRUPT + BUS_PASS_ORDER_LAST);
197EARLY_DRIVER_MODULE(iicbus, rk805, iicbus_driver, iicbus_devclass, 0, 0,
197EARLY_DRIVER_MODULE(iicbus, rk805_pmu, iicbus_driver, iicbus_devclass, 0, 0,
198 BUS_PASS_INTERRUPT + BUS_PASS_ORDER_LAST);
198 BUS_PASS_INTERRUPT + BUS_PASS_ORDER_LAST);
199MODULE_DEPEND(rk805, iicbus, IICBUS_MINVER, IICBUS_PREFVER, IICBUS_MAXVER);
200MODULE_VERSION(rk805, 1);
199MODULE_DEPEND(rk805_pmu, iicbus, IICBUS_MINVER, IICBUS_PREFVER, IICBUS_MAXVER);
200MODULE_VERSION(rk805_pmu, 1);