pmu.c (259284) | pmu.c (260872) |
---|---|
1/*- 2 * Copyright (c) 2006 Michael Lorenz 3 * Copyright 2008 by Nathan Whitehorn 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 13 unchanged lines hidden (view full) --- 22 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 23 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * 27 */ 28 29#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2006 Michael Lorenz 3 * Copyright 2008 by Nathan Whitehorn 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 13 unchanged lines hidden (view full) --- 22 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 23 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * 27 */ 28 29#include <sys/cdefs.h> |
30__FBSDID("$FreeBSD: head/sys/powerpc/powermac/pmu.c 259284 2013-12-13 02:37:35Z jhibbits $"); | 30__FBSDID("$FreeBSD: head/sys/powerpc/powermac/pmu.c 260872 2014-01-19 00:23:59Z jhibbits $"); |
31 32#include <sys/param.h> 33#include <sys/systm.h> 34#include <sys/module.h> 35#include <sys/bus.h> 36#include <sys/conf.h> 37#include <sys/kernel.h> 38#include <sys/clock.h> --- 334 unchanged lines hidden (view full) --- 373 pmu_write_reg(sc, vDirB, (pmu_read_reg(sc, vDirB) | vPB4) & ~vPB3); 374 375 reg = PMU_DEFAULTS; 376 pmu_send(sc, PMU_SET_IMASK, 1, ®, 16, resp); 377 378 pmu_write_reg(sc, vIER, 0x94); /* make sure VIA interrupts are on */ 379 380 pmu_send(sc, PMU_SYSTEM_READY, 1, cmd, 16, resp); | 31 32#include <sys/param.h> 33#include <sys/systm.h> 34#include <sys/module.h> 35#include <sys/bus.h> 36#include <sys/conf.h> 37#include <sys/kernel.h> 38#include <sys/clock.h> --- 334 unchanged lines hidden (view full) --- 373 pmu_write_reg(sc, vDirB, (pmu_read_reg(sc, vDirB) | vPB4) & ~vPB3); 374 375 reg = PMU_DEFAULTS; 376 pmu_send(sc, PMU_SET_IMASK, 1, ®, 16, resp); 377 378 pmu_write_reg(sc, vIER, 0x94); /* make sure VIA interrupts are on */ 379 380 pmu_send(sc, PMU_SYSTEM_READY, 1, cmd, 16, resp); |
381 pmu_send(sc, PMU_GET_VERSION, 1, cmd, 16, resp); | 381 pmu_send(sc, PMU_GET_VERSION, 0, cmd, 16, resp); |
382 383 /* Initialize child buses (ADB) */ 384 node = ofw_bus_get_node(dev); 385 386 for (child = OF_child(node); child != 0; child = OF_peer(child)) { 387 char name[32]; 388 389 memset(name, 0, sizeof(name)); --- 736 unchanged lines hidden --- | 382 383 /* Initialize child buses (ADB) */ 384 node = ofw_bus_get_node(dev); 385 386 for (child = OF_child(node); child != 0; child = OF_peer(child)) { 387 char name[32]; 388 389 memset(name, 0, sizeof(name)); --- 736 unchanged lines hidden --- |