summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_lmc.c
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2006-03-16 21:36:59 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2006-03-16 21:36:59 +0000
commit9b078d43a64bd7278ccd3f74ebe462507851d598 (patch)
tree09e74b9ea8436ec9b292191aedd93c90b51a6ac3 /sys/dev/pci/if_lmc.c
parent0ae0e8ee2e515d744c64660670bf020e8c27e254 (diff)
Move lmc_system_errors[] so that there is only one instance of it in the
code instead of four; shaves more than 1KB off GENERIC.
Diffstat (limited to 'sys/dev/pci/if_lmc.c')
-rw-r--r--sys/dev/pci/if_lmc.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/sys/dev/pci/if_lmc.c b/sys/dev/pci/if_lmc.c
index ac693eaefdb..86b02a7abf9 100644
--- a/sys/dev/pci/if_lmc.c
+++ b/sys/dev/pci/if_lmc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_lmc.c,v 1.20 2005/11/07 00:29:21 brad Exp $ */
+/* $OpenBSD: if_lmc.c,v 1.21 2006/03/16 21:36:58 miod Exp $ */
/* $NetBSD: if_lmc.c,v 1.1 1999/03/25 03:32:43 explorer Exp $ */
/*-
@@ -815,6 +815,17 @@ lmc_print_abnormal_interrupt (lmc_softc_t * const sc, u_int32_t csr)
printf(LMC_PRINTF_FMT ": Abnormal interrupt\n", LMC_PRINTF_ARGS);
}
+static const char * const lmc_system_errors[] = {
+ "parity error",
+ "master abort",
+ "target abort",
+ "reserved #3",
+ "reserved #4",
+ "reserved #5",
+ "reserved #6",
+ "reserved #7",
+};
+
static void
lmc_intr_handler(lmc_softc_t * const sc, int *progress_p)
{