Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 290526
b: refs/heads/master
c: 9c71775
h: refs/heads/master
v: v3
  • Loading branch information
Ben Hutchings authored and David S. Miller committed Mar 1, 2012
1 parent 3ef9549 commit 74706e8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 48752f6513012a1b078da08b145d5c40a644f058
refs/heads/master: 9c717758c9289331e22c88ef69d8c248def9cd29
1 change: 1 addition & 0 deletions trunk/include/linux/Kbuild
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ header-y += magic.h
header-y += major.h
header-y += map_to_7segment.h
header-y += matroxfb.h
header-y += mdio.h
header-y += media.h
header-y += mempolicy.h
header-y += meye.h
Expand Down
9 changes: 4 additions & 5 deletions trunk/include/linux/mdio.h
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,8 @@ static inline __u16 mdio_phy_id_c45(int prtad, int devad)
return MDIO_PHY_ID_C45 | (prtad << 5) | devad;
}

#ifdef __KERNEL__

static inline bool mdio_phy_id_is_c45(int phy_id)
{
return (phy_id & MDIO_PHY_ID_C45) && !(phy_id & ~MDIO_PHY_ID_C45_MASK);
Expand All @@ -288,11 +290,6 @@ static inline __u16 mdio_phy_id_devad(int phy_id)
return phy_id & MDIO_PHY_ID_DEVAD;
}

#define MDIO_SUPPORTS_C22 1
#define MDIO_SUPPORTS_C45 2

#ifdef __KERNEL__

/**
* struct mdio_if_info - Ethernet controller MDIO interface
* @prtad: PRTAD of the PHY (%MDIO_PRTAD_NONE if not present/unknown)
Expand Down Expand Up @@ -321,6 +318,8 @@ struct mdio_if_info {

#define MDIO_PRTAD_NONE (-1)
#define MDIO_DEVAD_NONE (-1)
#define MDIO_SUPPORTS_C22 1
#define MDIO_SUPPORTS_C45 2
#define MDIO_EMULATE_C22 4

struct ethtool_cmd;
Expand Down

0 comments on commit 74706e8

Please sign in to comment.