From 479872d6dee1c7560a6be649ad3b97d6555aeec4 Mon Sep 17 00:00:00 2001 From: jdc Date: Sat, 22 Mar 2008 23:37:32 +0000 Subject: [PATCH] Check the "shared-pins" property for the value "serdes". Makes SBUS GEM 1000Base-SX cards attach. --- sys/dev/sbus/if_gem_sbus.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sys/dev/sbus/if_gem_sbus.c b/sys/dev/sbus/if_gem_sbus.c index bf4bf35558a3..c5aef3340878 100644 --- a/sys/dev/sbus/if_gem_sbus.c +++ b/sys/dev/sbus/if_gem_sbus.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_gem_sbus.c,v 1.2 2007/10/19 12:01:11 ad Exp $ */ +/* $NetBSD: if_gem_sbus.c,v 1.3 2008/03/22 23:37:32 jdc Exp $ */ /*- * Copyright (c) 2006 The NetBSD Foundation, Inc. @@ -41,7 +41,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: if_gem_sbus.c,v 1.2 2007/10/19 12:01:11 ad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_gem_sbus.c,v 1.3 2008/03/22 23:37:32 jdc Exp $"); #include #include @@ -135,6 +135,9 @@ gemattach_sbus(struct device *parent, struct device *self, void *aux) sbus_establish(&gsc->gsc_sd, self); prom_getether(sa->sa_node, enaddr); + if (!strcmp("serdes", prom_getpropstring(sa->sa_node, "shared-pins"))) + sc->sc_flags |= GEM_SERDES; + /* * SBUS config */