]> git.baikalelectronics.ru Git - uboot.git/commit
net: dm9000: Pass private data around for IO
authorMarek Vasut <marex@denx.de>
Wed, 13 Apr 2022 02:15:34 +0000 (04:15 +0200)
committerRamon Fried <ramon@neureality.ai>
Wed, 13 Apr 2022 12:13:54 +0000 (15:13 +0300)
commit20ca6a5651fd2020a88fe2cdca5f00b8252103b1
treeacc07790e28a40d6e0df4c5d2ed1a2a09979d348
parent1e225d4b956f7c60e6bdb91cb1786717f631921c
net: dm9000: Pass private data around for IO

Pass private data into IO accessors and use the base addresses of
IO and DATA window from the private data instead of using the hard
coded macros DM9000_IO/DM9000_DATA. Currently both the DM9000_IO
and DM9000_DATA are assigned to the respecive private data fields
for the non-DM case backward compatibility.

Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Joe Hershberger <joe.hershberger@ni.com>
Cc: Ramon Fried <rfried.dev@gmail.com>
drivers/net/dm9000x.c