KMOD	= df5302
SRCS	= df5302.c
SRCS	+= bus_if.h device_if.h

# Rename fwohci.c's global symbols so they do not clash with the copy
# compiled into the guest kernel (X86_64_GENERIC has `device firewire`).
KCFLAGS+= -Dfwohci_init=dfh_init -Dfwohci_reset=dfh_reset \
	   -Dfwohci_detach=dfh_detach -Dfwohci_resume=dfh_resume \
	   -Dfwohci_stop=dfh_stop -Dfwohci_intr=dfh_intr \
	   -Dfwohci_poll=dfh_poll -Dfwohci_ioctl=dfh_ioctl \
	   -Dfwohci_txbufdb=dfh_txbufdb -Dfwohcicode=dfh_fwohcicode \
	   -Dtagbit=dfh_tagbit
KCFLAGS+= -I${SYSDIR} -Wall

.include <bsd.kmod.mk>
