cregit-Linux how code gets into the kernel

Release 4.12 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 Bordug2388.46%266.67%
Andrew 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 Petazzoni2472.73%133.33%
Petri Gynther618.18%133.33%
Andrew Lunn39.09%133.33%
Total33100.00%3100.00%


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

Contributors

PersonTokensPropCommitsCommitProp
Andrew Lunn763.64%150.00%
Konrad 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 Bordug2374.19%266.67%
Florian 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 Sergeev28100.00%1100.00%
Total28100.00%1100.00%

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

Overall Contributors

PersonTokensPropCommitsCommitProp
Vitaly Bordug9534.80%220.00%
Stas Sergeev5018.32%110.00%
Thomas Petazzoni4516.48%110.00%
Florian Fainelli3613.19%110.00%
Andrew Lunn248.79%220.00%
Petri Gynther93.30%110.00%
Konrad Zapalowicz93.30%110.00%
David 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.
Created with cregit.