summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
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",