summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2007-11-25 20:19:03 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2007-11-25 20:19:03 +0000
commitfe60aace38f5d099870397ffbd5ee4929e90e3e0 (patch)
tree5e0fdc711f45ad45c157245324e8a60051c3066a
parente78fef215b8724ded934dd093c3e550a6c86fd5b (diff)
Kill spdmem_hexdump() before anyone starts using it.
-rw-r--r--sys/dev/i2c/spdmem.c23
1 files changed, 1 insertions, 22 deletions
diff --git a/sys/dev/i2c/spdmem.c b/sys/dev/i2c/spdmem.c
index d4aad4aca47..2ee13d8dc71 100644
--- a/sys/dev/i2c/spdmem.c
+++ b/sys/dev/i2c/spdmem.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: spdmem.c,v 1.20 2007/10/20 08:33:37 jsg Exp $ */
+/* $OpenBSD: spdmem.c,v 1.21 2007/11/25 20:19:02 miod Exp $ */
/* $NetBSD: spdmem.c,v 1.3 2007/09/20 23:09:59 xtraeme Exp $ */
/*
@@ -182,7 +182,6 @@ struct spdmem_softc {
int spdmem_match(struct device *, void *, void *);
void spdmem_attach(struct device *, struct device *, void *);
uint8_t spdmem_read(struct spdmem_softc *, uint8_t);
-void spdmem_hexdump(struct spdmem_softc *, int, int);
void spdmem_sdram_decode(struct spdmem_softc *, struct spdmem *);
void spdmem_ddr_decode(struct spdmem_softc *, struct spdmem *);
void spdmem_ddr2_decode(struct spdmem_softc *, struct spdmem *);
@@ -539,23 +538,3 @@ spdmem_read(struct spdmem_softc *sc, uint8_t reg)
return val;
}
-
-void
-spdmem_hexdump(struct spdmem_softc *sc, int start, int size)
-{
- int i;
-
- uint8_t data[size];
-
- for (i = 0; i < size; i++) {
- data[i] = spdmem_read(sc, i);
- }
-
- for (i = 0; i < size ; i += 16) {
- int j;
- printf("\n0x%02x:", start + i);
- for (j = 0; j < 16; j++)
- printf(" %02x", ((uint8_t *)data)[i + j]);
- }
- printf("\n");
-}