[Marvell8385-devel] [PATCH] divide usb83xx.ko into lib83xx.ko and usb83xx.ko

Holger Schurig hs4233 at mail.mn-solutions.de
Tue Feb 13 07:49:20 EST 2007


Okay, that was complete junk. I'm not familiar with git (which is 
used to create the patch), so it omitted the libertas.c 
completely.


My goal is to have a "library" module, e.g. lib8xxx.ko or 
libertas.ko and one "hardware" module for each hardware 
interface, e.g. "libertas_cf.ko" and "usb8xxx.ko" or whatever 
the names are (I don't care much).

That means that everything in libertas.ko must be 
hardware-indepenended. I intent to put wext.o, rx.o, tx.o, 
cmd.o, cmdresp.o, scan.o, join.o, 11d.o, ioctl.o, debugfs.o, 
ethtool.o, fw.o and assoc.o into libertas.ko.


But I saw libertas_sbi_* function calls in cmd.c, fw.c and tx.c:

  libertas_sbi_host_to_card
  libertas_sbi_prog_firmware

I guess I have to create two function pointers in _wlan_private 
and let the main_usb.c and main_cf. populate them.

This would the make somewhat more independent of USB/CF.



Maybe I go back to quilt, which I'm more familiar than with 
quilt. Also, to keep the patch smaller (<40 is the limit for 
libertas-dev mailinglist), I refrain from renaming main.c for 
now.



More information about the libertas-dev mailing list