1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00
freebsd/sys/pci/README.bt848
Steve Passe 2fab5f6edd "Louis A. Mamakos" <louie@TransSys.COM> new bt848 struct
Randall Hopper <rhh@ct.picker.com> GHUE/GBRIGHT bug
Louis Mamakos made a new bt848 struct, including massive changes to the entire
body of code, substituting array offsets with struct members.

Randall Hopper aadded fixes of BT848_GHUE & BT848_GBRIG.

I (fsmp):
  added polled hardware i2c routines,
  removed all existing software i2c routines.
  added  eeprom support.
1997-03-25 04:18:24 +00:00

72 lines
2.0 KiB
Plaintext

-------------------------------------------------------------------------------
This model now separates the "tuner control" items into a minor device:
Create a video device:
mknod bktr0 c 79 0
Create a tuner device:
mknod tuner0 c 79 16
minor device layout: xxxxxxxx xxxT UUUU
UUUU: the card (ie UNIT) identifier, 0 thru 15
T == 0: video device
T == 1: tuner device
Access your tuner ioctl thru your tuner device handle and anything
which controls the video capture process thru the video device handle.
Certain ioctl()s such as video source are available thru both devices.
-------------------------------------------------------------------------------
There are 3 files necessary for the bt848 driver:
src/sys/i386/include/ioctl_bt848.h
src/sys/pci/brktree_reg.h
src/sys/pci/brooktree848.c
Note that src/sys/i386/include/ioctl_meteor.h is no longer modifed in any way
to support the bt848 boards (unless there were prio modifications that I am
unaware of).
-------------------------------------------------------------------------------
There are 2 settings that you might need to make based on the type of card
you have:
--
1:
The code now attempts to auto-probe code to detect card/tuner types.
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:
#define OVERRIDE_CARD <card type>
where <card type> is one of:
CARD_UNKNOWN
CARD_MIRO
CARD_HAUPPAUGE
CARD_STB
CARD_INTEL
--
2:
The following is for start-up convenience only, NOT mandatory:
These options select the set of frequencies used by the tuner. In your
kernel config file set ONE of:
options DEFAULT_CHNLSET=1 # CHNLSET_NABCST
options DEFAULT_CHNLSET=2 # CHNLSET_CABLEIRC
Or, in pci/brooktree848.c, you can define ONE of:
#define DEFAULT_CHNLSET CHNLSET_NABCST
#define DEFAULT_CHNLSET CHNLSET_CABLEIRC
CHNLSET_NABCST (North American Broadcast frequencies) is the default.
CHNLSET_CABLEIRC selects the IRC cable frequencies.
Frequeny tables for other frequencies are yet to be written.