From owner-freebsd-hackers Sat Feb 3 16:43:14 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from chimaira.fileforce.de (dialer124.kel.de.core.tng.de [213.178.65.124]) by hub.freebsd.org (Postfix) with ESMTP id C8CFA37B4EC for ; Sat, 3 Feb 2001 16:42:56 -0800 (PST) Received: from localhost (spectrum@localhost) by chimaira.fileforce.de (8.11.1/8.11.1) with ESMTP id f140hNh02113 for ; Sun, 4 Feb 2001 01:43:24 +0100 (CET) (envelope-from fleischmann@ki.tng.de) X-Authentication-Warning: chimaira.fileforce.de: spectrum owned process doing -bs Date: Sun, 4 Feb 2001 01:43:23 +0100 (CET) From: Oliver Fleischmann X-Sender: spectrum@chimaira.fileforce.de To: freebsd-hackers@freebsd.org Subject: Setting bus resources from a module Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, I have some problems understanding how resources like the I/O Port or IRQ are set from a loadable kernel module. I tried to construct a module to access the generic joystick port on the isa bus. But i don't understand how the resources are set for the port. Is it right to do a BUS_ADD_CHILD call in the identify method and then call the bus_set_resource function to set the I/O port ? If it is so, where can i find the definition for BUS_ADD_CHILD ? I don't know what this function exactly does. Perhaps there are other ways to solve my problem. I hope you can help me. Thanks in advance, Oliver Fleischmann To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message