Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sgimips/hpc Replace some magic numbers by symbolic ...



details:   https://anonhg.NetBSD.org/src/rev/cecb39742a9d
branches:  trunk
changeset: 555900:cecb39742a9d
user:      lonewolf <lonewolf%NetBSD.org@localhost>
date:      Thu Dec 04 05:31:27 2003 +0000

description:
Replace some magic numbers by symbolic constants.

diffstat:

 sys/arch/sgimips/hpc/hpc.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (33 lines):

diff -r 87cf87d6d62f -r cecb39742a9d sys/arch/sgimips/hpc/hpc.c
--- a/sys/arch/sgimips/hpc/hpc.c        Thu Dec 04 02:33:41 2003 +0000
+++ b/sys/arch/sgimips/hpc/hpc.c        Thu Dec 04 05:31:27 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: hpc.c,v 1.18 2003/11/22 03:58:52 sekiya Exp $  */
+/*     $NetBSD: hpc.c,v 1.19 2003/12/04 05:31:27 lonewolf Exp $        */
 
 /*
  * Copyright (c) 2000 Soren S. Jorvang
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hpc.c,v 1.18 2003/11/22 03:58:52 sekiya Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hpc.c,v 1.19 2003/12/04 05:31:27 lonewolf Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -62,12 +62,12 @@
 } hpc_devices[] = {
        { "zsc",
          /* XXX Magic numbers */
-         HPC_PBUS_CH6_DEVREGS + 0x30,  0,
+         HPC_PBUS_CH6_DEVREGS + IOC_SERIAL_REGS, 0,
          29,
          HPCDEV_IP22 | HPCDEV_IP24 },
 
        { "pckbc",
-         HPC_PBUS_CH6_DEVREGS + 0x40, 0,
+         HPC_PBUS_CH6_DEVREGS + IOC_KB_REGS, 0,
          28,
          HPCDEV_IP22 | HPCDEV_IP24 },
 



Home | Main Index | Thread Index | Old Index