Deleted Added
full compact
octebus.c (210311) octebus.c (219695)
1/*-
2 * Copyright (c) 2010 Juli Mallett <jmallett@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

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

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
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 *
1/*-
2 * Copyright (c) 2010 Juli Mallett <jmallett@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

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

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
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 * $FreeBSD: head/sys/mips/cavium/octe/octebus.c 210311 2010-07-20 19:25:11Z jmallett $
26 * $FreeBSD: head/sys/mips/cavium/octe/octebus.c 219695 2011-03-16 08:56:22Z jmallett $
27 */
28
29/*
30 * Cavium Octeon Ethernet pseudo-bus attachment.
31 */
32
33#include <sys/param.h>
34#include <sys/systm.h>

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

107 return (ENXIO);
108
109 return (0);
110}
111
112static int
113octebus_detach(device_t dev)
114{
27 */
28
29/*
30 * Cavium Octeon Ethernet pseudo-bus attachment.
31 */
32
33#include <sys/param.h>
34#include <sys/systm.h>

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

107 return (ENXIO);
108
109 return (0);
110}
111
112static int
113octebus_detach(device_t dev)
114{
115 cvm_oct_cleanup_module();
115 cvm_oct_cleanup_module(dev);
116 return (0);
117}
118
119static int
120octebus_shutdown(device_t dev)
121{
122 return (octebus_detach(dev));
123}
116 return (0);
117}
118
119static int
120octebus_shutdown(device_t dev)
121{
122 return (octebus_detach(dev));
123}