mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-25 18:30:06 +00:00
![Florian Fainelli](/assets/img/avatar_default.png)
In preparation for having the bcmgenet driver migrate over the mdio-bcm-unimac driver, add a platform data structure which allows passing integrating specific details like bus name, wait function to complete MDIO operations and PHY mask. We also define what the platform device name contract is by defining UNIMAC_MDIO_DRV_NAME and moving it to the platform_data header. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
13 lines
275 B
C
13 lines
275 B
C
#ifndef __MDIO_BCM_UNIMAC_PDATA_H
|
|
#define __MDIO_BCM_UNIMAC_PDATA_H
|
|
|
|
struct unimac_mdio_pdata {
|
|
u32 phy_mask;
|
|
int (*wait_func)(void *data);
|
|
void *wait_func_data;
|
|
const char *bus_name;
|
|
};
|
|
|
|
#define UNIMAC_MDIO_DRV_NAME "unimac-mdio"
|
|
|
|
#endif /* __MDIO_BCM_UNIMAC_PDATA_H */
|