summaryrefslogtreecommitdiff
path: root/sys/arch/sgi/pci
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2009-11-09 16:57:48 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2009-11-09 16:57:48 +0000
commita70a42797652cd00acf061c05062b209abbe70cb (patch)
treef7b730b3fc41ff91d658b0d4efd0cc6ddc178a90 /sys/arch/sgi/pci
parentdad89e5ecf89758992bd84557ff0e0d6dbef9da9 (diff)
Only invoke the L1 code if IP35.
Diffstat (limited to 'sys/arch/sgi/pci')
-rw-r--r--sys/arch/sgi/pci/ioc.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/arch/sgi/pci/ioc.c b/sys/arch/sgi/pci/ioc.c
index 79559c6b4fb..8a59cf2e3cd 100644
--- a/sys/arch/sgi/pci/ioc.c
+++ b/sys/arch/sgi/pci/ioc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ioc.c,v 1.28 2009/11/08 22:44:16 miod Exp $ */
+/* $OpenBSD: ioc.c,v 1.29 2009/11/09 16:57:47 miod Exp $ */
/*
* Copyright (c) 2008 Joel Sing.
@@ -487,8 +487,9 @@ ioc_attach_child(struct device *ioc, const char *name, bus_addr_t base, int dev)
* stored in the Brick EEPROM, and can be
* retrieved with an L1 controller query.
*/
- if (l1_get_brick_ethernet_address(currentnasid,
- iaa.iaa_enaddr) != 0)
+ if (sys_config.system_type != SGI_IP35 ||
+ l1_get_brick_ethernet_address(currentnasid,
+ iaa.iaa_enaddr) != 0)
#endif
memset(iaa.iaa_enaddr, 0xff, 6);
}