summaryrefslogtreecommitdiff
path: root/sys/arch/vax/vsa/lcg.c
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2011-09-19 21:53:03 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2011-09-19 21:53:03 +0000
commitb7fc97d9812d76a1f7ba09d9ee3d6b89f31158a2 (patch)
tree3c9b8d9e3f2dc920b26c9b7853873c6f4ffc7195 /sys/arch/vax/vsa/lcg.c
parentcffd557b24ccfe493733ce3d4c06f22eb59539b7 (diff)
Try and clean system type constants a bit:
- save the second byte of vax_siedata into a new variable, vax_cpustype, and use it instead of (vax_siedata >> 8) & 0xff or other similar constructs. - the VAX_SIE_KAxxx constants are duplicates of the VAX_STYP_xx constants. Standardize on the latter and kill the former. - only keep VAX_VTYP_xx constants for KA46 and KA47, those are the only systems which use these constants and are told apart by a different SIE byte. No functional change intended.
Diffstat (limited to 'sys/arch/vax/vsa/lcg.c')
-rw-r--r--sys/arch/vax/vsa/lcg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/vax/vsa/lcg.c b/sys/arch/vax/vsa/lcg.c
index 4614f1316d4..bf76d69e2a9 100644
--- a/sys/arch/vax/vsa/lcg.c
+++ b/sys/arch/vax/vsa/lcg.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lcg.c,v 1.18 2011/09/11 14:00:34 miod Exp $ */
+/* $OpenBSD: lcg.c,v 1.19 2011/09/19 21:53:02 miod Exp $ */
/*
* Copyright (c) 2006 Miodrag Vallat.
*
@@ -176,7 +176,7 @@ lcg_match(struct device *parent, void *vcf, void *aux)
return (0);
break;
case VAX_BTYP_48:
- if (((vax_siedata >> 8) & 0xff) != VAX_STYP_48)
+ if (vax_cpustype != VAX_STYP_48)
return (0);
/* KA48 can't boot without the frame buffer board */
break;
@@ -727,7 +727,7 @@ lcgcnprobe()
return (0); /* no frame buffer */
break;
case VAX_BTYP_48:
- if (((vax_siedata >> 8) & 0xff) != VAX_STYP_48)
+ if (vax_cpustype != VAX_STYP_48)
return (0);
break;
default: