From 2fcf151a8e93806907081652a0389fb89aedd355 Mon Sep 17 00:00:00 2001 From: Jiading Xu Date: Sun, 7 Apr 2024 09:09:47 +0800 Subject: [components][drivers][include][phy] add one more parameter for mulitiple phys - add parameter phy to specify multiple-phy instance Signed-off-by: Jiading Xu --- components/drivers/include/drivers/phy.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'components/drivers/include') diff --git a/components/drivers/include/drivers/phy.h b/components/drivers/include/drivers/phy.h index 862b711ff0..c51c494c15 100644 --- a/components/drivers/include/drivers/phy.h +++ b/components/drivers/include/drivers/phy.h @@ -55,11 +55,11 @@ typedef rt_int32_t rt_phy_status; struct rt_phy_ops { rt_phy_status (*init)(void *object, rt_uint32_t phy_addr, rt_uint32_t src_clock_hz); - rt_phy_status (*read)(rt_uint32_t reg, rt_uint32_t *data); - rt_phy_status (*write)(rt_uint32_t reg, rt_uint32_t data); - rt_phy_status (*loopback)(rt_uint32_t mode, rt_uint32_t speed, rt_bool_t enable); - rt_phy_status (*get_link_status)(rt_bool_t *status); - rt_phy_status (*get_link_speed_duplex)(rt_uint32_t *speed, rt_uint32_t *duplex); + rt_phy_status (*read)(rt_phy_t *phy, rt_uint32_t reg, rt_uint32_t *data); + rt_phy_status (*write)(rt_phy_t *phy, rt_uint32_t reg, rt_uint32_t data); + rt_phy_status (*loopback)(rt_phy_t *phy, rt_uint32_t mode, rt_uint32_t speed, rt_bool_t enable); + rt_phy_status (*get_link_status)(rt_phy_t *phy, rt_bool_t *status); + rt_phy_status (*get_link_speed_duplex)(rt_phy_t *phy, rt_uint32_t *speed, rt_uint32_t *duplex); }; rt_err_t rt_hw_phy_register(struct rt_phy_device *phy, const char *name); -- cgit v1.3.1