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)
commitf0d1a29dc5e2dbdc42223d409b72ae110e95dc28
treeacc07790e28a40d6e0df4c5d2ed1a2a09979d348
parent1494a4aacef17a3fc94847104e98d083da7659c9
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