From owner-freebsd-current@FreeBSD.ORG Sun Apr 6 23:45:41 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 344DB37B401 for ; Sun, 6 Apr 2003 23:45:41 -0700 (PDT) Received: from hak.cnd.mcgill.ca (hak.cnd.mcgill.ca [132.216.11.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id 759FC43FAF for ; Sun, 6 Apr 2003 23:45:40 -0700 (PDT) (envelope-from mat@hak.cnd.mcgill.ca) Received: from hak.cnd.mcgill.ca (localhost.cnd.mcgill.ca [127.0.0.1]) by hak.cnd.mcgill.ca (8.12.3p2/8.12.3) with ESMTP id h376lnqC043942; Mon, 7 Apr 2003 02:47:49 -0400 (EDT) (envelope-from mat@hak.cnd.mcgill.ca) Received: (from mat@localhost) by hak.cnd.mcgill.ca (8.12.3p2/8.12.3/Submit) id h376lnYt043941; Mon, 7 Apr 2003 02:47:49 -0400 (EDT) Date: Mon, 7 Apr 2003 02:47:49 -0400 From: Mathew Kanner To: "M. Warner Losh" Message-ID: <20030407064749.GO17533@cnd.mcgill.ca> References: <20030404182557.GK17533@cnd.mcgill.ca> <20030406164134.GN17533@cnd.mcgill.ca> <20030407.000118.68039554.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030407.000118.68039554.imp@bsdimp.com> Organization: I speak for myself, operating in Montreal, CANADA User-Agent: Mutt/1.5.3i cc: freebsd-current@freebsd.org Subject: Re: midi problem, an isa device on a pci card X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Apr 2003 06:45:41 -0000 Hello Warner, Thanks for your comments, it helps keep me interested as this is only a for fun hacking project. On Apr 07, M. Warner Losh wrote: > You can't create ISA devices that are parented to the pci bus. You > just can't. I don't understand your comment, isn't the newly created devices parent the (first) ISA bus? I scan for the isa class, get device instances and create from there. > You have to make them be full pci devices. > Hweover, this > is relatively easy to do. You hacks will just not work. But it's an ISA device on on a pci card. I don't know this for sure but the soundcard docs talk about special hardware to appear as a legacy device, also, all pci devices on my machine have 4 byte port ranges while this and other ISA devices have 3. I can send and receive on the MPU, albeit, sending is screwy either too fast or too slow, (too slow by itself, too fast when I force feed interrupts with timeout(), sigh, I wonder if send interrupts are broken for mpus in general). kldload and unload both the pci(soundcard) and the isa(mpu) drivers seem to work well. --Mat -- The Brain: We're going to a place where the sun never sets, the size of your wallet matters, and actors and actresses slave all day! Pinky: We're going to Denny's?