From 67abd74816ab193c435753dae70f8f7cf59644eb Mon Sep 17 00:00:00 2001 From: ragge Date: Sat, 16 Sep 1995 15:58:57 +0000 Subject: [PATCH] struct rpb -> include/rpb.h --- sys/arch/vax/boot/data.h | 77 ++-------------------------------------- 1 file changed, 3 insertions(+), 74 deletions(-) diff --git a/sys/arch/vax/boot/data.h b/sys/arch/vax/boot/data.h index 07184d3b122c..d63b5496fbc3 100644 --- a/sys/arch/vax/boot/data.h +++ b/sys/arch/vax/boot/data.h @@ -1,4 +1,4 @@ -/* $NetBSD: data.h,v 1.3 1995/06/16 15:07:58 ragge Exp $ */ +/* $NetBSD: data.h,v 1.4 1995/09/16 15:58:57 ragge Exp $ */ /* * Copyright (c) 1995 Ludd, University of Lule}, Sweden. * All rights reserved. @@ -37,84 +37,13 @@ -extern int bootregs[16]; - -/* - * "VAX/VMS Internals and Data Structures" - * gives the following description of RPB on page 907 ff. - */ - -#ifndef byte -# define byte unsigned char -#endif - -struct rpb { /* size description */ - long base; /* 4 physical base address of block */ - long restart; /* 4 physical address of EXE$RESTART */ - long chksum; /* 4 checksum of first 31 longwords of EXE$RESTART */ - long rststflg; /* 4 Restart in progress flag */ - long haltpc; /* 4 PC at HALT/restart */ - /* offset: 20 */ - long haltpsl; /* 4 PSL at HALT/restart */ - long haltcode; /* 4 reason for restart */ - long bootr0; /* 24 Saved bootstrap parameters (R0 through R5) */ - long bootr1; - long bootr2; - long bootr3; - long bootr4; - long bootr5; - long iovec; /* 4 Address of bootstrap driver */ - long iovecsz; /* 4 Size (in bytes) of bootstrap driver */ - /* offset: 60 */ - long fillbn; /* 4 LBN of seconday bootstrap file */ - long filsiz; /* 4 Size (in blocks) of seconday bootstrap file */ - long pfnmap[2]; /* 8 Descriptor of PFN bitmap */ - long pfncnt; /* 4 Count of physical pages */ - /* offset: 80 */ - long svaspt; /* 4 system virtual address of system page table */ - long csrphy; /* 4 Physical Address of UBA device CSR */ - long csrvir; /* 4 Virtual Address of UBA device CSR */ - long adpphy; /* 4 Physical Address of adapter configurate reg. */ - long adpvir; /* 4 Virtual Address of adapter configurate reg. */ - /* offset: 100 */ - short unit; /* 2 Bootstrap device unit number */ - byte devtyp; /* 1 Bootstrap device type code */ - byte slave; /* 1 Bootstrap device slave unit number */ - char file[40]; /* 40 Secondary bootstrap file name */ - byte confreg[16]; /* 16 Byte array of adapter types */ - /* offset: 160 */ -#if 0 - byte hdrpgcnt; /* 1 Count of header pages in 2nd bootstrap image */ - short bootndt; /* 2 Type of boot adapter */ - byte flags; /* 1 Miscellaneous flag bits */ -#else - long align; /* if the compiler doesnt proper alignment */ -#endif - long max_pfn; /* 4 Absolute highest PFN */ - long sptep; /* 4 System space PTE prototype register */ - long sbr; /* 4 Saved system base register */ - long cpudbvec; /* 4 Physical address of per-CPU database vector */ - /* offset: 180 */ - long cca_addr; /* 4 Physical address of CCA */ - long slr; /* 4 Saved system length register */ - long memdesc[16]; /* 64 Longword array of memory descriptors */ - long smp_pc; /* 4 SMP boot page physical address */ - long wait; /* 4 Bugcheck loop code for attached processor */ - /* offset: 260 */ - long badpgs; /* 4 Number of bad pages found in memory scan */ - byte ctrlltr; /* 1 Controller letter designation */ - byte scbpagct; /* 1 SCB page count */ - byte reserved[6]; /* 6 -- */ - long vmb_revision; /* 4 VMB revision label */ -}; - -extern struct rpb *rpb; +extern unsigned *bootregs; /* * rpb->iovec gives pointer to this structure. * * bqo->unit_init() is used to initialize the controller, - * bqo->qio() is used to read from boot-device/ + * bqo->qio() is used to read from boot-device */ struct bqo {