From owner-freebsd-questions Fri Dec 8 9:50:42 2000 From owner-freebsd-questions@FreeBSD.ORG Fri Dec 8 09:50:40 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from whistle.com (s205m131.whistle.com [207.76.205.131]) by hub.freebsd.org (Postfix) with ESMTP id 56B9B37B6A6 for ; Fri, 8 Dec 2000 09:50:39 -0800 (PST) Received: (from smap@localhost) by whistle.com (8.10.0/8.10.0) id eB8HoZ718030 for ; Fri, 8 Dec 2000 09:50:35 -0800 (PST) Received: from checkmate.whistle.com( 207.76.205.73) by whistle.com via smap (V2.0) id xma018028; Fri, 8 Dec 2000 09:50:23 -0800 Received: from whistle.com (localhost [127.0.0.1]) by checkmate.whistle.com (8.11.0/8.11.0) with ESMTP id eB8HoNv24397 for ; Fri, 8 Dec 2000 09:50:23 -0800 (PST) (envelope-from dspartz@whistle.com) Sender: dspartz@whistle.com Message-ID: <3A311F5F.79CC1FEC@whistle.com> Date: Fri, 08 Dec 2000 09:50:23 -0800 From: Daryl Spartz X-Mailer: Mozilla 4.75 [en] (X11; U; FreeBSD 4.1.1-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-questions@FreeBSD.ORG Subject: Exported kernel interfaces Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I'm somewhat new to FreeBSD and could use some guidance. I'm working on a winmodem port to FreeBSD from Linux. I have questions such as: 1) Are there exported kernel interfaces so that I can make the code a KLD; that is, when the module is loaded (kldload), the PCI probe code is not automatically execute (as the ISA probe is). So is there a find_pci_xxx like interfaces in FreeBSD. Is there a list of such routines somewhere. (Linux has a means of finding these). When the module is built into the kernel, the PCI probe does occur. 2) Are there kernel interfaces that a KLD can use to activate sounds. Again, is there a list of interfaces available. 3) Can a KLD open and read files, if so, what are the interfaces 4) How does one request pinned (aka wired), non-pageable, memory? 5) I thought newbus eliminated, somehow, the need of splx and it's couterparts. What is the preferred method for handling interrupts? 6) Is there a real good example of code to look at. Drivers I have looked at seem to be hybrids of old versus strictly newbus. A fully newbus-ified driver would be great. Any references to important doc would be greatly appreciated. -- Daryl Spartz Whistle Communications dspartz@whistle.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message