1999-06-12 15:00:19 +00:00
|
|
|
# Makefile for the bktr Brooktree Bt848/Bt878 PCI video capture device
|
|
|
|
# Using the new FreeBSD 4.x device driver API (newbus) the Bt848 driver
|
|
|
|
# can be loaded dynamically both in the boot loader phase and once
|
|
|
|
# the system has booted.
|
|
|
|
# The driver can also be unloaded, recompiled and reloaded.
|
|
|
|
#
|
|
|
|
# Use kldload bktr and kldunload bktr to load/unload the driver
|
|
|
|
#
|
|
|
|
# Note - as the driver requires contiguous memory, loading the driver once
|
|
|
|
# memory has filled or become fragmented may fail.
|
|
|
|
|
1999-06-12 15:08:50 +00:00
|
|
|
# $Id: Makefile,v 1.1 1999/06/12 15:00:19 roger Exp $
|
1999-06-12 15:00:19 +00:00
|
|
|
|
|
|
|
S = ${.CURDIR}/../..
|
|
|
|
.PATH: $S/pci
|
|
|
|
KMOD = bktr
|
|
|
|
SRCS = brooktree848.c bktr.h opt_devfs.h opt_bktr.h pci.h smbus.h bus_if.h device_if.h pci_if.h
|
|
|
|
CLEANFILES += bktr.h opt_devfs.h opt_bktr.h pci.h smbus.h bus_if.h device_if.h pci_if.h
|
|
|
|
FLAGS += ${DEBUG_FLAGS}
|
|
|
|
|
|
|
|
bktr.h:
|
|
|
|
echo "#define NBKTR 1" > bktr.h
|
|
|
|
|
|
|
|
pci.h:
|
|
|
|
echo "#define NPCI 1" > pci.h
|
|
|
|
|
|
|
|
smbus.h:
|
1999-06-12 15:08:50 +00:00
|
|
|
# Does not use SMBUS/IICBUS. Uses the old i2c code self contained in
|
1999-06-12 15:00:19 +00:00
|
|
|
# the bt848 driver.
|
|
|
|
echo "#define NSMBUS 0" > smbus.h
|
|
|
|
|
|
|
|
opt_devfs.h:
|
|
|
|
touch opt_devfs.h
|
|
|
|
|
|
|
|
opt_bktr.h:
|
|
|
|
touch opt_bktr.h
|
|
|
|
|
|
|
|
device_if.h: $S/kern/makedevops.pl $S/kern/device_if.m
|
1999-06-12 15:08:50 +00:00
|
|
|
perl $S/kern/makedevops.pl -h $S/kern/device_if.m
|
1999-06-12 15:00:19 +00:00
|
|
|
|
|
|
|
bus_if.h: $S/kern/makedevops.pl $S/kern/bus_if.m
|
1999-06-12 15:08:50 +00:00
|
|
|
perl $S/kern/makedevops.pl -h $S/kern/bus_if.m
|
1999-06-12 15:00:19 +00:00
|
|
|
|
|
|
|
pci_if.h: $S/kern/makedevops.pl $S/pci/pci_if.m
|
1999-06-12 15:08:50 +00:00
|
|
|
perl $S/kern/makedevops.pl -h $S/pci/pci_if.m
|
1999-06-12 15:00:19 +00:00
|
|
|
|
|
|
|
.include <bsd.kmod.mk>
|