LinuxKPI: add (skeleton) functions to make drivers compile
authorBjoern A. Zeeb <bz@FreeBSD.org>
Sat, 3 Dec 2022 23:00:04 +0000 (23:00 +0000)
committerBjoern A. Zeeb <bz@FreeBSD.org>
Fri, 13 Jan 2023 00:38:11 +0000 (00:38 +0000)
commit75388b9ca5e566fb7cbd62a37cea1f66d8203fc6
tree95d5ac17ba0d477956a6f87cfa1c0e90e9023b8a
parentf82cf28b317b6b3ffd1418ab9c5b230145da8f75
LinuxKPI: add (skeleton) functions to make drivers compile

Add more functions to netdevice.h (netif_napi_add_tx() being the only
one implemented) and add platform_device.h and netlink.h in order to
make driver code compile.
The skeleton functions are used only in very limited scope and not at
all in our usage so far but add (invasive) #ifdef if removed.
Add pr_debug() calls to each of them in order to log a TODO (if DEBUG
compiled in) and someone should hit them in the future.

MFC after: 3 days
Commented on by: hselasky (earlier version)
Differential Revision: https://reviews.freebsd.org/D37599
sys/compat/linuxkpi/common/include/linux/netdevice.h
sys/compat/linuxkpi/common/include/linux/platform_device.h [new file with mode: 0644]
sys/compat/linuxkpi/common/include/net/netlink.h [new file with mode: 0644]