blob: 16ef2b7ec2eea2c8ec821d5f27f16433e1dd8743 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
/* $OpenBSD: cpu.h,v 1.3 1998/07/14 17:47:27 mickey Exp $ */
/*
* Copyright (c) 1988-1994, The University of Utah and
* the Computer Systems Laboratory at the University of Utah (CSL).
* All rights reserved.
*
* Permission to use, copy, modify and distribute this software is hereby
* granted provided that (1) source code retains these copyright, permission,
* and disclaimer notices, and (2) redistributions including binaries
* reproduce the notices in supporting documentation, and (3) all advertising
* materials mentioning features or use of this software display the following
* acknowledgement: ``This product includes software developed by the
* Computer Systems Laboratory at the University of Utah.''
*
* THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
* IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
* ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
*
* CSL requests users of this software to return to csl-dist@cs.utah.edu any
* improvements that they make and grant CSL redistribution rights.
*
* Utah $Hdr: cpu.h 1.19 94/12/16$
*/
#ifndef _HPPA_CPU_H_
#define _HPPA_CPU_H_
#include <machine/iodc.h>
#include <machine/iomod.h>
#include <machine/frame.h>
/*
* Exported definitions unique to hp700/PA-RISC cpu support.
*/
/*
* definitions of cpu-dependent requirements
* referenced in generic code
*/
#undef COPY_SIGCODE /* copy sigcode above user stack in exec */
#define HPPA_IOSPACE 0xf0000000
#define HPPA_IOBCAST 0xfffc0000
#define HPPA_PDC_LOW 0xef000000
#define HPPA_PDC_HIGH 0xf1000000
#define HPPA_FPA 0xfff80000
#define HPPA_FLEX_DATA 0xfff80001
#define HPPA_DMA_ENABLE 0x00000001
#define HPPA_FLEX_MASK 0xfffc0000
#define HPPA_SPA_ENABLE 0x00000020
#define HPPA_NMODSPBUS 64
#define CLKF_BASEPRI(framep) (0) /* XXX */
#define CLKF_PC(framep) (0) /* XXX */
#define CLKF_INTR(framep) (0) /* XXX */
#define CLKF_USERMODE(framep) (0) /* XXX */
#define signotify(p) (void)(p)
#define need_resched() {(void)1;}
#define need_proftick(p) {(void)(p);}
/*
* Expected (and optimized for) cache line size (in bytes).
*/
#define CACHE_LINE_SIZE 32
#ifdef _KERNEL
void hppa_init __P((void));
#endif
/*
* Boot arguments stuff
*/
#define BOOTARG_LEN (NBPG)
#define BOOTARG_OFF (NBPG)
/*
* CTL_MACHDEP definitions.
*/
#define CPU_CONSDEV 1 /* dev_t: console terminal device */
#define CPU_MAXID 2 /* number of valid machdep ids */
#define CTL_MACHDEP_NAMES { \
{ 0, 0 }, \
{ "console_device", CTLTYPE_STRUCT }, \
}
#endif /* _HPPA_CPU_H_ */
|