.PATH: ${SRCTOP}/sys/dev/gasket

KMOD=	gasket
SRCS=	gasket_core.c gasket_chardev.c gasket_mmap.c gasket_coherent.c
SRCS+=	gasket_page_table.c gasket_ptbl_alloc.c gasket_dma.c
SRCS+=	gasket_if.c gasket_if.h
SRCS+=	device_if.h bus_if.h pci_if.h vnode_if.h

# The device page table needs atomic 64 bit MMIO and 4 KiB pages.
.if ${MACHINE_CPUARCH} != "amd64"
.error gasket requires an architecture with bus_read_8()/bus_write_8()
.endif

.include <bsd.kmod.mk>
