aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Ungerer <gerg@uclinux.org>2015-06-26 15:27:14 +1000
committerStefan Hajnoczi <stefanha@redhat.com>2015-07-27 14:12:04 +0100
commit3634869b27b6b2ff538bcc5bf8dfd1235ede7034 (patch)
tree1ca5bfbfdbf9bd54d8f7f6cc5ccc7757a4391433
parent3e230569bf16aa36562967cd76b742c6824481b1 (diff)
downloadqemu-3634869b27b6b2ff538bcc5bf8dfd1235ede7034.zip
qemu-3634869b27b6b2ff538bcc5bf8dfd1235ede7034.tar.gz
qemu-3634869b27b6b2ff538bcc5bf8dfd1235ede7034.tar.bz2
hw/net: add ANLPAR bit definitions to generic mii
Add a base set of bit definitions for the standard MII phy "Auto-Negotiation Link Partner Ability Register" (ANLPAR). The original definitions moved into mii.h from the allwinner_emac driver did not define these. Signed-off-by: Greg Ungerer <gerg@uclinux.org> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Message-id: 1435296436-12152-3-git-send-email-gerg@uclinux.org Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
-rw-r--r--include/hw/net/mii.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/hw/net/mii.h b/include/hw/net/mii.h
index 4d93114..cd2a4e2 100644
--- a/include/hw/net/mii.h
+++ b/include/hw/net/mii.h
@@ -57,6 +57,13 @@
#define MII_ANAR_10 (1 << 5)
#define MII_ANAR_CSMACD (1 << 0)
+#define MII_ANLPAR_ACK (1 << 14)
+#define MII_ANLPAR_TXFD (1 << 8)
+#define MII_ANLPAR_TX (1 << 7)
+#define MII_ANLPAR_10FD (1 << 6)
+#define MII_ANLPAR_10 (1 << 5)
+#define MII_ANLPAR_CSMACD (1 << 0)
+
/* List of vendor identifiers */
#define RTL8201CP_PHYID1 0x0000
#define RTL8201CP_PHYID2 0x8201