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 [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to