summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Binkert <nate@cvs.openbsd.org>2001-12-13 19:13:23 +0000
committerNathan Binkert <nate@cvs.openbsd.org>2001-12-13 19:13:23 +0000
commit5f0ec9481fef3e25f884d7f570b873dcca6ada76 (patch)
treef357c5339f07689f94ae82d477ec3cbb968a5821
parent372bdfe8ef7e32ce18b3079b2e2512cbd42465b4 (diff)
Get rid of magic numbers
-rw-r--r--sys/arch/alpha/alpha/api_up1000.c6
-rw-r--r--sys/arch/alpha/alpha/dec_2100_a50.c6
-rw-r--r--sys/arch/alpha/alpha/dec_6600.c6
-rw-r--r--sys/arch/alpha/alpha/dec_axppci_33.c6
-rw-r--r--sys/arch/alpha/alpha/dec_eb164.c6
-rw-r--r--sys/arch/alpha/alpha/dec_kn20aa.c6
6 files changed, 18 insertions, 18 deletions
diff --git a/sys/arch/alpha/alpha/api_up1000.c b/sys/arch/alpha/alpha/api_up1000.c
index 3d3faab63fd..ebc4775ba9a 100644
--- a/sys/arch/alpha/alpha/api_up1000.c
+++ b/sys/arch/alpha/alpha/api_up1000.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: api_up1000.c,v 1.2 2001/04/17 14:51:32 art Exp $ */
+/* $OpenBSD: api_up1000.c,v 1.3 2001/12/13 19:13:22 nate Exp $ */
/* $NetBSD: api_up1000.c,v 1.4 2000/06/20 03:48:53 matt Exp $ */
/*
@@ -107,7 +107,7 @@ api_up1000_cons_init()
ctb = (struct ctb *)(((caddr_t)hwrpb) + hwrpb->rpb_ctb_off);
switch (ctb->ctb_term_type) {
- case 2:
+ case CTB_PRINTERPORT:
/* serial console ... */
/* XXX */
{
@@ -126,7 +126,7 @@ api_up1000_cons_init()
break;
}
- case 3:
+ case CTB_GRAPHICS:
#if NPCKBD > 0
/* display console ... */
/* XXX */
diff --git a/sys/arch/alpha/alpha/dec_2100_a50.c b/sys/arch/alpha/alpha/dec_2100_a50.c
index b944d08e77b..17092292fde 100644
--- a/sys/arch/alpha/alpha/dec_2100_a50.c
+++ b/sys/arch/alpha/alpha/dec_2100_a50.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dec_2100_a50.c,v 1.12 2000/11/16 23:32:20 ericj Exp $ */
+/* $OpenBSD: dec_2100_a50.c,v 1.13 2001/12/13 19:13:22 nate Exp $ */
/* $NetBSD: dec_2100_a50.c,v 1.43 2000/05/22 20:13:31 thorpej Exp $ */
/*
@@ -116,7 +116,7 @@ dec_2100_a50_cons_init()
ctb = (struct ctb *)(((caddr_t)hwrpb) + hwrpb->rpb_ctb_off);
switch (ctb->ctb_term_type) {
- case 2:
+ case CTB_PRINTERPORT:
/* serial console ... */
/* XXX */
{
@@ -135,7 +135,7 @@ dec_2100_a50_cons_init()
break;
}
- case 3:
+ case CTB_GRAPHICS:
#if NPCKBD > 0
/* display console ... */
/* XXX */
diff --git a/sys/arch/alpha/alpha/dec_6600.c b/sys/arch/alpha/alpha/dec_6600.c
index 376cfb0d484..a27130e0c86 100644
--- a/sys/arch/alpha/alpha/dec_6600.c
+++ b/sys/arch/alpha/alpha/dec_6600.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dec_6600.c,v 1.2 2000/11/16 23:32:20 ericj Exp $ */
+/* $OpenBSD: dec_6600.c,v 1.3 2001/12/13 19:13:22 nate Exp $ */
/* $NetBSD: dec_6600.c,v 1.7 2000/06/20 03:48:54 matt Exp $ */
/*
@@ -104,7 +104,7 @@ dec_6600_cons_init()
tsp = tsp_init(0, tsp_console_hose);
switch (ctb->ctb_term_type) {
- case 2:
+ case CTB_PRINTERPORT:
/* serial console ... */
assert(CTB_TURBOSLOT_HOSE(ctbslot) == 0);
/* XXX */
@@ -124,7 +124,7 @@ dec_6600_cons_init()
break;
}
- case 3:
+ case CTB_GRAPHICS:
#if NPCKBD > 0
/* display console ... */
/* XXX */
diff --git a/sys/arch/alpha/alpha/dec_axppci_33.c b/sys/arch/alpha/alpha/dec_axppci_33.c
index 2cb9a6d8f4a..381d207bfa3 100644
--- a/sys/arch/alpha/alpha/dec_axppci_33.c
+++ b/sys/arch/alpha/alpha/dec_axppci_33.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dec_axppci_33.c,v 1.13 2001/01/20 20:27:40 art Exp $ */
+/* $OpenBSD: dec_axppci_33.c,v 1.14 2001/12/13 19:13:22 nate Exp $ */
/* $NetBSD: dec_axppci_33.c,v 1.44 2000/05/22 20:13:32 thorpej Exp $ */
/*
@@ -150,7 +150,7 @@ dec_axppci_33_cons_init()
ctb = (struct ctb *)(((caddr_t)hwrpb) + hwrpb->rpb_ctb_off);
switch (ctb->ctb_term_type) {
- case 2:
+ case CTB_PRINTERPORT:
/* serial console ... */
/* XXX */
{
@@ -169,7 +169,7 @@ dec_axppci_33_cons_init()
break;
}
- case 3:
+ case CTB_GRAPHICS:
#if NPCKBD > 0
/* display console ... */
/* XXX */
diff --git a/sys/arch/alpha/alpha/dec_eb164.c b/sys/arch/alpha/alpha/dec_eb164.c
index 9678f998693..833b16f8355 100644
--- a/sys/arch/alpha/alpha/dec_eb164.c
+++ b/sys/arch/alpha/alpha/dec_eb164.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dec_eb164.c,v 1.7 2000/11/16 04:33:46 ericj Exp $ */
+/* $OpenBSD: dec_eb164.c,v 1.8 2001/12/13 19:13:22 nate Exp $ */
/* $NetBSD: dec_eb164.c,v 1.33 2000/05/22 20:13:32 thorpej Exp $ */
/*
@@ -102,7 +102,7 @@ dec_eb164_cons_init()
ctb = (struct ctb *)(((caddr_t)hwrpb) + hwrpb->rpb_ctb_off);
switch (ctb->ctb_term_type) {
- case 2:
+ case CTB_PRINTERPORT:
/* serial console ... */
/* XXX */
{
@@ -121,7 +121,7 @@ dec_eb164_cons_init()
break;
}
- case 3:
+ case CTB_GRAPHICS:
#if NPCKBD > 0
/* display console ... */
/* XXX */
diff --git a/sys/arch/alpha/alpha/dec_kn20aa.c b/sys/arch/alpha/alpha/dec_kn20aa.c
index 5cd7a3e9b92..182e39db629 100644
--- a/sys/arch/alpha/alpha/dec_kn20aa.c
+++ b/sys/arch/alpha/alpha/dec_kn20aa.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dec_kn20aa.c,v 1.11 2000/11/16 23:32:20 ericj Exp $ */
+/* $OpenBSD: dec_kn20aa.c,v 1.12 2001/12/13 19:13:22 nate Exp $ */
/* $NetBSD: dec_kn20aa.c,v 1.42 2000/05/22 20:13:32 thorpej Exp $ */
/*
@@ -107,7 +107,7 @@ dec_kn20aa_cons_init()
ctb = (struct ctb *)(((caddr_t)hwrpb) + hwrpb->rpb_ctb_off);
switch (ctb->ctb_term_type) {
- case 2:
+ case CTB_PRINTERPORT:
/* serial console ... */
/* XXX */
{
@@ -126,7 +126,7 @@ dec_kn20aa_cons_init()
break;
}
- case 3:
+ case CTB_GRAPHICS:
#if NPCKBD > 0
/* display console ... */
/* XXX */