tegra_i2c.c (308324) | tegra_i2c.c (308335) |
---|---|
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 --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> | 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 --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> |
28__FBSDID("$FreeBSD: stable/11/sys/arm/nvidia/tegra_i2c.c 308324 2016-11-05 04:17:32Z mmel $"); | 28__FBSDID("$FreeBSD: stable/11/sys/arm/nvidia/tegra_i2c.c 308335 2016-11-05 10:56:32Z mmel $"); |
29 30/* 31 * I2C driver for Tegra SoCs. 32 */ 33#include <sys/param.h> 34#include <sys/systm.h> 35#include <sys/bus.h> 36#include <sys/kernel.h> --- 755 unchanged lines hidden (view full) --- 792 /* iicbus interface */ 793 DEVMETHOD(iicbus_callback, iicbus_null_callback), 794 DEVMETHOD(iicbus_reset, tegra_i2c_iicbus_reset), 795 DEVMETHOD(iicbus_transfer, tegra_i2c_transfer), 796 797 DEVMETHOD_END 798}; 799 | 29 30/* 31 * I2C driver for Tegra SoCs. 32 */ 33#include <sys/param.h> 34#include <sys/systm.h> 35#include <sys/bus.h> 36#include <sys/kernel.h> --- 755 unchanged lines hidden (view full) --- 792 /* iicbus interface */ 793 DEVMETHOD(iicbus_callback, iicbus_null_callback), 794 DEVMETHOD(iicbus_reset, tegra_i2c_iicbus_reset), 795 DEVMETHOD(iicbus_transfer, tegra_i2c_transfer), 796 797 DEVMETHOD_END 798}; 799 |
800DEFINE_CLASS_0(iichb, tegra_i2c_driver, tegra_i2c_methods, 801 sizeof(struct tegra_i2c_softc)); | |
802static devclass_t tegra_i2c_devclass; | 800static devclass_t tegra_i2c_devclass; |
801static DEFINE_CLASS_0(iichb, tegra_i2c_driver, tegra_i2c_methods, 802 sizeof(struct tegra_i2c_softc)); |
|
803EARLY_DRIVER_MODULE(tegra_iic, simplebus, tegra_i2c_driver, tegra_i2c_devclass, | 803EARLY_DRIVER_MODULE(tegra_iic, simplebus, tegra_i2c_driver, tegra_i2c_devclass, |
804 0, 0, 73); 805extern devclass_t ofwiicbus_devclass; 806extern driver_t ofw_iicbus_driver; 807EARLY_DRIVER_MODULE(ofw_iicbus, tegra_iic, ofw_iicbus_driver, 808 ofwiicbus_devclass, 0, 0, BUS_PASS_BUS); | 804 NULL, NULL, 73); |