mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
hw/net/lan9118_phy: Reuse MII constants
Prefer named constants over magic values for better readability. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Bernhard Beschow <shentey@gmail.com> Tested-by: Guenter Roeck <linux@roeck-us.net> Message-id: 20241102125724.532843-5-shentey@gmail.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
bbaaee8cc6
commit
212a52c8f2
2 changed files with 46 additions and 23 deletions
|
@ -71,6 +71,7 @@
|
|||
#define MII_BMSR_JABBER (1 << 1) /* Jabber detected */
|
||||
#define MII_BMSR_EXTCAP (1 << 0) /* Ext-reg capability */
|
||||
|
||||
#define MII_ANAR_RFAULT (1 << 13) /* Say we can detect faults */
|
||||
#define MII_ANAR_PAUSE_ASYM (1 << 11) /* Try for asymmetric pause */
|
||||
#define MII_ANAR_PAUSE (1 << 10) /* Try for pause */
|
||||
#define MII_ANAR_TXFD (1 << 8)
|
||||
|
@ -78,6 +79,7 @@
|
|||
#define MII_ANAR_10FD (1 << 6)
|
||||
#define MII_ANAR_10 (1 << 5)
|
||||
#define MII_ANAR_CSMACD (1 << 0)
|
||||
#define MII_ANAR_SELECT (0x001f) /* Selector bits */
|
||||
|
||||
#define MII_ANLPAR_ACK (1 << 14)
|
||||
#define MII_ANLPAR_PAUSEASY (1 << 11) /* can pause asymmetrically */
|
||||
|
@ -112,6 +114,10 @@
|
|||
#define RTL8201CP_PHYID1 0x0000
|
||||
#define RTL8201CP_PHYID2 0x8201
|
||||
|
||||
/* SMSC LAN9118 */
|
||||
#define SMSCLAN9118_PHYID1 0x0007
|
||||
#define SMSCLAN9118_PHYID2 0xc0d1
|
||||
|
||||
/* RealTek 8211E */
|
||||
#define RTL8211E_PHYID1 0x001c
|
||||
#define RTL8211E_PHYID2 0xc915
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue