summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2008-05-21 12:51:46 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2008-05-21 12:51:46 +0000
commitc1e9f26e6231e37c635af5509b31b59d1d04b4c2 (patch)
treea225ce2d1fcf0a60f08d786e91976798d91ecd7b /sys/dev
parent9dcc5706ae70948aef066309b4416b47886481d7 (diff)
Print a specific message for non i2c attachments like macppc
memc, in the situation where Apple cheaps out by having no SPD on integrated RAM.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/i2c/spdmem.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/i2c/spdmem.c b/sys/dev/i2c/spdmem.c
index dbd24e79692..f4b8c5865be 100644
--- a/sys/dev/i2c/spdmem.c
+++ b/sys/dev/i2c/spdmem.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: spdmem.c,v 1.25 2008/04/21 05:38:30 deraadt Exp $ */
+/* $OpenBSD: spdmem.c,v 1.26 2008/05/21 12:51:45 jsg Exp $ */
/* $NetBSD: spdmem.c,v 1.3 2007/09/20 23:09:59 xtraeme Exp $ */
/*
@@ -66,6 +66,7 @@
#define SPDMEM_MEMTYPE_DDRSGRAM 0x06
#define SPDMEM_MEMTYPE_DDRSDRAM 0x07
#define SPDMEM_MEMTYPE_DDR2SDRAM 0x08
+#define SPDMEM_MEMTYPE_NONE 0xff
#define SPDMEM_MEMTYPE_DIRECT_RAMBUS 0x01
#define SPDMEM_MEMTYPE_RAMBUS 0x11
@@ -561,6 +562,9 @@ spdmem_attach(struct device *parent, struct device *self, void *aux)
case SPDMEM_MEMTYPE_DDR2SDRAM:
spdmem_ddr2_decode(sc, s);
break;
+ case SPDMEM_MEMTYPE_NONE:
+ printf(" no EEPROM found");
+ break;
default:
if (s->sm_type <= 10)
printf(" no decode method for %s memory",