Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/luna68k/stand/boot Remove unused hw_id and hw_id2 m...



details:   https://anonhg.NetBSD.org/src/rev/6785de7de854
branches:  trunk
changeset: 783988:6785de7de854
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Mon Jan 14 11:59:18 2013 +0000

description:
Remove unused hw_id and hw_id2 members from device info.
They are valid only on hp300.

diffstat:

 sys/arch/luna68k/stand/boot/autoconf.c |  19 +++++++++----------
 sys/arch/luna68k/stand/boot/device.h   |   4 +---
 2 files changed, 10 insertions(+), 13 deletions(-)

diffs (69 lines):

diff -r 864605357a89 -r 6785de7de854 sys/arch/luna68k/stand/boot/autoconf.c
--- a/sys/arch/luna68k/stand/boot/autoconf.c    Mon Jan 14 11:32:40 2013 +0000
+++ b/sys/arch/luna68k/stand/boot/autoconf.c    Mon Jan 14 11:59:18 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: autoconf.c,v 1.3 2013/01/14 01:37:57 tsutsui Exp $     */
+/*     $NetBSD: autoconf.c,v 1.4 2013/01/14 11:59:18 tsutsui Exp $     */
 
 /*
  * Copyright (c) 1992 OMRON Corporation.
@@ -479,11 +479,10 @@
        return(found);
 }
 
-#define setup_hw(hw, addr, sc, type, id, name) \
+#define setup_hw(hw, addr, sc, type, name) \
        (hw)->hw_addr = addr; \
        (hw)->hw_sc   = sc; \
        (hw)->hw_type = type; \
-       (hw)->hw_id   = id; \
        (hw)->hw_name = name
 
 void
@@ -491,21 +490,21 @@
 {
        struct hp_hw *hw = sc_table;
        
-       setup_hw(hw, (char *) 0x51000000, 0x5, SIO,      0x5, "uPD7201A (SIO)");
-       hw->hw_id2 = 0; hw++;
+       setup_hw(hw, (char *) 0x51000000, 0x5, SIO,      "uPD7201A (SIO)");
+       hw++;
        
-       setup_hw(hw, (char *) 0x51000004, 0x5, KEYBOARD, 0x5, "uPD7201A (KBD)");
-       hw->hw_id2 = 1; hw++;
+       setup_hw(hw, (char *) 0x51000004, 0x5, KEYBOARD, "uPD7201A (KBD)");
+       hw++;
        
-       setup_hw(hw, (char *) 0xe1000000, 0xe, SCSI,     0xe, "MB89352  (SPC)");
+       setup_hw(hw, (char *) 0xe1000000, 0xe, SCSI,     "MB89352  (SPC)");
        hw++;
 
        if (machtype == LUNA_II && !badaddr((void *) 0xe1000040)) {
-               setup_hw(hw, (char *) 0xe1000040, 0xe, SCSI,     0xe, "MB89352  (SPC)");
+               setup_hw(hw, (char *) 0xe1000040, 0xe, SCSI,     "MB89352  (SPC)");
                hw++;
        }
        if (!badaddr((void *) 0xf1000000)) {
-               setup_hw(hw, (char *) 0xf1000000, 0xf, NET,      0xf, "Am7990 (LANCE)");
+               setup_hw(hw, (char *) 0xf1000000, 0xf, NET,      "Am7990 (LANCE)");
                hw++;
        }
 }
diff -r 864605357a89 -r 6785de7de854 sys/arch/luna68k/stand/boot/device.h
--- a/sys/arch/luna68k/stand/boot/device.h      Mon Jan 14 11:32:40 2013 +0000
+++ b/sys/arch/luna68k/stand/boot/device.h      Mon Jan 14 11:59:18 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: device.h,v 1.2 2013/01/13 04:39:28 tsutsui Exp $       */
+/*     $NetBSD: device.h,v 1.3 2013/01/14 11:59:18 tsutsui Exp $       */
 
 /*
  * Copyright (c) 1992 OMRON Corporation.
@@ -111,8 +111,6 @@
        char    *hw_addr;       /* physical address of registers */
        short   hw_sc;          /* select code (if applicable) */
        short   hw_type;        /* type (defined below) */
-       short   hw_id;          /* HW returned id */
-       short   hw_id2;         /* secondary HW id (displays) */
        char    *hw_name;       /* HP product name */
 };
 



Home | Main Index | Thread Index | Old Index