Date: Thu, 15 Mar 2001 18:59:02 +0000 From: Orion Hodson <oh@btinternet.com> To: freebsd-hackers@freebsd.org Subject: bus_space_alloc (formerly bus_space_foo) Message-ID: <200103151859.f2FIx2i03080@adelie.btinternet.com>
next in thread | raw e-mail | index | archive | help
Hi I've been writing a driver for the S3 Sonicvibes audio card. The card is PCI, but has 7 io ports. The PCI initialization stops after 5 ports have been mapped out (constants are hardcoded in sys/pci so reasonable to assume this fits with PCI spec). The netbsd version of this driver uses bus_space_alloc to deal with the other two ports, but that function never made it from NetBSD to FreeBSD. Is there a workaround or equivalent? Or a driver that deals with the same problem? [ What the code does just now is examine the initial 5 io port allocations and then pick 2 non-overlapping port spaces between them for the unallocated ports. This is gross, but works for the time being (likely not future proof, but assumptions could be hardcoded to prevent driver loading if not met). A snapshot of the driver is at http://www.cs.ucl.ac.uk/staff/O.Hodson/misc/s3vibes.c - playback works, recording maybe, XXX marks the spot of resource fun. Feedback appreciated. ] Kind Regards - Orion. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200103151859.f2FIx2i03080>