[Zrouter-src-freebsd] ZRouter.org: push to FreeBSD HEAD tree

zrouter-src-freebsd at zrouter.org zrouter-src-freebsd at zrouter.org
Mon Jan 16 12:37:19 UTC 2012


details:   http://zrouter.org/hg/FreeBSD/head//rev/b112b8e55492
changeset: 282:b112b8e55492
user:      ray at terran.dlink.ua
date:      Sun Jan 15 00:25:08 2012 +0200
description:
We will rework i2c attachment glue, so will restore it from history or will write new one.

diffstat:

 head/sys/dev/switch/switch_iicbus.c |  89 -------------------------------------
 1 files changed, 0 insertions(+), 89 deletions(-)

diffs (93 lines):

diff -r cf0c91eff5d7 -r b112b8e55492 head/sys/dev/switch/switch_iicbus.c
--- a/head/sys/dev/switch/switch_iicbus.c	Sun Jan 15 00:22:26 2012 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,89 +0,0 @@
-/*-
- * Copyright (c) 2011, Aleksandr Rybalko <ray at ddteam.net>
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-#include <sys/cdefs.h>
-__FBSDID("$FreeBSD$");
-
-#include <sys/param.h>
-#include <sys/systm.h>
-#include <sys/kernel.h>
-#include <sys/module.h>
-#include <sys/bus.h>
-#include <sys/resource.h>
-#include <sys/rman.h>
-
-#include <dev/iicbus/iiconf.h>
-
-#include "iicbus_if.h"
-
-struct switch_i2c_softc {
-	device_t		sc_dev;
-};
-
-static int
-switch_i2c_probe(device_t dev)
-{
-	device_set_desc(dev, "Ethernet Switch on I2C");
-	return (BUS_PROBE_NOWILDCARD);
-}
-
-static int
-switch_i2c_init(device_t dev)
-{
-	int error = 0;
-
-	return (error);
-}
-
-static int
-switch_i2c_attach(device_t dev)
-{
-	struct switch_i2c_softc *sc = device_get_softc(dev);
-	int error;
-
-	sc->sc_dev = dev;
-
-
-	return (error);
-}
-
-static device_method_t switch_i2c_methods[] = {
-	DEVMETHOD(device_probe,		switch_i2c_probe),
-	DEVMETHOD(device_attach,	switch_i2c_attach),
-
-	{0, 0},
-};
-
-static driver_t switch_i2c_driver = {
-	"switch_i2c",
-	switch_i2c_methods,
-	sizeof(struct switch_i2c_softc),
-};
-static devclass_t switch_i2c_devclass;
-
-DRIVER_MODULE(switch_iicbus, iicbus, switch_i2c_driver, switch_i2c_devclass, 0, 0);
-MODULE_VERSION(switch_iicbus, 1);
-MODULE_DEPEND(switch_iicbus, iicbus, 1, 1, 1);


More information about the Zrouter-src-freebsd mailing list