summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/dev/sab.c
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2002-07-18 02:22:20 +0000
committerJason Wright <jason@cvs.openbsd.org>2002-07-18 02:22:20 +0000
commitdc252a8b99e898c65ed864914e961fbea05e7dfc (patch)
tree004582080d79e404dc572e99df265736b2ccc3ef /sys/arch/sparc64/dev/sab.c
parentab4a94bd4e3b91059e357ac12e6e179b0de94cf2 (diff)
Match compatible sab82532
Diffstat (limited to 'sys/arch/sparc64/dev/sab.c')
-rw-r--r--sys/arch/sparc64/dev/sab.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/sparc64/dev/sab.c b/sys/arch/sparc64/dev/sab.c
index 51a1cc1e3ac..1ad3e9ed446 100644
--- a/sys/arch/sparc64/dev/sab.c
+++ b/sys/arch/sparc64/dev/sab.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sab.c,v 1.7 2002/04/08 17:49:42 jason Exp $ */
+/* $OpenBSD: sab.c,v 1.8 2002/07/18 02:22:19 jason Exp $ */
/*
* Copyright (c) 2001 Jason L. Wright (jason@thought.net)
@@ -214,9 +214,13 @@ sab_match(parent, match, aux)
void *match, *aux;
{
struct ebus_attach_args *ea = aux;
+ char *compat;
if (strcmp(ea->ea_name, "se") == 0)
return (1);
+ compat = getpropstring(ea->ea_node, "compatible");
+ if (compat != NULL && !strcmp(compat, "sab82532"))
+ return (1);
return (0);
}