PCI (ATA) lazy resource allocation patch

Simon 'corecode' Schubert corecode at fs.ei.tum.de
Mon Dec 4 11:23:20 PST 2006


Thomas E. Spanjaard wrote:
The attached patch adds a new option to the PCI code (options 
PCI_MAP_FIXUP) which enables code that does lazy allocation for 
memory/ioport resources in pci_alloc_resource(), and adds and allocates 
certain resources for PCI ATA controllers in legacy mode in 
pci_add_resources(). These resources are missing from the BARs, and as 
it's part of the PCI spec as special case [1], it should go here. The 
code comes from FreeBSD, who reasoned the same [2].
I think the lazy allocation is nice, but the ata part, I still don't like.  Yet, I agree we should have it better hackish than not at all.  Cleanup can come later...

cheers
 simon
--
Serve - BSD     +++  RENT this banner advert  +++    ASCII Ribbon   /"\
Work - Mac      +++  space for low €€€ NOW!1  +++      Campaign     \ /
Party Enjoy Relax   |   http://dragonflybsd.org      Against  HTML   \
Dude 2c 2 the max   !   http://golden-apple.biz       Mail + News   / \
Attachment:
signature.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pgp00003.pgp
Type: application/octet-stream
Size: 252 bytes
Desc: "Description: OpenPGP digital signature"
URL: <http://lists.dragonflybsd.org/pipermail/kernel/attachments/20061204/36c33dae/attachment-0020.obj>


More information about the Kernel mailing list