]> git.lizzy.rs Git - plan9front.git/blob - sys/src/9/alphapc/axp.h
merge
[plan9front.git] / sys / src / 9 / alphapc / axp.h
1 typedef struct Hwrpb    Hwrpb;
2 typedef struct Hwcpu    Hwcpu;
3 typedef struct Hwdsr    Hwdsr;
4
5 struct Hwrpb
6 {
7         uvlong  phys;
8         uvlong  sign;
9         uvlong  rev;
10         uvlong  size;
11         uvlong  cpu0;
12         uvlong  by2pg;
13         uvlong  pabits;
14         uvlong  maxasn;
15         char    ssn[16];
16         uvlong  systype;
17         uvlong  sysvar;
18         uvlong  sysrev;
19         uvlong  ifreq;
20         uvlong  cfreq;
21         uvlong  vptb;
22         uvlong  resv;
23         uvlong  tbhint;
24         uvlong  ncpu;
25         uvlong  cpulen;
26         uvlong  cpuoff;
27         uvlong  nctb;
28         uvlong  ctblen;
29         uvlong  ctboff;
30         uvlong  ccrboff;
31         uvlong  memoff;
32         uvlong  confoff;
33         uvlong  fruoff;
34         uvlong  termsaveva;
35         uvlong  termsavex;
36         uvlong  termrestva;
37         uvlong  termrestx;
38         uvlong  termresetva;
39         uvlong  termresetx;
40         uvlong  sysresv;
41         uvlong  hardresv;
42         uvlong  csum;
43         uvlong  rxrdymsk;
44         uvlong  txrdymsk;
45         uvlong  dsroff;         /* rev 6 or higher */
46 };
47
48 extern Hwrpb* hwrpb;
49
50 struct Hwcpu
51 {
52         uvlong  hwpcb[16];
53         uvlong  state;
54         uvlong  palmainlen;
55         uvlong  palscratchlen;
56         uvlong  palmainpa;
57         uvlong  palscratchpa;
58         uvlong  palrev;
59         uvlong  cputype;
60         uvlong  cpuvar;
61         uvlong  cpurev;
62         uvlong  serial[2];
63         /* more crap ... */
64 };
65
66 struct Hwdsr
67 {
68         vlong   smm;
69         uvlong  lurtoff;
70         uvlong  sysnameoff;
71 };