From 44df600994510909c2131eda54bd775e7fdc8204 Mon Sep 17 00:00:00 2001 From: thorpej Date: Fri, 13 Feb 1998 00:07:25 +0000 Subject: [PATCH] Define the structure of the HWRPB's Dynamic System Recognition area. --- sys/arch/alpha/include/rpb.h | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/sys/arch/alpha/include/rpb.h b/sys/arch/alpha/include/rpb.h index 208d75e877d1..8fef9d308568 100644 --- a/sys/arch/alpha/include/rpb.h +++ b/sys/arch/alpha/include/rpb.h @@ -1,4 +1,4 @@ -/* $NetBSD: rpb.h,v 1.16 1998/02/12 02:27:48 cgd Exp $ */ +/* $NetBSD: rpb.h,v 1.17 1998/02/13 00:07:25 thorpej Exp $ */ /* * Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University. @@ -363,4 +363,24 @@ struct mddt { int64_t mddt_usage; /* 30: bitmap permissions */ } mddt_clusters[1]; /* variable length array */ }; + +/* + * DSR: Dynamic System Recognition. We're interested in the sysname + * offset. The data pointed to by sysname is: + * + * [8 bytes: length of system name][N bytes: system name string] + * + * The system name string is NUL-terminated. + */ +struct dsrdb { + int64_t dsr_smm; /* 0: SMM number */ + u_int64_t dsr_lurt_off; /* 8: LURT table offset */ + u_int64_t dsr_sysname_off; /* 16: offset to sysname */ +}; + +/* + * The DSR appeared in version 5 of the HWRPB. + */ +#define HWRPB_DSRDB_MINVERS 5 + #endif /* ASSEMBLER */