1 /* $NetBSD: rpb.h,v 1.8 2002/12/01 21:21:45 matt Exp $ */
3 * Copyright (c) 1995 Ludd, University of Lule}, Sweden.
6 * This code is derived from software contributed to Ludd by Bertram Barth.
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions
11 * 1. Redistributions of source code must retain the above copyright
12 * notice, this list of conditions and the following disclaimer.
13 * 2. Redistributions in binary form must reproduce the above copyright
14 * notice, this list of conditions and the following disclaimer in the
15 * documentation and/or other materials provided with the distribution.
16 * 3. All advertising materials mentioning features or use of this software
17 * must display the following acknowledgement:
18 * This product includes software developed at Ludd, University of
19 * Lule}, Sweden and its contributors.
20 * 4. The name of the author may not be used to endorse or promote products
21 * derived from this software without specific prior written permission
23 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
24 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
25 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
26 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
27 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
28 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
29 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
30 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
32 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
38 * Look at "VAX/VMS Internals and Data Structures" around page 907
39 * to get more info about RPB.
42 struct rpb
{ /* size description */
43 struct rpb
*rpb_base
; /* 4 physical base address of block */
44 void (*rpb_restart
)(void);/* 4 physical address of restart routine */
45 long rpb_chksum
;/* 4 checksum of first 31 longwords of restart */
46 long rpb_rstflg
; /* 4 Restart in progress flag */
47 long rpb_haltpc
; /* 4 PC at HALT/restart */
49 long rpb_haltpsl
;/* 4 PSL at HALT/restart */
50 long rpb_haltcode
;/* 4 reason for restart */
51 long rpb_bootr0
;/* 24 Saved bootstrap parameters (R0 through R5) */
57 long iovec
; /* 4 Address of bootstrap driver */
58 long iovecsz
;/* 4 Size (in bytes) of bootstrap driver */
60 long fillbn
; /* 4 LBN of seconday bootstrap file */
61 long filsiz
; /* 4 Size (in blocks) of seconday bootstrap file */
62 long pfnmap
[2]; /* 8 Descriptor of PFN bitmap */
63 long pfncnt
; /* 4 Count of physical pages */
65 long svaspt
; /* 4 system virtual address of system page table */
66 long csrphy
; /* 4 Physical Address of UBA device CSR */
67 long csrvir
; /* 4 Virtual Address of UBA device CSR */
68 long adpphy
; /* 4 Physical Address of adapter configurate reg. */
69 long adpvir
; /* 4 Virtual Address of adapter configurate reg. */
71 short unit
; /* 2 Bootstrap device unit number */
72 u_char devtyp
; /* 1 Bootstrap device type code */
73 u_char slave
; /* 1 Bootstrap device slave unit number */
74 char file
[40]; /* 40 Secondary bootstrap file name */
75 u_char confreg
[16]; /* 16 Byte array of adapter types */
78 u_char hdrpgcnt
; /* 1 Count of header pages in 2nd bootstrap image */
79 short bootndt
;/* 2 Type of boot adapter */
80 u_char flags
; /* 1 Miscellaneous flag bits */
82 long align
; /* if the compiler doesnt proper alignment */
84 long max_pfn
;/* 4 Absolute highest PFN */
85 long sptep
; /* 4 System space PTE prototype register */
86 long sbr
; /* 4 Saved system base register */
87 long cpudbvec
;/* 4 Physical address of per-CPU database vector */
89 long cca_addr
; /* 4 Physical address of CCA */
90 long slr
; /* 4 Saved system length register */
91 long memdesc
[16]; /* 64 Longword array of memory descriptors */
92 long smp_pc
; /* 4 SMP boot page physical address */
93 long wait
; /* 4 Bugcheck loop code for attached processor */
95 long badpgs
; /* 4 Number of bad pages found in memory scan */
96 u_char ctrlltr
;/* 1 Controller letter designation */
97 u_char scbpagct
; /* 1 SCB page count */
98 u_char reserved
[6]; /* 6 -- */
99 long vmb_revision
; /* 4 VMB revision label */
103 * Bootstrap device number encoding.
115 #define BDEV_RD 36 /* ST506/MFM disk on HDC9224 */
116 #define BDEV_ST 37 /* SCSI tape on NCR5380 */
117 #define BDEV_SD 42 /* SCSI disk on NCR5380 */
118 #define BDEV_SDN 46 /* SCSI disk on NCR5394 (VS4000) */
127 extern struct rpb rpb
;
130 #endif /* _VAX_RPB_H_ */