net: Use phys_addr_t for SMC net device addresses

Use same type as eth_device->iobase and support addresses greater
than INT_MAX.

Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
This commit is contained in:
Peter Hoyes 2021-07-09 10:52:06 +01:00 committed by Ramon Fried
parent 806734f41b
commit b8da46fda6
3 changed files with 4 additions and 4 deletions

View file

@ -1269,7 +1269,7 @@ static void print_packet( byte * buf, int length )
}
#endif
int smc91111_initialize(u8 dev_num, int base_addr)
int smc91111_initialize(u8 dev_num, phys_addr_t base_addr)
{
struct smc91111_priv *priv;
struct eth_device *dev;

View file

@ -478,7 +478,7 @@ static int smc911x_recv(struct eth_device *dev)
return ret;
}
int smc911x_initialize(u8 dev_num, int base_addr)
int smc911x_initialize(u8 dev_num, phys_addr_t base_addr)
{
struct smc911x_priv *priv;
int ret;

View file

@ -70,8 +70,8 @@ int rtl8169_initialize(struct bd_info *bis);
int scc_initialize(struct bd_info *bis);
int sh_eth_initialize(struct bd_info *bis);
int skge_initialize(struct bd_info *bis);
int smc91111_initialize(u8 dev_num, int base_addr);
int smc911x_initialize(u8 dev_num, int base_addr);
int smc91111_initialize(u8 dev_num, phys_addr_t base_addr);
int smc911x_initialize(u8 dev_num, phys_addr_t base_addr);
int uec_standard_init(struct bd_info *bis);
int uli526x_initialize(struct bd_info *bis);
int armada100_fec_register(unsigned long base_addr);