summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2006-05-31 06:17:01 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2006-05-31 06:17:01 +0000
commitda51c4853286e94d057b950343040e002f1f24e4 (patch)
treeccc0ab2cffff6b5992ce37ce757651f24caceeda /sys/dev
parent290d3cb2bc3c8f936a1c7ef212e58814821173f0 (diff)
remove the fetching of the manufacturing page. it was just there to see if
i got the page fetching right, its not really useful for anything in the real world.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/mpi.c29
1 files changed, 1 insertions, 28 deletions
diff --git a/sys/dev/ic/mpi.c b/sys/dev/ic/mpi.c
index 7a1b7d6d173..fd06e317cf4 100644
--- a/sys/dev/ic/mpi.c
+++ b/sys/dev/ic/mpi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mpi.c,v 1.19 2006/05/31 03:06:39 dlg Exp $ */
+/* $OpenBSD: mpi.c,v 1.20 2006/05/31 06:17:00 dlg Exp $ */
/*
* Copyright (c) 2005, 2006 David Gwynne <dlg@openbsd.org>
@@ -106,8 +106,6 @@ int mpi_cfg_hdr(struct mpi_softc *, u_int8_t, u_int8_t,
int mpi_cfg_page(struct mpi_softc *, u_int32_t,
struct mpi_cfg_hdr *, int, void *, size_t);
-int mpi_cfg_manufacturer0(struct mpi_softc *);
-
#define DEVNAME(s) ((s)->sc_dev.dv_xname)
#define dwordsof(s) (sizeof(s) / sizeof(u_int32_t))
@@ -1546,31 +1544,6 @@ mpi_portenable(struct mpi_softc *sc)
}
int
-mpi_cfg_manufacturer0(struct mpi_softc *sc)
-{
- struct mpi_cfg_hdr hdr;
- struct mpi_cfg_manufacturing_pg0 pg0;
-
- DPRINTF("%s: %s\n", DEVNAME(sc), __func__);
-
- if (mpi_cfg_hdr(sc, MPI_CONFIG_REQ_PAGE_TYPE_MANUFACTURING, 0, 0x0,
- &hdr) != 0)
- return (1);
-
- if (mpi_cfg_page(sc, 0x0, &hdr, 1, &pg0, sizeof(pg0)) != 0)
- return (1);
-
- printf("%s: chip_name: %s\n", DEVNAME(sc), pg0.chip_name);
- printf("%s: chip_revision: %s\n", DEVNAME(sc), pg0.chip_revision);
- printf("%s: board_name: %s\n", DEVNAME(sc), pg0.board_name);
- printf("%s: board_assembly: %s\n", DEVNAME(sc), pg0.board_assembly);
- printf("%s: board_tracer_numer: %s\n", DEVNAME(sc),
- pg0.board_tracer_number);
-
- return (0);
-}
-
-int
mpi_cfg_hdr(struct mpi_softc *sc, u_int8_t type, u_int8_t number,
u_int32_t address, struct mpi_cfg_hdr *hdr)
{