From owner-freebsd-hackers Fri Dec 7 23:47:34 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mta05ps.bigpond.com (mta05ps.bigpond.com [144.135.25.137]) by hub.freebsd.org (Postfix) with ESMTP id B270A37B417 for ; Fri, 7 Dec 2001 23:47:28 -0800 (PST) Received: from voicetronix.com.au ([144.135.25.84]) by mta05ps.bigpond.com (Netscape Messaging Server 4.15) with SMTP id GO0LYD00.BRV for ; Sat, 8 Dec 2001 17:54:13 +1000 Received: from 144.137.194.16 ([144.137.194.16]) by psmam06.mailsvc.email.bigpond.com(MailRouter V2.9k 8419/34838142); 08 Dec 2001 17:47:21 Message-ID: <3C11C69B.F2898B1D@voicetronix.com.au> Date: Sat, 08 Dec 2001 18:21:55 +1030 From: David Rowe Organization: Voicetronix X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.2-2 i686) X-Accept-Language: en MIME-Version: 1.0 To: hackers@freebsd.org Subject: Newbie: Driver for PLX9050 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello, I am new to FreeBSD and am attempting to write a device driver for a Computer Telephony card, that uses the PLX9050 bridge chip. I started with the KLD sample in section 22.1 of the FreeBSD Developers Handbook. However, when I install this driver with kldload, the probe function doesnt seem to find my card. This puzzled me for a while, until I checked out dmesg: pci0: (vendor=0x15e2, dev=0x0500) at 9.0 chip2: port 0x7000-0x707f mem 0xe4022000-0xe40220ff,0xe4000000-0xe401ffff,0xe4020000-0xe402007f irq 10 at device 10.0 on pci0 pci0: at 11.0 irq 12 ed0: port 0x7400-0x741f irq 9 at device 12.0 on pci0 It seems that the kernel is finding my card (PCI to Other bridge) and installing some sort of driver for it at boot time. OK - so my questions are: 1) How do I access the PLX chip thru this built in "chip2" driver? 2) Do I need to write a kernel mode driver that somehow talks to the chip2 driver? 3) Or can I do it all from user mode? Thanks in advance for any suggestions, David To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message