Annotation of sys/arch/hp300/include/hp300spu.h, Revision 1.1.1.1
1.1 nbrk 1: /* $OpenBSD: hp300spu.h,v 1.7 2005/09/27 22:05:37 miod Exp $ */
2: /* $NetBSD: hp300spu.h,v 1.2 1997/05/01 05:26:48 thorpej Exp $ */
3:
4: /*-
5: * Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
6: * All rights reserved.
7: *
8: * This code is derived from software contributed to The NetBSD Foundation
9: * by Jason R. Thorpe.
10: *
11: * Redistribution and use in source and binary forms, with or without
12: * modification, are permitted provided that the following conditions
13: * are met:
14: * 1. Redistributions of source code must retain the above copyright
15: * notice, this list of conditions and the following disclaimer.
16: * 2. Redistributions in binary form must reproduce the above copyright
17: * notice, this list of conditions and the following disclaimer in the
18: * documentation and/or other materials provided with the distribution.
19: * 3. All advertising materials mentioning features or use of this software
20: * must display the following acknowledgement:
21: * This product includes software developed by the NetBSD
22: * Foundation, Inc. and its contributors.
23: * 4. Neither the name of The NetBSD Foundation nor the names of its
24: * contributors may be used to endorse or promote products derived
25: * from this software without specific prior written permission.
26: *
27: * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
28: * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
29: * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
30: * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE
31: * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
32: * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
33: * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
34: * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
35: * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
36: * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
37: * POSSIBILITY OF SUCH DAMAGE.
38: */
39:
40: #ifndef _HP300_HP300SPU_H_
41: #define _HP300_HP300SPU_H_
42:
43: /*
44: * This file describes various constants that describe and/or
45: * are unique to the HP 9000/300 or 400 SPUs.
46: */
47:
48: /* values for machineid */
49: #define HP_320 0 /* 16MHz 68020+HP MMU+16K external cache */
50: #define HP_330 1 /* 16MHz 68020+68851 MMU */
51: #define HP_350 2 /* 25MHz 68020+HP MMU+32K external cache */
52: #define HP_360 3 /* 25MHz 68030 */
53: #define HP_370 4 /* 33MHz 68030+64K external cache */
54: #define HP_340 5 /* 16MHz 68030 */
55: #define HP_345 6 /* 50MHz 68030+32K external cache */
56: #define HP_375 7 /* 50MHz 68030+32K external cache */
57: #define HP_400 8 /* 50MHz 68030+32K external cache */
58: #define HP_380 9 /* 25MHz 68040 */
59: #define HP_425 10 /* 25MHz 68040 */
60: #define HP_433 11 /* 33MHz 68040 */
61: #define HP_385 12 /* 33MHz 68040 */
62: #define HP_362 13 /* 25MHz 68030 */
63: #define HP_382 14 /* 25MHz 68040 */
64:
65: /* values for mmuid - used to differentiate similar CPU/cache combos */
66: #define MMUID_345 1 /* 345 */
67: #define MMUID_375 3 /* 375 */
68: #define MMUID_382 11 /* 382 */
69: #define MMUID_385 2 /* 385 */
70: #define MMUID_425_T 5 /* 425t - 25MHz Trailways */
71: #define MMUID_425_S 7 /* 425s - 25MHz Strider */
72: #define MMUID_433_T 4 /* 433t - 33MHz Trailways */
73: #define MMUID_433_S 6 /* 433s - 33MHz Strider */
74: #define MMUID_425_E 9 /* 425e - 25MHz Woody */
75:
76: #define MMUID_SHIFT 8 /* right shift by this... */
77: #define MMUID_MASK 0xff /* ...and mask with this to get mmuid */
78:
79: #if defined (_KERNEL) && !defined(_LOCORE)
80: extern int machineid; /* CPU model */
81: extern int cpuspeed; /* CPU speed, in MHz */
82: extern int mmuid; /* MMU id */
83: #endif /* _KERNEL && ! _LOCORE */
84:
85: #endif /* _HP300_HP300SPU_H_ */
CVSweb