mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-23 19:28:36 +00:00
ath10k/rtw89: make compile again after LinuxKPI changes
Both drivers are not yet attached to the build so this change is
for people currently trying them out.
In 96ab16ebab
the sys/rman.h include
was removed. In various wireless drivers we prefer to directly use
bus_dma functions rather than io* LinuxKPI once. In order to cast
the pointer we need sys/rman.h back for our native 'struct resource'
in their pci.c implementations.
Long-term we should consider providing some lkpi_-FreeBSD-specific
wrapper functions to avoid this problem.
MFC after: 3 days
This commit is contained in:
parent
118d0ff54d
commit
c8e7f78a3d
|
@ -15,6 +15,7 @@
|
|||
#include <linux/bitops.h>
|
||||
#if defined(__FreeBSD__)
|
||||
#include <linux/delay.h>
|
||||
#include <sys/rman.h>
|
||||
#endif
|
||||
|
||||
#include "core.h"
|
||||
|
|
|
@ -7,6 +7,9 @@
|
|||
#endif
|
||||
|
||||
#include <linux/pci.h>
|
||||
#if defined(__FreeBSD__)
|
||||
#include <sys/rman.h>
|
||||
#endif
|
||||
|
||||
#include "mac.h"
|
||||
#include "pci.h"
|
||||
|
|
Loading…
Reference in a new issue