GNU Linux-libre 4.9-gnu1
[releases.git] / drivers / net / ethernet / qualcomm / emac / emac-phy.h
1 /* Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
2 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10 * GNU General Public License for more details.
11 */
12
13 #ifndef _EMAC_PHY_H_
14 #define _EMAC_PHY_H_
15
16 typedef int (*emac_sgmii_initialize)(struct emac_adapter *adpt);
17
18 /** emac_phy - internal emac phy
19  * @base base address
20  * @digital per-lane digital block
21  * @initialize initialization function
22  */
23 struct emac_phy {
24         void __iomem            *base;
25         void __iomem            *digital;
26         emac_sgmii_initialize   initialize;
27 };
28
29 struct emac_adapter;
30
31 int emac_phy_config(struct platform_device *pdev, struct emac_adapter *adpt);
32
33 #endif /* _EMAC_PHY_H_ */