Subject: kern/32467: pci configure should map expansion roms without enabling them
To: None <email@example.com, firstname.lastname@example.org,>
From: None <email@example.com>
Date: 01/06/2006 18:30:00
>Synopsis: pci configure should map expansion roms without enabling them
>Arrival-Date: Fri Jan 06 18:30:00 +0000 2006
>Originator: Garrett D'Amore
Tadpole Computer, Inc.
any machine which uses PCI_NETBSD_CONFIGURE has this problem
The core problem is that the PCI_NETBSD_CONFIGURE is too limited, and does not assign address space for expansion ROMs by default. This makes it impossible to write a driver which uses its own expansion ROM in a portable way.
The text of the discussion on tech-kern about this was started with
A lot of discussion ensued on the list, but the upshot is that we want to have a PCI_CONF_ENABLE_ROM that enables/disables the setting of the enable bit in the PCI expansion rom register. Then we would have PCI_CONF_DEFAULT which does include the PCI_CONF_MAP_ROM, but not the PCI_CONF_ENABLE_ROM.
The various pci machdep layers that use PCI_CONF_ALL & ~PCI_CONF_MAP_ROM should be changed to use the PCI_CONF_DEFAULT.
I will post a URL to diffs shortly.