Skip to content

Commit

Permalink
hw/net: add ANLPAR bit definitions to generic mii
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
gregungerer authored and stefanhaRH committed Jul 27, 2015
1 parent 3e23056 commit 3634869
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/hw/net/mii.h
Expand Up @@ -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
Expand Down

0 comments on commit 3634869

Please sign in to comment.