Subject: kern/26008: how to integrate non bt848 driver with current bt848 driver.
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <cherry@sdf.lonestar.org>
List: netbsd-bugs
Date: 06/22/2004 15:13:22
>Number: 26008
>Category: kern
>Synopsis: how to integrate non bt848 driver with current bt848 driver.
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: kern-bug-people
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Tue Jun 22 15:14:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: Mathew, Cherry George
>Release: 1.6.2
>Organization:
>Environment:
>Description:
Hello,
I'm thinking about porting an existing driver for the pixelview combo tv tuner card ( Non bt848 ).
Components on the card include a philips fm1246 tuner, a vpx3225d video processor, some custom wiring for sound, and a cirrus logic GD5446.
The problem is that the fxtv/bt848 driver are brooktree specific, use custom i2c functions ( not the "new" framework" ), and implement the tuner drivers internally.
This PR is to initiate "generalizing" this driver API, so that new drivers can fit into the framework smoothly.
The task list would include:
1) Splitting and distributing the driver and pci functions from the sys/dev/pci directory to their logical places in the sys/dev, sys/dev/pci and sys/dev/i2c directories.
2) Hacking the code to remove imported #ifdef clutter from other ports.
3) Rewriting parts of the driver code to use the new i2c framework.
4) Re-designing the driver API to be more generic.
I think this will go a long way in meeting the NetBSD goal of "portability", and ease the pain of new coders who're unsure of whose territory they're trampling on ( alright, I'm one of them :-) ).
Thanks,
Cherry.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: