summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_fxpreg.h
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1997-09-05 10:23:58 +0000
committerdg <dg@FreeBSD.org>1997-09-05 10:23:58 +0000
commitf2abdbfd233c603d969eed10b50cbeae826026fe (patch)
treea5209960265f96cad4925f195be52fd60f7f620e /sys/pci/if_fxpreg.h
parent687ed5fec1ae09e57abdac7a5b5be1fce217350a (diff)
downloadFreeBSD-src-f2abdbfd233c603d969eed10b50cbeae826026fe.zip
FreeBSD-src-f2abdbfd233c603d969eed10b50cbeae826026fe.tar.gz
Changes to support NetBSD and the new ifmedia extensions.
Submitted by: Jason Thorpe <thorpej@netbsd.org>
Diffstat (limited to 'sys/pci/if_fxpreg.h')
-rw-r--r--sys/pci/if_fxpreg.h35
1 files changed, 21 insertions, 14 deletions
diff --git a/sys/pci/if_fxpreg.h b/sys/pci/if_fxpreg.h
index 0708dff..e2835ca 100644
--- a/sys/pci/if_fxpreg.h
+++ b/sys/pci/if_fxpreg.h
@@ -24,7 +24,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: if_fxpreg.h,v 1.8 1997/03/21 08:00:13 davidg Exp $
+ * $Id$
*/
#define FXP_VENDORID_INTEL 0x8086
@@ -33,19 +33,26 @@
#define FXP_PCI_MMBA 0x10
#define FXP_PCI_IOBA 0x14
-struct fxp_csr {
- volatile u_int8_t :2,
- scb_rus:4,
- scb_cus:2;
- volatile u_int8_t scb_statack;
- volatile u_int8_t scb_command;
- volatile u_int8_t scb_intrcntl;
- volatile u_int32_t scb_general;
- volatile u_int32_t port;
- volatile u_int16_t flash_control;
- volatile u_int16_t eeprom_control;
- volatile u_int32_t mdi_control;
-};
+/*
+ * Control/status registers.
+ */
+#define FXP_CSR_SCB_RUSCUS 0 /* scb_rus/scb_cus (1 byte) */
+#define FXP_CSR_SCB_STATACK 1 /* scb_statack (1 byte) */
+#define FXP_CSR_SCB_COMMAND 2 /* scb_command (1 byte) */
+#define FXP_CSR_SCB_INTRCNTL 3 /* scb_intrcntl (1 byte) */
+#define FXP_CSR_SCB_GENERAL 4 /* scb_general (4 bytes) */
+#define FXP_CSR_PORT 8 /* port (4 bytes) */
+#define FXP_CSR_FLASHCONTROL 12 /* flash control (2 bytes) */
+#define FXP_CSR_EEPROMCONTROL 14 /* eeprom control (2 bytes) */
+#define FXP_CSR_MDICONTROL 16 /* mdi control (4 bytes) */
+
+/*
+ * FOR REFERENCE ONLY, the old definition of FXP_CSR_SCB_RUSCUS:
+ *
+ * volatile u_int8_t :2,
+ * scb_rus:4,
+ * scb_cus:2;
+ */
#define FXP_PORT_SOFTWARE_RESET 0
#define FXP_PORT_SELFTEST 1
OpenPOWER on IntegriCloud