blob: 7df6084c7a7729f1b53dc0b80306488a245c6a57 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef __DRIVERS_NET_PHY_XPOWERS_ACX00_H
#define __DRIVERS_NET_PHY_XPOWERS_ACX00_H
#include <linux/err.h>
#include <linux/phy.h>
#define AC300_EPHY_CONTROL_ADDR_OFFSET 16
struct device_node;
struct acx00_ephy_control {
int (*power_on)(struct acx00_ephy_control *control,
unsigned int phy_addr);
int (*power_off)(struct acx00_ephy_control *control);
int (*set_interface)(struct acx00_ephy_control *control,
phy_interface_t interface);
};
struct acx00_ephy_control *
ac200_ephy_ctl_create(struct phy_device *phydev,
struct device_node *package_node,
bool has_calibration, u8 calibration);
struct acx00_ephy_control *
ac300_ephy_ctl_create(struct phy_device *phydev,
struct device_node *package_node, u8 calibration);
#endif
|