xref: /openbsd-src/sys/arch/powerpc/include/powerpc.h (revision de96ebef9048056dda91d630a94a4d47a4e094da)
1*de96ebefSmpi /*	$OpenBSD: powerpc.h,v 1.8 2014/04/01 20:42:39 mpi Exp $	*/
2*de96ebefSmpi /*	$NetBSD: powerpc.h,v 1.1 1996/09/30 16:34:30 ws Exp $	*/
3*de96ebefSmpi 
4*de96ebefSmpi /*
5*de96ebefSmpi  * Copyright (C) 1996 Wolfgang Solfrank.
6*de96ebefSmpi  * Copyright (C) 1996 TooLs GmbH.
7*de96ebefSmpi  * All rights reserved.
8*de96ebefSmpi  *
9*de96ebefSmpi  * Redistribution and use in source and binary forms, with or without
10*de96ebefSmpi  * modification, are permitted provided that the following conditions
11*de96ebefSmpi  * are met:
12*de96ebefSmpi  * 1. Redistributions of source code must retain the above copyright
13*de96ebefSmpi  *    notice, this list of conditions and the following disclaimer.
14*de96ebefSmpi  * 2. Redistributions in binary form must reproduce the above copyright
15*de96ebefSmpi  *    notice, this list of conditions and the following disclaimer in the
16*de96ebefSmpi  *    documentation and/or other materials provided with the distribution.
17*de96ebefSmpi  * 3. All advertising materials mentioning features or use of this software
18*de96ebefSmpi  *    must display the following acknowledgement:
19*de96ebefSmpi  *	This product includes software developed by TooLs GmbH.
20*de96ebefSmpi  * 4. The name of TooLs GmbH may not be used to endorse or promote products
21*de96ebefSmpi  *    derived from this software without specific prior written permission.
22*de96ebefSmpi  *
23*de96ebefSmpi  * THIS SOFTWARE IS PROVIDED BY TOOLS GMBH ``AS IS'' AND ANY EXPRESS OR
24*de96ebefSmpi  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
25*de96ebefSmpi  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
26*de96ebefSmpi  * IN NO EVENT SHALL TOOLS GMBH BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
27*de96ebefSmpi  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
28*de96ebefSmpi  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
29*de96ebefSmpi  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
30*de96ebefSmpi  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
31*de96ebefSmpi  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
32*de96ebefSmpi  * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33*de96ebefSmpi  */
34*de96ebefSmpi 
35*de96ebefSmpi #ifndef	_POWERPC_POWERPC_H_
36*de96ebefSmpi #define	_POWERPC_POWERPC_H_
37*de96ebefSmpi 
38*de96ebefSmpi struct mem_region {
39*de96ebefSmpi 	vaddr_t start;
40*de96ebefSmpi 	vsize_t size;
41*de96ebefSmpi };
42*de96ebefSmpi 
43*de96ebefSmpi void ppc_mem_regions(struct mem_region **, struct mem_region **);
44*de96ebefSmpi 
45*de96ebefSmpi struct dumpmem {
46*de96ebefSmpi 	vaddr_t         start;
47*de96ebefSmpi 	vsize_t         end;
48*de96ebefSmpi };
49*de96ebefSmpi 
50*de96ebefSmpi extern struct dumpmem dumpmem[VM_PHYSSEG_MAX];
51*de96ebefSmpi extern u_int ndumpmem;
52*de96ebefSmpi 
53*de96ebefSmpi #endif	/* _POWERPC_POWERPC_H_ */
54