[haiku-development] [PATCH] [RFC] PCI device reservation for old style drivers

  • From: "François Revol" <revol@xxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sun, 30 Aug 2009 02:19:43 +0200 CEST

Hi there,
I managed to get a working version of the pci device reservation for 
the old pci bus manager to avoid races between native drivers and 
OSS...

http://revolf.free.fr/beos/patches/pci_reserve_try4.diff.txt

I'd bump the version on B_PCI_MODULE_NAME to 1.1 since R5 didn't have 
those calls (nor pci_find_capability actually), but it's not strictly 
needed.

Didn't try with OSS yet, but calling pci_reserve_device() from itself 
with other args fails as expected, so it should work.

As an example the support for es1370 is in the diff, it's quite minimal 
so it should be easy to add to other drivers and OSS, and have it ready 
for the alpha.

Comments ?

François.

Other related posts: