From owner-freebsd-hackers Wed Oct 28 11:09:06 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA01808 for freebsd-hackers-outgoing; Wed, 28 Oct 1998 11:09:06 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from fleming.cs.strath.ac.uk (fleming.cs.strath.ac.uk [130.159.196.126]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA01799 for ; Wed, 28 Oct 1998 11:09:03 -0800 (PST) (envelope-from roger@cs.strath.ac.uk) Received: from muir-10 (roger@muir-10.cs.strath.ac.uk [130.159.148.10]) by fleming.cs.strath.ac.uk (8.8.8/8.8.8) with SMTP id TAA22735 Wed, 28 Oct 1998 19:07:52 GMT Message-ID: <36376B89.41C6@cs.strath.ac.uk> Date: Wed, 28 Oct 1998 19:07:53 +0000 From: Roger Hardiman Organization: University of Strathclyde X-Mailer: Mozilla 3.04Gold (X11; I; OSF1 V4.0 alpha) MIME-Version: 1.0 To: Mike Smith CC: hackers@FreeBSD.ORG Subject: Re: Kernel config - passing flags to a PCI device References: <199810281752.JAA03858@dingo.cdrom.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Roger wrote > > Is it possible to pass flags from a kernel config to a PCI device > > I would like them in the bt848/878 driver. > > eg, device bktr0 flags 0x0103 > > Mike wrote > No. You should be detecting this automatically > anyway; that's what PCI is for. I agree you can read a manufacturer and model number from PCI chips. Very usefull too. In my case, I need the flags for things you cannot discover from the PCI chipset. CASE 1: The bt848 frame grabber opens in NTSC or PAL mode. Opening in the 'wrong mode' can lock up the bt848 chipset and hang the PC. (believe me, it took 2 weeks to trace this hardware 'feature') Currently there is a kernel option, "BROOKTREE_SYSTEM_DEFAULT" which effects all instances of the driver. I need specific flags to each bt848 card. (just like you can specify flags 0x80ff80ff to the IDE controller) CASE 2: On the Bt848 based frame grabbers, all you can get back from the PCI probe is "Manufacturer - Brooktree" and "model - BT848" Each of the different TV cards based on the bt848 use different tuner types. There is no way to probe the card to determine the tuner type or the OEM of the TV card. Currently, there are more kernel options and even some sysctls to specify this to the kernel driver. I would like this to be in a flags setting for each card. So, back to the question. How can I pass flags to a PCI device? Bye Roger To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message