qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 1/7] e1000: introduce bits of PHY control register
@ 2012-03-22 10:01 Jason Wang
  2012-03-22 10:01 ` [Qemu-devel] [PATCH 2/7] e1000: conditionally raise irq at the end of MDI cycle Jason Wang
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Jason Wang @ 2012-03-22 10:01 UTC (permalink / raw)
  To: qemu-devel, aliguori, stefanha, mst

This would be used be following patches.

Signed-off-by: Jason Wang <jasowang@redhat.com>
---
 hw/e1000_hw.h |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/hw/e1000_hw.h b/hw/e1000_hw.h
index 9e29af8..c9cb79e 100644
--- a/hw/e1000_hw.h
+++ b/hw/e1000_hw.h
@@ -349,6 +349,18 @@
 #define M88E1000_PHY_VCO_REG_BIT8  0x100 /* Bits 8 & 11 are adjusted for */
 #define M88E1000_PHY_VCO_REG_BIT11 0x800    /* improved BER performance */
 
+/* PHY Control Register */
+#define MII_CR_SPEED_SELECT_MSB 0x0040 /* bits 6,13: 10=1000, 01=100, 00=10 */
+#define MII_CR_COLL_TEST_ENABLE 0x0080 /* Collision test enable */
+#define MII_CR_FULL_DUPLEX      0x0100 /* FDX =1, half duplex =0 */
+#define MII_CR_RESTART_AUTO_NEG 0x0200 /* Restart auto negotiation */
+#define MII_CR_ISOLATE          0x0400 /* Isolate PHY from MII */
+#define MII_CR_POWER_DOWN       0x0800 /* Power down */
+#define MII_CR_AUTO_NEG_EN      0x1000 /* Auto Neg Enable */
+#define MII_CR_SPEED_SELECT_LSB 0x2000 /* bits 6,13: 10=1000, 01=100, 00=10 */
+#define MII_CR_LOOPBACK         0x4000 /* 0 = normal, 1 = loopback */
+#define MII_CR_RESET            0x8000 /* 0 = normal, 1 = PHY reset */
+
 /* PHY Status Register */
 #define MII_SR_EXTENDED_CAPS     0x0001	/* Extended register capabilities */
 #define MII_SR_JABBER_DETECT     0x0002	/* Jabber Detected */

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-03-22 10:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-22 10:01 [Qemu-devel] [PATCH 1/7] e1000: introduce bits of PHY control register Jason Wang
2012-03-22 10:01 ` [Qemu-devel] [PATCH 2/7] e1000: conditionally raise irq at the end of MDI cycle Jason Wang
2012-03-22 10:01 ` [Qemu-devel] [PATCH 3/7] e1000: PHY loopback mode support Jason Wang
2012-03-22 10:02 ` [Qemu-devel] [PATCH 4/7] e1000: introduce helpers to manipulate link status Jason Wang
2012-03-22 10:02 ` [Qemu-devel] [PATCH 5/7] e1000: introduce bit for debugging PHY emulation Jason Wang
2012-03-22 10:02 ` [Qemu-devel] [PATCH 6/7] e1000: link auto-negotiation emulation Jason Wang
2012-03-22 10:02 ` [Qemu-devel] [PATCH 7/7] e1000: set E1000_ICR_INT_ASSERTED only for 8257x Jason Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).