FreeBSD/Linux Kernel Cross Reference
sys/pci/README.bt848
1 -------------------------------------------------------------------------------
2 Recent versions of 3.0-current have the bktr driver built in. Older versions
3 of 3.0 and all versions of 2.2 previous to 2.2.5 need to have the driver
4 files installed by hand. If you find you have no /sys/pci/brooktree848.c
5 file in your source tree, you will need to do the following:
6
7 cp ioctl_bt848.h /sys/i386/include/
8 cp brktree_reg.h brooktree848.c /sys/pci/
9
10 And in /sys/conf/files add:
11 pci/brooktree848.c optional bktr device-driver
12
13 -------------------------------------------------------------------------------
14 In all cases you will need to add the driver to your kernel:
15
16 In your kernel configuration file:
17 controller pci0 #if you already have this line don't add it.
18 device bktr0
19
20 There is no need to specify DMA channels nor interrupts for this
21 driver.
22
23 -------------------------------------------------------------------------------
24 Finally you need to create nodes for the driver:
25
26 Create a video device:
27 mknod /dev/bktr0 c 92 0
28
29 Create a tuner device:
30 mknod /dev/tuner0 c 92 16
31
32 Or, if your /dev/MAKEDEV script is up to date (and you can copy the latest
33 from /usr/src/etc/etc.i386/MAKEDEV) simply type: cd /dev && ./MAKEDEV bktr0
34
35 -------------------------------------------------------------------------------
36 The code attempts to auto-probe code to detect card/tuner types.
37 The detected card is printed in the dmesg as the driver is loaded. If
38 this fails to detect the proper card you can override it in brooktree848.c:
39
40 #define OVERRIDE_CARD <card type>
41
42 where <card type> is one of:
43 CARD_UNKNOWN
44 CARD_MIRO
45 CARD_HAUPPAUGE
46 CARD_STB
47 CARD_INTEL
48
49 -------------------------------------------------------------------------------
50 This model now separates the "tuner control" items into a minor device:
51
52 minor device layout: xxxxxxxx xxxT UUUU
53
54 UUUU: the card (ie UNIT) identifier, 0 thru 15
55 T == 0: video device
56 T == 1: tuner device
57
58 Access your tuner ioctl thru your tuner device handle and anything
59 which controls the video capture process thru the video device handle.
60
61 Certain ioctl()s such as video source are available thru both devices.
62
63 -------------------------------------------------------------------------------
64 The bt848 driver consists of:
65
66 src/sys/i386/include/ioctl_bt848.h
67 src/sys/pci/brktree_reg.h
68 src/sys/pci/brooktree848.c
69
70
Cache object: 233c012f05ebe6be20ebc57f465db47d
|