Merge branch 'systemport-next'
[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);
a79d8e93
VB
20#else
21static inline int fixed_phy_add(unsigned int irq, int phy_id,
22 struct fixed_phy_status *status)
23{
24 return -ENODEV;
25}
a7595121
TP
26static inline int fixed_phy_register(unsigned int irq,
27 struct fixed_phy_status *status,
28 struct device_node *np)
29{
30 return -ENODEV;
31}
a79d8e93 32#endif /* CONFIG_FIXED_PHY */
7c32f470 33
a79d8e93
VB
34/*
35 * This function issued only by fixed_phy-aware drivers, no need
36 * protect it with #ifdef
37 */
38extern int fixed_phy_set_link_update(struct phy_device *phydev,
39 int (*link_update)(struct net_device *,
40 struct fixed_phy_status *));
7c32f470
VB
41
42#endif /* __PHY_FIXED_H */
This page took 0.856321 seconds and 5 git commands to generate.