Deleted Added
full compact
lbc.c (266000) lbc.c (266160)
1/*-
2 * Copyright (c) 2006-2008, Juniper Networks, Inc.
3 * Copyright (c) 2008 Semihalf, Rafal Czubak
4 * Copyright (c) 2009 The FreeBSD Foundation
5 * All rights reserved.
6 *
7 * Portions of this software were developed by Semihalf
8 * under sponsorship from the FreeBSD Foundation.

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

27 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
28 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
29 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 */
33
34#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2006-2008, Juniper Networks, Inc.
3 * Copyright (c) 2008 Semihalf, Rafal Czubak
4 * Copyright (c) 2009 The FreeBSD Foundation
5 * All rights reserved.
6 *
7 * Portions of this software were developed by Semihalf
8 * under sponsorship from the FreeBSD Foundation.

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

27 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
28 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
29 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 */
33
34#include <sys/cdefs.h>
35__FBSDID("$FreeBSD: stable/10/sys/powerpc/mpc85xx/lbc.c 266000 2014-05-14 01:53:20Z ian $");
35__FBSDID("$FreeBSD: stable/10/sys/powerpc/mpc85xx/lbc.c 266160 2014-05-15 17:30:16Z ian $");
36
37#include <sys/param.h>
38#include <sys/systm.h>
39#include <sys/ktr.h>
40#include <sys/kernel.h>
41#include <sys/malloc.h>
42#include <sys/module.h>
43#include <sys/bus.h>

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

108static driver_t lbc_driver = {
109 "lbc",
110 lbc_methods,
111 sizeof(struct lbc_softc)
112};
113
114devclass_t lbc_devclass;
115
36
37#include <sys/param.h>
38#include <sys/systm.h>
39#include <sys/ktr.h>
40#include <sys/kernel.h>
41#include <sys/malloc.h>
42#include <sys/module.h>
43#include <sys/bus.h>

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

108static driver_t lbc_driver = {
109 "lbc",
110 lbc_methods,
111 sizeof(struct lbc_softc)
112};
113
114devclass_t lbc_devclass;
115
116DRIVER_MODULE(lbc, nexus, lbc_driver, lbc_devclass, 0, 0);
116DRIVER_MODULE(lbc, ofwbus, lbc_driver, lbc_devclass, 0, 0);
117
118/*
119 * Calculate address mask used by OR(n) registers. Use memory region size to
120 * determine mask value. The size must be a power of two and within the range
121 * of 32KB - 4GB. Otherwise error code is returned. Value representing
122 * 4GB size can be passed as 0xffffffff.
123 */
124static uint32_t

--- 701 unchanged lines hidden ---
117
118/*
119 * Calculate address mask used by OR(n) registers. Use memory region size to
120 * determine mask value. The size must be a power of two and within the range
121 * of 32KB - 4GB. Otherwise error code is returned. Value representing
122 * 4GB size can be passed as 0xffffffff.
123 */
124static uint32_t

--- 701 unchanged lines hidden ---