as3722.c (d60840138f6292c1ceeb177ebe797eca0b2749da) | as3722.c (4bda238a9bcda86154b0fa18e17cb09e3d0ca5a4) |
---|---|
1/*- 2 * Copyright (c) 2016 Michal Meloun <mmel@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 391 unchanged lines hidden (view full) --- 400 401 /* ofw_bus interface */ 402 DEVMETHOD(ofw_bus_get_node, as3722_gpio_get_node), 403 404 DEVMETHOD_END 405}; 406 407static devclass_t as3722_devclass; | 1/*- 2 * Copyright (c) 2016 Michal Meloun <mmel@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 391 unchanged lines hidden (view full) --- 400 401 /* ofw_bus interface */ 402 DEVMETHOD(ofw_bus_get_node, as3722_gpio_get_node), 403 404 DEVMETHOD_END 405}; 406 407static devclass_t as3722_devclass; |
408DEFINE_CLASS_0(gpio, as3722_driver, as3722_methods, | 408static DEFINE_CLASS_0(gpio, as3722_driver, as3722_methods, |
409 sizeof(struct as3722_softc)); 410EARLY_DRIVER_MODULE(as3722, iicbus, as3722_driver, as3722_devclass, | 409 sizeof(struct as3722_softc)); 410EARLY_DRIVER_MODULE(as3722, iicbus, as3722_driver, as3722_devclass, |
411 0, 0, 74); | 411 NULL, NULL, 74); |