mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-04 11:43:54 +08:00
sc92031: use standard #defines from mii.h.
Signed-off-by: Francois Romieu <romieu@fr.zoreil.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
26c5c44d63
commit
3235de1684
@ -31,6 +31,7 @@
|
|||||||
#include <linux/netdevice.h>
|
#include <linux/netdevice.h>
|
||||||
#include <linux/etherdevice.h>
|
#include <linux/etherdevice.h>
|
||||||
#include <linux/ethtool.h>
|
#include <linux/ethtool.h>
|
||||||
|
#include <linux/mii.h>
|
||||||
#include <linux/crc32.h>
|
#include <linux/crc32.h>
|
||||||
|
|
||||||
#include <asm/irq.h>
|
#include <asm/irq.h>
|
||||||
@ -116,16 +117,9 @@ enum silan_registers {
|
|||||||
TestD8 = 0xD8,
|
TestD8 = 0xD8,
|
||||||
};
|
};
|
||||||
|
|
||||||
#define MII_BMCR 0 // Basic mode control register
|
|
||||||
#define MII_BMSR 1 // Basic mode status register
|
|
||||||
#define MII_JAB 16
|
#define MII_JAB 16
|
||||||
#define MII_OutputStatus 24
|
#define MII_OutputStatus 24
|
||||||
|
|
||||||
#define BMCR_FULLDPLX 0x0100 // Full duplex
|
|
||||||
#define BMCR_ANRESTART 0x0200 // Auto negotiation restart
|
|
||||||
#define BMCR_ANENABLE 0x1000 // Enable auto negotiation
|
|
||||||
#define BMCR_SPEED100 0x2000 // Select 100Mbps
|
|
||||||
#define BMSR_LSTATUS 0x0004 // Link status
|
|
||||||
#define PHY_16_JAB_ENB 0x1000
|
#define PHY_16_JAB_ENB 0x1000
|
||||||
#define PHY_16_PORT_ENB 0x1
|
#define PHY_16_PORT_ENB 0x1
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user