[patchset b22 update] move core for !STATIC_MAP to extra module
Dominik Brodowski
linux at dominikbrodowski.de
Mon Nov 22 03:40:25 EST 2004
An updated version of the "b22" pcmcia patchset is available at
http://www.brodo.de/patches/2004-11-22/pcmcia-b22-move-nonstatic-map-code.tar.bz2
Changes to the previous version include:
- added 09-alloc-db-per-socket, 10-remove-typedef, 11-lock-in-release,
12-whitespace patches
- re-name to "rsrc_nonstatic"
- rediff
A "bigdiff" is available at
http://www.brodo.de/patches/2004-11-22/pcmcia-b22-complete
and individual patches as follows:
http://www.brodo.de/patches/2004-11-22/pcmcia-b22-move-nonstatic-map-code/01-per_socket_db
Make the io and mem db per-socket, as different sockets may have different
requirements or may not even need the resource db at all (SS_CAP_STATIC_MAP).
Updated to make rsrc_mem_probe per-socket and to remove unnecessary and even
broken check for empty list as per Russell King's suggestions.
http://www.brodo.de/patches/2004-11-22/pcmcia-b22-move-nonstatic-map-code/02-validate-mem
validate_mem() does only make sense for !SS_CAP_STATIC_MAP sockets. Therefore,
re-direct validate_mem() calls only for those. The newly added redirection
layer will allow for a "library" module named "rsrc_nostatic" which contains
the resource database handling code, and it will only need to be loaded for
the drivers which need it.
http://www.brodo.de/patches/2004-11-22/pcmcia-b22-move-nonstatic-map-code/03-adjust_io_region
Calls to adjust_io_region only happen if !SS_CAP_STATIC_MAP.
http://www.brodo.de/patches/2004-11-22/pcmcia-b22-move-nonstatic-map-code/04-find_io_region
Calls to find_io_region only happen if !SS_CAP_STATIC_MAP.
http://www.brodo.de/patches/2004-11-22/pcmcia-b22-move-nonstatic-map-code/05-find_mem_region
Calls to adjust_mem_region only happen if !SS_CAP_STATIC_MAP.
http://www.brodo.de/patches/2004-11-22/pcmcia-b22-move-nonstatic-map-code/06-adjust_and_release_resources
re-direct calls to adjust_resource_info for MEM and IO.
http://www.brodo.de/patches/2004-11-22/pcmcia-b22-move-nonstatic-map-code/07-move-to-rsrc_nostatic
Move all the "nonstatic" code to a new file, and link it into pcmcia_core.ko
http://www.brodo.de/patches/2004-11-22/pcmcia-b22-move-nonstatic-map-code/08-nonstatic-module
Make rsrc_nostatic an independent module.
http://www.brodo.de/patches/2004-11-22/pcmcia-b22-move-nonstatic-map-code/09-alloc-db-per-socket
Move the resource databases and the "mem_probe" flag into a struct
specific to rsrc_nostatic, as it is not needed for the SS_CAP_STATIC_MAP
case. Saves a few bytes, and makes code clearer (in my opinion)
http://www.brodo.de/patches/2004-11-22/pcmcia-b22-move-nonstatic-map-code/10-remove-typedef
Remove the typedef'ing of struct resource_map.
http://www.brodo.de/patches/2004-11-22/pcmcia-b22-move-nonstatic-map-code/11-lock-in-release
Also lock the ->exit() function in rsrc_nostatic
http://www.brodo.de/patches/2004-11-22/pcmcia-b22-move-nonstatic-map-code/12-whitespace
Remove unnecessary whitespace in rsrc_nonstatic
More information about the linux-pcmcia
mailing list