summaryrefslogtreecommitdiffstats
path: root/sys/dev/fxp/if_fxpreg.h
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1997-02-04 10:53:12 +0000
committerdg <dg@FreeBSD.org>1997-02-04 10:53:12 +0000
commit57ba1e051150cbd7fb35f1274d0b6e7aefb4d359 (patch)
tree4c47fcca4628c56c40be99afa94d085884ee8df0 /sys/dev/fxp/if_fxpreg.h
parentcc86e3701137c7a8df45e4acb91e18250c018e2a (diff)
downloadFreeBSD-src-57ba1e051150cbd7fb35f1274d0b6e7aefb4d359.zip
FreeBSD-src-57ba1e051150cbd7fb35f1274d0b6e7aefb4d359.tar.gz
Do "selective" reset rather than full reset...the manual specifically
says not to do the full reset because it can lock up the PCI bus if the chip is active. Added various PORT command definitions to facilitate this.
Diffstat (limited to 'sys/dev/fxp/if_fxpreg.h')
-rw-r--r--sys/dev/fxp/if_fxpreg.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/dev/fxp/if_fxpreg.h b/sys/dev/fxp/if_fxpreg.h
index 5a3e812..7e78c41 100644
--- a/sys/dev/fxp/if_fxpreg.h
+++ b/sys/dev/fxp/if_fxpreg.h
@@ -47,6 +47,11 @@ struct fxp_csr {
volatile u_int32_t mdi_control;
};
+#define FXP_PORT_SOFTWARE_RESET 0
+#define FXP_PORT_SELFTEST 1
+#define FXP_PORT_SELECTIVE_RESET 2
+#define FXP_PORT_DUMP 3
+
#define FXP_SCB_RUS_IDLE 0
#define FXP_SCB_RUS_SUSPENDED 1
#define FXP_SCB_RUS_NORESOURCES 2
OpenPOWER on IntegriCloud