mirror of https://github.com/ipxe/ipxe.git
[mii] Synchronise constants with current Linux include/linux/mii.h
Signed-off-by: Michael Brown <mcb30@ipxe.org>pull/6/head
parent
2f3f0ca953
commit
d27e6d6efd
|
@ -93,7 +93,6 @@ static int falcon_mdio_read ( struct efab_nic *efab, int device, int location );
|
||||||
#define LPA_EF_10000FULL 0x00040000
|
#define LPA_EF_10000FULL 0x00040000
|
||||||
#define LPA_EF_10000HALF 0x00080000
|
#define LPA_EF_10000HALF 0x00080000
|
||||||
|
|
||||||
#define LPA_100 (LPA_100FULL | LPA_100HALF | LPA_100BASE4)
|
|
||||||
#define LPA_EF_1000 ( LPA_EF_1000FULL | LPA_EF_1000HALF )
|
#define LPA_EF_1000 ( LPA_EF_1000FULL | LPA_EF_1000HALF )
|
||||||
#define LPA_EF_10000 ( LPA_EF_10000FULL | LPA_EF_10000HALF )
|
#define LPA_EF_10000 ( LPA_EF_10000FULL | LPA_EF_10000HALF )
|
||||||
#define LPA_EF_DUPLEX ( LPA_10FULL | LPA_100FULL | LPA_EF_1000FULL | \
|
#define LPA_EF_DUPLEX ( LPA_10FULL | LPA_100FULL | LPA_EF_1000FULL | \
|
||||||
|
|
|
@ -1,22 +1,19 @@
|
||||||
/*
|
#ifndef _MII_H_
|
||||||
* linux/mii.h: definitions for MII-compatible transceivers
|
#define _MII_H_
|
||||||
* Originally drivers/net/sunhme.h.
|
|
||||||
|
/** @file
|
||||||
|
*
|
||||||
|
* Media Independent Interface constants
|
||||||
|
*
|
||||||
|
* Extracted from Linux's include/linux/mii.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 1996, 1999, 2001 David S. Miller (davem@redhat.com)
|
* Copyright (C) 1996, 1999, 2001 David S. Miller (davem@redhat.com)
|
||||||
*
|
*
|
||||||
* Copied Form Linux 2.4.25 an unneeded items removed by:
|
|
||||||
* Timothy Legge (timlegge at etherboot dot org)
|
|
||||||
*
|
|
||||||
* 03/26/2004
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
FILE_LICENCE ( GPL2_ONLY );
|
FILE_LICENCE ( GPL2_ONLY );
|
||||||
|
|
||||||
#ifndef _MII_H_
|
|
||||||
#define _MII_H_
|
|
||||||
|
|
||||||
/* Generic MII registers. */
|
/* Generic MII registers. */
|
||||||
|
|
||||||
#define MII_BMCR 0x00 /* Basic mode control register */
|
#define MII_BMCR 0x00 /* Basic mode control register */
|
||||||
#define MII_BMSR 0x01 /* Basic mode status register */
|
#define MII_BMSR 0x01 /* Basic mode status register */
|
||||||
#define MII_PHYSID1 0x02 /* PHYS ID 1 */
|
#define MII_PHYSID1 0x02 /* PHYS ID 1 */
|
||||||
|
@ -135,10 +132,10 @@ FILE_LICENCE ( GPL2_ONLY );
|
||||||
#define ADVERTISE_1000HALF 0x0100 /* Advertise 1000BASE-T half duplex */
|
#define ADVERTISE_1000HALF 0x0100 /* Advertise 1000BASE-T half duplex */
|
||||||
|
|
||||||
/* 1000BASE-T Status register */
|
/* 1000BASE-T Status register */
|
||||||
#define LPA_1000LOCALRXOK 0x2000 /* Link partner local receiver status */
|
#define LPA_1000LOCALRXOK 0x2000 /* Partner local receiver status */
|
||||||
#define LPA_1000REMRXOK 0x1000 /* Link partner remote receiver status */
|
#define LPA_1000REMRXOK 0x1000 /* Partner remote receiver status */
|
||||||
#define LPA_1000FULL 0x0800 /* Link partner 1000BASE-T full duplex */
|
#define LPA_1000FULL 0x0800 /* Partner 1000BASE-T full duplex */
|
||||||
#define LPA_1000HALF 0x0400 /* Link partner 1000BASE-T half duplex */
|
#define LPA_1000HALF 0x0400 /* Partner 1000BASE-T half duplex */
|
||||||
|
|
||||||
#include <ipxe/netdevice.h>
|
#include <ipxe/netdevice.h>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue