Merge branch 'stable-3.16' of git://git.infradead.org/users/pcmoore/selinux into...
[deliverable/linux.git] / include / linux / phy_fixed.h
CommitLineData
7c32f470
VB
1#ifndef __PHY_FIXED_H
2#define __PHY_FIXED_H
3
7c32f470 4struct fixed_phy_status {
a79d8e93
VB
5 int link;
6 int speed;
7 int duplex;
8 int pause;
9 int asym_pause;
7c32f470
VB
10};
11
a7595121
TP
12struct device_node;
13
a79d8e93
VB
14#ifdef CONFIG_FIXED_PHY
15extern int fixed_phy_add(unsigned int irq, int phy_id,
16 struct fixed_phy_status *status);
a7595121
TP
17extern int fixed_phy_register(unsigned int irq,
18 struct fixed_phy_status *status,
19 struct device_node *np);
46cfd6ea 20extern void fixed_phy_del(int phy_addr);
a79d8e93
VB
21#else
22static inline int fixed_phy_add(unsigned int irq, int phy_id,
23 struct fixed_phy_status *status)
24{
25 return -ENODEV;
26}
a7595121
TP
27static inline int fixed_phy_register(unsigned int irq,
28 struct fixed_phy_status *status,
29 struct device_node *np)
30{
31 return -ENODEV;
32}
46cfd6ea
KZ
33static inline int fixed_phy_del(int phy_addr)
34{
35 return -ENODEV;
36}
a79d8e93 37#endif /* CONFIG_FIXED_PHY */
7c32f470 38
a79d8e93
VB
39/*
40 * This function issued only by fixed_phy-aware drivers, no need
41 * protect it with #ifdef
42 */
43extern int fixed_phy_set_link_update(struct phy_device *phydev,
44 int (*link_update)(struct net_device *,
45 struct fixed_phy_status *));
7c32f470
VB
46
47#endif /* __PHY_FIXED_H */
This page took 0.988085 seconds and 5 git commands to generate.