cpu.h revision 1.16 1 1.16 phx /* $NetBSD: cpu.h,v 1.16 2009/07/21 09:49:15 phx Exp $ */
2 1.6 is
3 1.6 is /*
4 1.6 is * Copyright (C) 1995-1997 Wolfgang Solfrank.
5 1.6 is * Copyright (C) 1995-1997 TooLs GmbH.
6 1.6 is * All rights reserved.
7 1.6 is *
8 1.6 is * Redistribution and use in source and binary forms, with or without
9 1.6 is * modification, are permitted provided that the following conditions
10 1.6 is * are met:
11 1.6 is * 1. Redistributions of source code must retain the above copyright
12 1.6 is * notice, this list of conditions and the following disclaimer.
13 1.6 is * 2. Redistributions in binary form must reproduce the above copyright
14 1.6 is * notice, this list of conditions and the following disclaimer in the
15 1.6 is * documentation and/or other materials provided with the distribution.
16 1.6 is * 3. All advertising materials mentioning features or use of this software
17 1.6 is * must display the following acknowledgement:
18 1.16 phx * This product includes software developed by TooLs GmbH.
19 1.6 is * 4. The name of TooLs GmbH may not be used to endorse or promote products
20 1.6 is * derived from this software without specific prior written permission.
21 1.6 is *
22 1.6 is * THIS SOFTWARE IS PROVIDED BY TOOLS GMBH ``AS IS'' AND ANY EXPRESS OR
23 1.6 is * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
24 1.6 is * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
25 1.6 is * IN NO EVENT SHALL TOOLS GMBH BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 1.6 is * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
27 1.6 is * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
28 1.6 is * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
29 1.6 is * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
30 1.6 is * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
31 1.6 is * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 1.6 is */
33 1.16 phx #ifndef _MACHINE_CPU_H_
34 1.16 phx #define _MACHINE_CPU_H_
35 1.1 is
36 1.16 phx #if defined(_KERNEL)
37 1.16 phx #define CPU_MAXNUM 1
38 1.1 is
39 1.16 phx #define A1200 1200
40 1.16 phx #define A3000 3000
41 1.16 phx #define A4000 4000
42 1.16 phx extern int machineid;
43 1.1 is
44 1.1 is /*
45 1.16 phx * Prototypes from amiga_init.c
46 1.16 phx */
47 1.16 phx void *alloc_z2mem (long);
48 1.1 is
49 1.1 is /*
50 1.16 phx * Prototypes from autoconf.c
51 1.1 is */
52 1.16 phx int is_a1200 (void);
53 1.16 phx int is_a3000 (void);
54 1.16 phx int is_a4000 (void);
55 1.1 is
56 1.1 is /*
57 1.16 phx * Prototypes from machdep.c
58 1.1 is */
59 1.16 phx int dma_cachectl(void *, int);
60 1.1 is #endif
61 1.1 is
62 1.16 phx #include <powerpc/cpu.h>
63 1.16 phx
64 1.16 phx #endif /* _MACHINE_CPU_H_ */
65