Deleted Added
full compact
pmuvar.h (184299) pmuvar.h (185754)
1/*-
2 * Copyright (c) 2006 Michael Lorenz
3 * Copyright (c) 2008 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 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28 * POSSIBILITY OF SUCH DAMAGE.
29 *
1/*-
2 * Copyright (c) 2006 Michael Lorenz
3 * Copyright (c) 2008 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 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28 * POSSIBILITY OF SUCH DAMAGE.
29 *
30 * $FreeBSD: head/sys/powerpc/powermac/pmuvar.h 184299 2008-10-26 19:37:38Z nwhitehorn $
30 * $FreeBSD: head/sys/powerpc/powermac/pmuvar.h 185754 2008-12-08 02:37:08Z nwhitehorn $
31 *
32 */
33
34#ifndef PMUVAR_H
35#define PMUVAR_H
36
37/* PMU commands */
38#define PMU_POWER_CTRL0 0x10 /* control power of some devices */

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

153 device_t sc_dev;
154 int sc_memrid;
155 struct resource *sc_memr;
156 int sc_irqrid;
157 struct resource *sc_irq;
158 void *sc_ih;
159
160 struct mtx sc_mutex;
31 *
32 */
33
34#ifndef PMUVAR_H
35#define PMUVAR_H
36
37/* PMU commands */
38#define PMU_POWER_CTRL0 0x10 /* control power of some devices */

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

153 device_t sc_dev;
154 int sc_memrid;
155 struct resource *sc_memr;
156 int sc_irqrid;
157 struct resource *sc_irq;
158 void *sc_ih;
159
160 struct mtx sc_mutex;
161
162 device_t adb_bus;
161 device_t adb_bus;
162 volatile int sc_autopoll;
163 int sc_batteries;
164};
163
165
164 int sc_node;
165 volatile int sc_state;
166 int sc_polling;
167 int sc_error;
168 volatile int sc_autopoll;
166struct pmu_battstate {
167 int state;
168
169 int charge;
170 int maxcharge;
171 int current;
172 int voltage;
169};
170
171#endif /* PMUVAR_H */
173};
174
175#endif /* PMUVAR_H */