LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Driver function explanation (https://www.linuxquestions.org/questions/linux-software-2/driver-function-explanation-844082/)

mustansar 11-13-2010 01:23 PM

Driver function explanation
 
static const struct rt2x00_ops rt2800usb_ops = {
.name = KBUILD_MODNAME,
.max_sta_intf = 1,
.max_ap_intf = 8,
.eeprom_size = EEPROM_SIZE,
.rf_size = RF_SIZE,
.tx_queues = NUM_TX_QUEUES,
.rx = &rt2800usb_queue_rx,
.tx = &rt2800usb_queue_tx,
.bcn = &rt2800usb_queue_bcn,
.lib = &rt2800usb_rt2x00_ops,
.hw = &rt2800usb_mac80211_ops,
#ifdef CONFIG_RT2X00_LIB_DEBUGFS
.debugfs = &rt2800usb_rt2x00debug,
#endif /* CONFIG_RT2X00_LIB_DEBUGFS */
};

Kindly explain what does eeprom_size, rf_size,bcn etc all variables mean??

Thank yu

frankbell 11-13-2010 09:21 PM

Here's one.

http://www.cs.fsu.edu/~baker/devices...t?i=EEPROMSIZE

For the rest, Google is your friend.

neonsignal 11-14-2010 04:18 AM

These are all related to registers on the RT2800 802.11 wireless chipset.

The EEPROM_SIZE is the size of the onboard eeprom. The RF_SIZE is the size of the RF register set. 'bcn' is probably the wireless beacon controls.

To follow the code, you will benefit from looking at the datasheet for the chipset (which you might be able to get from Ralink, or perhaps from the rt2x00 driver developers assuming it isn't covered by non-disclosure agreements. There is a product overview online, but it doesn't have much more than a block diagram.


All times are GMT -5. The time now is 09:20 PM.