Source-Changes-HG archive

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

[src/netbsd-1-4]: src/sys/arch/macppc/dev pullup 1.2->1.3 (thorpej)



details:   https://anonhg.NetBSD.org/src/rev/8480f3d0fb13
branches:  netbsd-1-4
changeset: 468668:8480f3d0fb13
user:      perry <perry%NetBSD.org@localhost>
date:      Thu May 06 02:02:36 1999 +0000

description:
pullup 1.2->1.3 (thorpej)

diffstat:

 sys/arch/macppc/dev/wdc_obio.c |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (30 lines):

diff -r 7f858cae9e96 -r 8480f3d0fb13 sys/arch/macppc/dev/wdc_obio.c
--- a/sys/arch/macppc/dev/wdc_obio.c    Thu May 06 02:01:27 1999 +0000
+++ b/sys/arch/macppc/dev/wdc_obio.c    Thu May 06 02:02:36 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wdc_obio.c,v 1.2 1999/01/22 10:44:38 tsubai Exp $      */
+/*     $NetBSD: wdc_obio.c,v 1.2.2.1 1999/05/06 02:02:36 perry Exp $   */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -88,13 +88,20 @@
        void *aux;
 {
        struct confargs *ca = aux;
+       char compat[32];
 
+       /* XXX should not use name */
        if (strcmp(ca->ca_name, "ATA") == 0 ||
            strcmp(ca->ca_name, "ata") == 0 ||
            strcmp(ca->ca_name, "ata0") == 0 ||
            strcmp(ca->ca_name, "ide") == 0)
                return 1;
 
+       bzero(compat, sizeof(compat));
+       OF_getprop(ca->ca_node, "compatible", compat, sizeof(compat));
+       if (strcmp(compat, "heathrow-ata") == 0)
+               return 1;
+
        return 0;
 }
 



Home | Main Index | Thread Index | Old Index