Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic Correct wrong board IDs (used ID definition from ...



details:   https://anonhg.NetBSD.org/src/rev/b9a341f90937
branches:  trunk
changeset: 471949:b9a341f90937
user:      mjl <mjl%NetBSD.org@localhost>
date:      Thu Apr 15 23:51:44 1999 +0000

description:
Correct wrong board IDs (used ID definition from FreeBSD)

diffstat:

 sys/dev/ic/aha.c    |  20 ++++++++++++--------
 sys/dev/ic/ahareg.h |  17 +++++++++++++++--
 2 files changed, 27 insertions(+), 10 deletions(-)

diffs (77 lines):

diff -r 00e774f666ff -r b9a341f90937 sys/dev/ic/aha.c
--- a/sys/dev/ic/aha.c  Thu Apr 15 23:47:52 1999 +0000
+++ b/sys/dev/ic/aha.c  Thu Apr 15 23:51:44 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: aha.c,v 1.22 1998/12/09 08:47:18 thorpej Exp $ */
+/*     $NetBSD: aha.c,v 1.23 1999/04/15 23:51:44 mjl Exp $     */
 
 #include "opt_ddb.h"
 
@@ -1122,23 +1122,27 @@
 #endif /* AHADEBUG */
 
        switch (revision.reply.boardid) {
-       case 0x31:
+       case BOARD_1540_16HEAD_BIOS:
+       case BOARD_1540_64HEAD_BIOS:
+       case BOARD_1540:
                strcpy(sc->sc_model, "1540");
                break;
-       case 0x41:
+       case BOARD_1542:
                strcpy(sc->sc_model, "1540A/1542A/1542B");
                break;
-       case 0x42:
+       case BOARD_1640:
                strcpy(sc->sc_model, "1640");
                break;
-       case 0x43:
+       case BOARD_1740:
+               strcpy(sc->sc_model, "1740");
+               break;
+       case BOARD_1542C:
                strcpy(sc->sc_model, "1542C");
                break;
-       case 0x44:
-       case 0x45:
+       case BOARD_1542CF:
                strcpy(sc->sc_model, "1542CF");
                break;
-       case 0x46:
+       case BOARD_1542CP:
                strcpy(sc->sc_model, "1542CP");
                break;
        }
diff -r 00e774f666ff -r b9a341f90937 sys/dev/ic/ahareg.h
--- a/sys/dev/ic/ahareg.h       Thu Apr 15 23:47:52 1999 +0000
+++ b/sys/dev/ic/ahareg.h       Thu Apr 15 23:51:44 1999 +0000
@@ -1,7 +1,7 @@
-/*     $NetBSD: ahareg.h,v 1.8 1998/08/17 00:26:33 mycroft Exp $       */
+/*     $NetBSD: ahareg.h,v 1.9 1999/04/15 23:51:45 mjl Exp $   */
 
 /*-
- * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
+ * Copyright (c) 1997-99 The NetBSD Foundation, Inc.
  * All rights reserved.
  *
  * This code is derived from software contributed to The NetBSD Foundation
@@ -117,6 +117,19 @@
 #define AHA_INTR_MBOA          0x02    /* MBX out empty */
 #define AHA_INTR_MBIF          0x01    /* MBX in full */
 
+/*
+ * AHA Board IDs
+ */
+#define BOARD_1540_16HEAD_BIOS  0x00
+#define BOARD_1540_64HEAD_BIOS  0x30
+#define BOARD_1540              0x31
+#define BOARD_1542              0x41    /* aha-1540/1542 w/64-h bios */
+#define BOARD_1640              0x42    /* aha-1640 */
+#define BOARD_1740              0x43    /* aha-1740A/1742A/1744 */
+#define BOARD_1542C             0x44    /* aha-1542C */
+#define BOARD_1542CF            0x45    /* aha-1542CF */
+#define BOARD_1542CP            0x46    /* aha-1542CP, plug and play */
+
 struct aha_mbx_out {
        u_char cmd;
        physaddr ccb_addr;



Home | Main Index | Thread Index | Old Index