[haiku-development] Re: S3 Video Driver

  • From: "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Thu, 06 Mar 2008 10:39:48 +0100 CET

Gerald Zajac <zajacg@xxxxxxxxxxxxx> wrote:
> Axel Dörfler wrote:
> > You would need to use the ISA bus module, and then add ioctl's to
> > your
> > driver that lets the accelerant use the {write|read}_io_{8|16|32}
> > functions much like SAVAGE_{GET|SET}_PCI.
> > In the accelerant, you could then have a handy function that hides
> > the
> > ioctl() from you again.
> I've noticed that both the pci_module_info and the isa_module_info
> struct's have {write|read}_io_{8|16|32} functions.  Do these
> functions
> have the same functionality with regard to accessing PIO ports or is
> using the ISA module preferred?  Currently the S3 driver uses the PCI
> module for accessing a few PIO ports to enable MMIO for the Virge
> chips
> and seems to work fine.

AFAIK BeOS PCI uses MMIO for I/O only. But since we're not doing this,
you can actually safely use PCI on Haiku. Might work on BeOS, too,
though.

Bye,
   Axel.


Other related posts: