Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 90860
b: refs/heads/master
c: c5e38a9
h: refs/heads/master
v: v3
  • Loading branch information
Andy Fleming authored and Jeff Garzik committed Apr 17, 2008
1 parent f24e409 commit 684aef9
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 17 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: 9d9326d3bc0ea9a8bbe40bf3e5e66c7b9858caa0
refs/heads/master: c5e38a949bfa11d10f73927fbf4fe66b73bc3001
48 changes: 32 additions & 16 deletions trunk/include/linux/phy.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
SUPPORTED_1000baseT_Half | \
SUPPORTED_1000baseT_Full)

/* Set phydev->irq to PHY_POLL if interrupts are not supported,
/*
* Set phydev->irq to PHY_POLL if interrupts are not supported,
* or not desired for this PHY. Set to PHY_IGNORE_INTERRUPT if
* the attached driver handles the interrupt
*/
Expand Down Expand Up @@ -80,8 +81,10 @@ typedef enum {
*/
#define MII_BUS_ID_SIZE (BUS_ID_SIZE - 3)

/* The Bus class for PHYs. Devices which provide access to
* PHYs should register using this structure */
/*
* The Bus class for PHYs. Devices which provide access to
* PHYs should register using this structure
*/
struct mii_bus {
const char *name;
char id[MII_BUS_ID_SIZE];
Expand All @@ -90,8 +93,10 @@ struct mii_bus {
int (*write)(struct mii_bus *bus, int phy_id, int regnum, u16 val);
int (*reset)(struct mii_bus *bus);

/* A lock to ensure that only one thing can read/write
* the MDIO bus at a time */
/*
* A lock to ensure that only one thing can read/write
* the MDIO bus at a time
*/
struct mutex mdio_lock;

struct device *dev;
Expand All @@ -102,8 +107,10 @@ struct mii_bus {
/* Phy addresses to be ignored when probing */
u32 phy_mask;

/* Pointer to an array of interrupts, each PHY's
* interrupt at the index matching its address */
/*
* Pointer to an array of interrupts, each PHY's
* interrupt at the index matching its address
*/
int *irq;
};

Expand Down Expand Up @@ -255,7 +262,8 @@ struct phy_device {
/* Bus address of the PHY (0-32) */
int addr;

/* forced speed & duplex (no autoneg)
/*
* forced speed & duplex (no autoneg)
* partner speed & duplex & pause (autoneg)
*/
int speed;
Expand All @@ -278,8 +286,10 @@ struct phy_device {

int link_timeout;

/* Interrupt number for this PHY
* -1 means no interrupt */
/*
* Interrupt number for this PHY
* -1 means no interrupt
*/
int irq;

/* private data pointer */
Expand Down Expand Up @@ -329,22 +339,28 @@ struct phy_driver {
u32 features;
u32 flags;

/* Called to initialize the PHY,
* including after a reset */
/*
* Called to initialize the PHY,
* including after a reset
*/
int (*config_init)(struct phy_device *phydev);

/* Called during discovery. Used to set
* up device-specific structures, if any */
/*
* Called during discovery. Used to set
* up device-specific structures, if any
*/
int (*probe)(struct phy_device *phydev);

/* PHY Power Management */
int (*suspend)(struct phy_device *phydev);
int (*resume)(struct phy_device *phydev);

/* Configures the advertisement and resets
/*
* Configures the advertisement and resets
* autonegotiation if phydev->autoneg is on,
* forces the speed to the current settings in phydev
* if phydev->autoneg is off */
* if phydev->autoneg is off
*/
int (*config_aneg)(struct phy_device *phydev);

/* Determines the negotiated speed and duplex */
Expand Down

0 comments on commit 684aef9

Please sign in to comment.