summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorthorpej <thorpej@NetBSD.org>2002-04-05 05:29:05 +0000
committerthorpej <thorpej@NetBSD.org>2002-04-05 05:29:05 +0000
commitf4f37ed5f50282e219994ecf2c18d87a58c6b7fe (patch)
tree9b185f6dd647518839d31879ea02ee0b7c9762f1 /sys/dev
parentcdb5a13a857666cc713cf2cdee62a1b4f139aa55 (diff)
Define the command block used for loading microcode into the chip.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/i82557reg.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/sys/dev/ic/i82557reg.h b/sys/dev/ic/i82557reg.h
index eae44417fc9..35bc6cf02b3 100644
--- a/sys/dev/ic/i82557reg.h
+++ b/sys/dev/ic/i82557reg.h
@@ -1,4 +1,4 @@
-/* $NetBSD: i82557reg.h,v 1.10 2001/06/02 01:04:01 thorpej Exp $ */
+/* $NetBSD: i82557reg.h,v 1.11 2002/04/05 05:29:05 thorpej Exp $ */
/*-
* Copyright (c) 1998, 1999, 2001 The NetBSD Foundation, Inc.
@@ -293,6 +293,14 @@ struct fxp_cb_mcs {
volatile u_int8_t mc_addr[MAXMCADDR][6];
};
+#define MAXUCODESIZE 192
+struct fxp_cb_ucode {
+ volatile u_int16_t cb_status;
+ volatile u_int16_t cb_command;
+ volatile u_int32_t link_addr;
+ volatile u_int32_t ucode[MAXUCODESIZE];
+};
+
/*
* Transmit command.
*/
@@ -333,7 +341,7 @@ struct fxp_tbd {
#define FXP_CB_COMMAND_CONFIG 0x2
#define FXP_CB_COMMAND_MCAS 0x3
#define FXP_CB_COMMAND_XMIT 0x4
-#define FXP_CB_COMMAND_RESRV 0x5
+#define FXP_CB_COMMAND_UCODE 0x5
#define FXP_CB_COMMAND_DUMP 0x6
#define FXP_CB_COMMAND_DIAG 0x7