From owner-freebsd-multimedia Thu May 25 6:25:39 2000 Delivered-To: freebsd-multimedia@freebsd.org Received: from cis.ohio-state.edu (mail.cis.ohio-state.edu [164.107.115.5]) by hub.freebsd.org (Postfix) with ESMTP id 9F9EF37C15B for ; Thu, 25 May 2000 06:25:35 -0700 (PDT) (envelope-from matey@cis.ohio-state.edu) Received: from eta.cis.ohio-state.edu (matey@eta.cis.ohio-state.edu [164.107.112.62]) by cis.ohio-state.edu (8.9.1/8.9.1) with ESMTP id JAA01535; Thu, 25 May 2000 09:25:34 -0400 (EDT) Received: (from matey@localhost) by eta.cis.ohio-state.edu (8.9.1/8.9.1) id JAA12679; Thu, 25 May 2000 09:25:34 -0400 (EDT) Date: Thu, 25 May 2000 09:25:29 -0400 From: Alexander Matey To: "Alexander N. Kabaev" Cc: "G.B.Naidu" , freebsd-multimedia@FreeBSD.ORG Subject: Re: Driver for Aureal Vortex* based soundcards is available Message-ID: <20000525092528.A537@cis.ohio-state.edu> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: ; from kabaev@mail.ru on Thu, May 25, 2000 at 08:15:16AM -0400 Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Thu, May 25, 2000 at 08:15:16AM -0400, Alexander N. Kabaev wrote: > As far as I know, nowhere. This user uses binary 'core' module released by > Aureal for Linux. By implementing various linux_ functions it was possible to > trick core into believing that it runs on Linux :) Exactly. And to my knowledge, Vortex hardware specs are not publicly available. > PS. Alexander, the use of pmap_ calls in linux_ioremap and linux_iounmap is not > stricly necessary, I believe. rman_get_virtual on memory mapped resource should > give you the same result as long as resource has been allocated with RF_ACTIVE > flag or bus_activate_resource has been called in order to activate it. I'd really like to get rid of the linked list in linux_ioremap(), linux_iounmap(). Unfortunately, I couldn't think of a better way of implementing these. Core wants device to virtual address space mappings for addresses beyond the initial address of SYS_RES_MEMORY resource, which is allocated in au_pci_attach(). So, I'm not able to use rman_get_virtual(). I could do it myself having addresses returned by rman_get_start() and rman_get_virtual() just by calculating the difference b/w former one and an address passed as a parameter to linux_ioremap() and then adding this difference to the address returned by rman_get_virtual(). But I'm not sure if this not too dirty. -- lx To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message