]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: rtl8139: Introduce device private data
authorMarek Vasut <marek.vasut@gmail.com>
Sat, 9 May 2020 20:34:39 +0000 (22:34 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 12 Jun 2020 17:17:23 +0000 (13:17 -0400)
commit3feb6f7ff6856e1e903e5a62f6252d37731b6592
tree6777e4c9523bba9ecc333e46da7d71968f95a8d9
parent8ff1d4a9c8e629253e43d9d04eccbfa773f81e83
net: rtl8139: Introduce device private data

Introduce rtl8139_pdata, which is a super-structure around eth_device
and tracks per-device state, here the device IO address, PCI BDF, RX
and TX ring position. Pass this structure around instead of the old
non-DM eth_device in preparation for DM conversion.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/rtl8139.c