mirror of
https://github.com/opnsense/src.git
synced 2026-02-12 15:24:40 -05:00
When allocating unmapped pages, take advantage of the direct map on AMD64 to get the virtual address corresponding to a page. Else all pages allocated must be mapped because sometimes the virtual address of a page is requested. Move all page allocation and deallocation code into an own C-file. Add support for GFP_DMA32, GFP_KERNEL, GFP_ATOMIC and __GFP_ZERO allocation flags. Make a clear separation between mapped and unmapped allocations. Obtained from: kmacy @ MFC after: 1 week Sponsored by: Mellanox Technologies
27 lines
480 B
Makefile
27 lines
480 B
Makefile
# $FreeBSD$
|
|
.PATH: ${.CURDIR}/../../compat/linuxkpi/common/src
|
|
|
|
KMOD= linuxkpi
|
|
SRCS= linux_kmod.c \
|
|
linux_compat.c \
|
|
linux_current.c \
|
|
linux_kthread.c \
|
|
linux_page.c \
|
|
linux_pci.c \
|
|
linux_radix.c \
|
|
linux_rcu.c \
|
|
linux_tasklet.c \
|
|
linux_idr.c \
|
|
linux_usb.c
|
|
|
|
SRCS+= bus_if.h \
|
|
device_if.h \
|
|
pci_if.h \
|
|
vnode_if.h \
|
|
usb_if.h \
|
|
opt_usb.h
|
|
|
|
CFLAGS+= -I${.CURDIR}/../../compat/linuxkpi/common/include
|
|
CFLAGS+= -I${.CURDIR}/../../contrib/ck/include
|
|
|
|
.include <bsd.kmod.mk>
|