Hi,

Well, here it is. I've not been able to run-test it yet, but it at least 
compiles and loads without problems. This is on x86_64 compiled against 
Linville's wireless-2.6 git tree. (I don't have any x86 boxes running Linux 
right now, but it should be alright).

I've added a struct acx_ops with function pointers and deleted the functions 
that just call the PCI/USB version depending on what we're using at the 
moment. A few functions I've just made empty to simplify and not having to 
check every time wether we do have it or not. These are only called on 
load/unload and error conditions. Normal operation shouldn't suffer any speed 
decrease it may be faster at times because we dereference a few pointers 
instead of calling a couple of functions (just guessing, though).

The patch is 38K uncompressed. I've compressed and attached it and uploaded to 
http://www.cmartin.tk/acx/acxsm-modularise.patch

   text    data     bss     dec     hex filename
  55491     588       4   56083    db13 acx-common.ko
  33523    1040       4   34567    8707 acx-pci.ko
  17109    1008       0   18117    46c5 acx-usb.ko

Comments are welcome and I'll split the patch if needed.

   cmn
-- 
Carlos Martín Nieto    |   http://www.cmartin.tk
Hobbyist programmer    |

Attachment: acxsm-modularise.patch.bz2
Description: BZip2 compressed data

Attachment: pgpSuFjZBhkg9.pgp
Description: PGP signature

Reply via email to