Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/macppc/dev Use "compatible" property to match.
details: https://anonhg.NetBSD.org/src/rev/3bbc9ca0b102
branches: trunk
changeset: 472539:3bbc9ca0b102
user: tsubai <tsubai%NetBSD.org@localhost>
date: Sat May 01 10:23:42 1999 +0000
description:
Use "compatible" property to match.
diffstat:
sys/arch/macppc/dev/wdc_obio.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diffs (30 lines):
diff -r f9c36e4d0265 -r 3bbc9ca0b102 sys/arch/macppc/dev/wdc_obio.c
--- a/sys/arch/macppc/dev/wdc_obio.c Sat May 01 10:21:22 1999 +0000
+++ b/sys/arch/macppc/dev/wdc_obio.c Sat May 01 10:23:42 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.3 1999/05/01 10:23:42 tsubai 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