xref: /netbsd-src/sys/arch/luna68k/include/cpu.h (revision c13a5359d541fd49b4c406f5b12209b1640235a5)
1*c13a5359Sthorpej /* $NetBSD: cpu.h,v 1.42 2024/01/20 00:15:31 thorpej Exp $ */
295d00ea7Snisimura 
395d00ea7Snisimura /*
49b6bd2d9Srmind  * Copyright (c) 1988 University of Utah.
595d00ea7Snisimura  * Copyright (c) 1982, 1990, 1993
695d00ea7Snisimura  *	The Regents of the University of California.  All rights reserved.
795d00ea7Snisimura  *
895d00ea7Snisimura  * This code is derived from software contributed to Berkeley by
995d00ea7Snisimura  * the Systems Programming Group of the University of Utah Computer
1095d00ea7Snisimura  * Science Department.
1195d00ea7Snisimura  *
1295d00ea7Snisimura  * Redistribution and use in source and binary forms, with or without
1395d00ea7Snisimura  * modification, are permitted provided that the following conditions
1495d00ea7Snisimura  * are met:
1595d00ea7Snisimura  * 1. Redistributions of source code must retain the above copyright
1695d00ea7Snisimura  *    notice, this list of conditions and the following disclaimer.
1795d00ea7Snisimura  * 2. Redistributions in binary form must reproduce the above copyright
1895d00ea7Snisimura  *    notice, this list of conditions and the following disclaimer in the
1995d00ea7Snisimura  *    documentation and/or other materials provided with the distribution.
20aad01611Sagc  * 3. Neither the name of the University nor the names of its contributors
21aad01611Sagc  *    may be used to endorse or promote products derived from this software
22aad01611Sagc  *    without specific prior written permission.
23aad01611Sagc  *
24aad01611Sagc  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
25aad01611Sagc  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
26aad01611Sagc  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
27aad01611Sagc  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
28aad01611Sagc  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
29aad01611Sagc  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30aad01611Sagc  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31aad01611Sagc  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32aad01611Sagc  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33aad01611Sagc  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34aad01611Sagc  * SUCH DAMAGE.
35aad01611Sagc  *
36aad01611Sagc  * from: Utah $Hdr: cpu.h 1.16 91/03/25$
37aad01611Sagc  *
38aad01611Sagc  *	@(#)cpu.h	8.4 (Berkeley) 1/5/94
39aad01611Sagc  */
4095d00ea7Snisimura 
4195d00ea7Snisimura #ifndef _MACHINE_CPU_H
4295d00ea7Snisimura #define _MACHINE_CPU_H
4395d00ea7Snisimura 
4467afbd62Smrg #if defined(_KERNEL_OPT)
45a7d0570eSthorpej #include "opt_lockdebug.h"
46a7d0570eSthorpej #endif
47a7d0570eSthorpej 
4895d00ea7Snisimura /*
4995d00ea7Snisimura  * Get common m68k CPU definitions.
5095d00ea7Snisimura  */
5195d00ea7Snisimura #include <m68k/cpu.h>
528ff81a2aStsutsui 
5395d00ea7Snisimura /*
5495d00ea7Snisimura  * Values for machtype
5595d00ea7Snisimura  */
5695d00ea7Snisimura #define LUNA_I		1
5795d00ea7Snisimura #define LUNA_II		2
5895d00ea7Snisimura 
5995d00ea7Snisimura #ifdef _KERNEL
6095d00ea7Snisimura extern	int machtype;
6195d00ea7Snisimura extern	char *intiobase, *intiolimit;		/* XXX */
6295d00ea7Snisimura extern	u_int intiobase_phys, intiotop_phys;	/* XXX */
6395d00ea7Snisimura 
6495d00ea7Snisimura /* machdep.c functions */
6502cdf4d2Sdsl void	dumpsys(void);
6695d00ea7Snisimura 
6795d00ea7Snisimura /* machdep.c functions */
6802cdf4d2Sdsl int	badaddr(void *, int);
6995d00ea7Snisimura 
7095d00ea7Snisimura #endif
7195d00ea7Snisimura 
7295d00ea7Snisimura #endif /* _MACHINE_CPU_H */
73