1997-03-25 04:18:24 +00:00
|
|
|
-------------------------------------------------------------------------------
|
1997-04-02 01:48:39 +00:00
|
|
|
Recent versions of 3.0-current have the bktr driver built in. Older versions
|
1997-05-01 00:42:54 +00:00
|
|
|
of 3.0 and all versions of 2.2 need to have the driver files installed by hand:
|
1997-03-25 04:18:24 +00:00
|
|
|
|
1997-05-01 00:42:54 +00:00
|
|
|
cp ioctl_bt848.h /sys/i386/include/
|
|
|
|
cp brktree_reg.h brooktree848.c /sys/pci/
|
1997-03-25 04:18:24 +00:00
|
|
|
|
1997-04-02 01:48:39 +00:00
|
|
|
In /sys/conf/files add:
|
|
|
|
pci/brooktree848.c optional bktr device-driver
|
1997-03-25 04:18:24 +00:00
|
|
|
|
1997-04-02 01:48:39 +00:00
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
In all cases you will need to add the driver to your kernel:
|
1997-03-25 04:18:24 +00:00
|
|
|
|
1997-04-02 01:48:39 +00:00
|
|
|
In your kernel configuration file:
|
|
|
|
controller pci0 #if you already have this line don't add it.
|
|
|
|
device bktr0
|
1997-03-25 04:18:24 +00:00
|
|
|
|
1997-04-02 01:48:39 +00:00
|
|
|
There is no need to specify DMA channels nor interrupts for this
|
|
|
|
driver.
|
1997-03-25 04:18:24 +00:00
|
|
|
|
1997-03-10 06:38:26 +00:00
|
|
|
-------------------------------------------------------------------------------
|
1997-04-02 01:48:39 +00:00
|
|
|
Finally you need to create nodes for the driver:
|
1997-03-10 06:38:26 +00:00
|
|
|
|
1997-04-02 01:48:39 +00:00
|
|
|
Create a video device:
|
|
|
|
mknod /dev/bktr0 c 79 0
|
1997-03-10 06:38:26 +00:00
|
|
|
|
1997-04-02 01:48:39 +00:00
|
|
|
Create a tuner device:
|
|
|
|
mknod /dev/tuner0 c 79 16
|
1997-03-10 06:38:26 +00:00
|
|
|
|
|
|
|
-------------------------------------------------------------------------------
|
1997-04-02 01:48:39 +00:00
|
|
|
The code attempts to auto-probe code to detect card/tuner types.
|
1997-03-21 17:33:03 +00:00
|
|
|
The detected card is printed in the dmesg as the driver is loaded. If
|
|
|
|
this fails to detect the proper card you can override it in brooktree848.c:
|
1997-03-10 06:38:26 +00:00
|
|
|
|
1997-03-21 17:33:03 +00:00
|
|
|
#define OVERRIDE_CARD <card type>
|
1997-03-10 06:38:26 +00:00
|
|
|
|
1997-03-21 17:33:03 +00:00
|
|
|
where <card type> is one of:
|
|
|
|
CARD_UNKNOWN
|
|
|
|
CARD_MIRO
|
|
|
|
CARD_HAUPPAUGE
|
|
|
|
CARD_STB
|
|
|
|
CARD_INTEL
|
1997-03-10 06:38:26 +00:00
|
|
|
|
1997-04-02 01:48:39 +00:00
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
This model now separates the "tuner control" items into a minor device:
|
1997-03-10 06:38:26 +00:00
|
|
|
|
1997-04-02 01:48:39 +00:00
|
|
|
minor device layout: xxxxxxxx xxxT UUUU
|
1997-03-21 17:33:03 +00:00
|
|
|
|
1997-04-02 01:48:39 +00:00
|
|
|
UUUU: the card (ie UNIT) identifier, 0 thru 15
|
|
|
|
T == 0: video device
|
|
|
|
T == 1: tuner device
|
1997-03-10 06:38:26 +00:00
|
|
|
|
1997-04-02 01:48:39 +00:00
|
|
|
Access your tuner ioctl thru your tuner device handle and anything
|
|
|
|
which controls the video capture process thru the video device handle.
|
1997-03-10 06:38:26 +00:00
|
|
|
|
1997-04-02 01:48:39 +00:00
|
|
|
Certain ioctl()s such as video source are available thru both devices.
|
1997-03-10 06:38:26 +00:00
|
|
|
|
1997-04-02 01:48:39 +00:00
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
The bt848 driver consists of:
|
1997-03-21 17:33:03 +00:00
|
|
|
|
1997-04-02 01:48:39 +00:00
|
|
|
src/sys/i386/include/ioctl_bt848.h
|
|
|
|
src/sys/pci/brktree_reg.h
|
|
|
|
src/sys/pci/brooktree848.c
|
|
|
|
|
1997-03-10 06:38:26 +00:00
|
|
|
|