]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
net: Use phys_addr_t for SMC net device addresses
authorPeter Hoyes <Peter.Hoyes@arm.com>
Fri, 9 Jul 2021 09:52:06 +0000 (10:52 +0100)
committerRamon Fried <rfried.dev@gmail.com>
Thu, 22 Jul 2021 18:55:05 +0000 (21:55 +0300)
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>
drivers/net/smc91111.c
drivers/net/smc911x.c
include/netdev.h

index ec4e8e928cb6edd387067608d000d83c0fb89f62..61d7f3df69ee6532077074d4a28507d4f31aa17a 100644 (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;
index 3afebee440220b93e85dd1974ed51bcc116b436a..8f420261fa8d9fdff694c99ab8488ec64006b214 100644 (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;
index b960c421063d38fb92b78bd1a8fe8d98dee2853b..00a0993a8356d4c74a276913fe1b5be91cdf9c87 100644 (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);