PCMCIA PATCHES: rsrc_mgr.c
rmk at arm.linux.org.uk
Sun Jun 15 17:50:11 BST 2003
I have three patches which I'm intending pushing to Linus tonight. They
Remove the racy check_mem_resource() function. Instead, claim
the region while we check it, passing a resource structure to
the core validation functions.
We must always allocate windows below 1MB when a socket driver indicates
that it does not have "page registers". Handle this case in rsrc_mgr.c
within find_mem_region rather than each use of find_mem_region().
Turn the resource management on its head. Rather than using PCMCIA's
resource database as the primary object to allocate resources, use
Linux's standard resource allocation instead.
When we have a socket on a PCI bus, we always use the PCI resource
allocation functions rather than the kernels core resource allocation,
so that we can take account of any bridges.
The first two should be mostly harmless. The third patch needs greater
testing. Unfortunately, the PCI groundwork for this patch was recently
reversed, so I just can't be bothered to separate out that change again
from the other PCI changes I have. You basically need to make the
function non-static, add a declaration to include/linux/pci.h and
Russell King (rmk at arm.linux.org.uk) The developer of ARM Linux
More information about the linux-pcmcia