From 1d90a0a507cf87d1cb5bf5fa98b2dafef62dae87 Mon Sep 17 00:00:00 2001 From: ragge Date: Sat, 15 Mar 1997 15:09:40 +0000 Subject: [PATCH] Add definitions for DEC HW device numbers. --- sys/arch/vax/include/cpu.h | 4 +++- sys/arch/vax/include/rpb.h | 24 +++++++++++++++++++++++- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/sys/arch/vax/include/cpu.h b/sys/arch/vax/include/cpu.h index 5e0301b94384..ebba25bec47a 100644 --- a/sys/arch/vax/include/cpu.h +++ b/sys/arch/vax/include/cpu.h @@ -1,4 +1,4 @@ -/* $NetBSD: cpu.h,v 1.22 1997/02/19 10:06:03 ragge Exp $ */ +/* $NetBSD: cpu.h,v 1.23 1997/03/15 15:09:41 ragge Exp $ */ /* * Copyright (c) 1994 Ludd, University of Lule}, Sweden @@ -68,8 +68,10 @@ struct clockframe { int ps; }; +extern struct device *booted_from; extern int cold; extern int mastercpu; +extern int bootdev; #define setsoftnet() mtpr(12,PR_SIRR) #define setsoftclock() mtpr(8,PR_SIRR) diff --git a/sys/arch/vax/include/rpb.h b/sys/arch/vax/include/rpb.h index 7e5e1f02080d..90d7138b6425 100644 --- a/sys/arch/vax/include/rpb.h +++ b/sys/arch/vax/include/rpb.h @@ -1,4 +1,4 @@ -/* $NetBSD: rpb.h,v 1.2 1995/10/20 13:47:27 ragge Exp $ */ +/* $NetBSD: rpb.h,v 1.3 1997/03/15 15:09:40 ragge Exp $ */ /* * Copyright (c) 1995 Ludd, University of Lule}, Sweden. * All rights reserved. @@ -97,6 +97,28 @@ struct rpb { /* size description */ long vmb_revision; /* 4 VMB revision label */ }; +/* + * Bootstrap device number encoding. + */ +#define BDEV_HP 0 +#define BDEV_RK 1 +#define BDEV_RL 2 +#define BDEV_IDC 3 +#define BDEV_UDA 17 +#define BDEV_TK 18 +#define BDEV_HSC 32 +#define BDEV_KDB 33 +#define BDEV_KRB 34 +#define BDEV_NK 35 +#define BDEV_RD 36 +#define BDEV_SCSI 37 +#define BDEV_SFL 42 +#define BDEV_CNSL 64 +#define BDEV_QE 96 +#define BDEV_DE 97 +#define BDEV_NI 98 +#define BDEV_LE 99 + #ifdef _KERNEL extern struct rpb rpb; #endif