net/ngbe: set MAC type and LAN ID with initialization
authorJiawen Wu <jiawenwu@trustnetic.com>
Thu, 8 Jul 2021 09:32:25 +0000 (17:32 +0800)
committerAndrew Rybchenko <Andrew.Rybchenko@oktetlabs.ru>
Mon, 12 Jul 2021 15:55:21 +0000 (17:55 +0200)
commit68eb13a1ef3670410256ecb79603a61ffb49a1af
tree338d781b3fa40ef898aaf3fe0a97e2c48edac252
parented5f3bd3373e3838844ff6f695b69a58296dcfab
net/ngbe: set MAC type and LAN ID with initialization

Add basic init and uninit function.
Map device IDs and subsystem IDs to single ID for easy operation.
Then initialize the shared code.

Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>
drivers/net/ngbe/base/meson.build
drivers/net/ngbe/base/ngbe.h [new file with mode: 0644]
drivers/net/ngbe/base/ngbe_dummy.h [new file with mode: 0644]
drivers/net/ngbe/base/ngbe_hw.c [new file with mode: 0644]
drivers/net/ngbe/base/ngbe_hw.h [new file with mode: 0644]
drivers/net/ngbe/base/ngbe_osdep.h [new file with mode: 0644]
drivers/net/ngbe/base/ngbe_type.h [new file with mode: 0644]
drivers/net/ngbe/ngbe_ethdev.c
drivers/net/ngbe/ngbe_ethdev.h [new file with mode: 0644]