cregit-Linux how code gets into the kernel

Release 4.16 include/linux/phy_fixed.h

Directory: include/linux
/* SPDX-License-Identifier: GPL-2.0 */
#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 *));
#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%

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

Overall Contributors

PersonTokensPropCommitsCommitProp
Vitaly Bordug9542.41%220.00%
Thomas Petazzoni4520.09%110.00%
Florian Fainelli3616.07%110.00%
Andrew Lunn2410.71%220.00%
Konrad Zapalowicz94.02%110.00%
Petri Gynther94.02%110.00%
David S. Miller52.23%110.00%
Greg Kroah-Hartman10.45%110.00%
Total224100.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.