cregit-Linux how code gets into the kernel

Release 4.7 include/linux/phy_fixed.h

Directory: include/linux
#ifndef __PHY_FIXED_H

#define __PHY_FIXED_H


struct fixed_phy_status {
	
int link;
	
int speed;
	
int duplex;
	
int pause;
	
int asym_pause;
};

struct device_node;

#if IS_ENABLED(CONFIG_FIXED_PHY)
extern int fixed_phy_add(unsigned int irq, int phy_id,
			 struct fixed_phy_status *status,
			 int link_gpio);
extern struct phy_device *fixed_phy_register(unsigned int irq,
					     struct fixed_phy_status *status,
					     int link_gpio,
					     struct device_node *np);
extern void fixed_phy_unregister(struct phy_device *phydev);
extern int fixed_phy_set_link_update(struct phy_device *phydev,
			int (*link_update)(struct net_device *,
					   struct fixed_phy_status *));
extern int fixed_phy_update_state(struct phy_device *phydev,
			   const struct fixed_phy_status *status,
			   const struct fixed_phy_status *changed);
#else

static inline int fixed_phy_add(unsigned int irq, int phy_id, struct fixed_phy_status *status, int link_gpio) { return -ENODEV; }

Contributors

PersonTokensPropCommitsCommitProp
vitaly bordugvitaly bordug2388.46%266.67%
andrew lunnandrew lunn311.54%133.33%
Total26100.00%3100.00%


static inline struct phy_device *fixed_phy_register(unsigned int irq, struct fixed_phy_status *status, int gpio_link, struct device_node *np) { return ERR_PTR(-ENODEV); }

Contributors

PersonTokensPropCommitsCommitProp
thomas petazzonithomas petazzoni2472.73%133.33%
petri gyntherpetri gynther618.18%133.33%
andrew lunnandrew lunn39.09%133.33%
Total33100.00%3100.00%


static inline void fixed_phy_unregister(struct phy_device *phydev) { }

Contributors

PersonTokensPropCommitsCommitProp
andrew lunnandrew lunn763.64%150.00%
konrad zapalowiczkonrad zapalowicz436.36%150.00%
Total11100.00%2100.00%


static inline int fixed_phy_set_link_update(struct phy_device *phydev, int (*link_update)(struct net_device *, struct fixed_phy_status *)) { return -ENODEV; }

Contributors

PersonTokensPropCommitsCommitProp
vitaly bordugvitaly bordug2374.19%266.67%
florian fainelliflorian fainelli825.81%133.33%
Total31100.00%3100.00%


static inline int fixed_phy_update_state(struct phy_device *phydev, const struct fixed_phy_status *status, const struct fixed_phy_status *changed) { return -ENODEV; }

Contributors

PersonTokensPropCommitsCommitProp
stas sergeevstas sergeev28100.00%1100.00%
Total28100.00%1100.00%

#endif /* CONFIG_FIXED_PHY */ #endif /* __PHY_FIXED_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
vitaly bordugvitaly bordug9534.80%220.00%
stas sergeevstas sergeev5018.32%110.00%
thomas petazzonithomas petazzoni4516.48%110.00%
florian fainelliflorian fainelli3613.19%110.00%
andrew lunnandrew lunn248.79%220.00%
konrad zapalowiczkonrad zapalowicz93.30%110.00%
petri gyntherpetri gynther93.30%110.00%
david s. millerdavid s. miller51.83%110.00%
Total273100.00%10100.00%
Directory: include/linux
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
{% endraw %}