ch08s10.html 8.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Kernel Functions</title><meta name="generator" content="DocBook XSL Stylesheets V1.76.1"><meta name="keywords" content="Intellon, Atheros, Qualcomm, HomePlug, powerline, communications, INT6000, INT6300, INT6400, AR7400, AR7420"><link rel="home" href="index.html" title="Qualcomm Atheros Open Powerline Toolkit"><link rel="up" href="ch08.html" title="Chapter 8.  Serial Drivers"><link rel="prev" href="ch08s09.html" title="Support Functions"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">
  2. Kernel Functions
  3. </th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch08s09.html">Prev</a> </td><th width="60%" align="center">Chapter 8. 
  4. Serial Drivers
  5. </th><td width="20%" align="right"> </td></tr></table><hr></div><div class="section" title="Kernel Functions"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="qcaspi"></a>
  6. Kernel Functions
  7. </h2></div></div></div><div class="section" title="qcaspi_netdev_xmit"><div class="titlepage"><div><div><h3 class="title"><a name="qcaspi_netdev_xmit"></a>
  8. qcaspi_netdev_xmit
  9. </h3></div></div></div><div class="funcsynopsis"><table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0" class="funcprototype-table"><tr><td><code class="funcdef">int <b class="fsfunc">qcaspi_netdev_xmit</b>(</code></td><td><var class="pdparam">skb</var>, </td><td> </td></tr><tr><td> </td><td><var class="pdparam">device</var><code>)</code>;</td><td> </td></tr></table><div class="paramdef-list"><code>struct sk_buff * <var class="pdparam">skb</var></code>;<br><code>struct net_device * <var class="pdparam">device</var></code>;</div><div class="funcprototype-spacer"> </div></div><p>
  10. Called by the Linux kernel append outgoing frames to the transmit queue.
  11. </p></div><div class="section" title="qcaspi_netdev_tx_timeout"><div class="titlepage"><div><div><h3 class="title"><a name="qcaspi_netdev_tx_timeout"></a>
  12. qcaspi_netdev_tx_timeout
  13. </h3></div></div></div><div class="funcsynopsis"><table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0" class="funcprototype-table"><tr><td><code class="funcdef">void <b class="fsfunc">qcaspi_netdev_tx_timeout</b>(</code></td><td><var class="pdparam">device</var><code>)</code>;</td><td> </td></tr></table><div class="paramdef-list"><code>struct net_device * <var class="pdparam">device</var></code>;</div><div class="funcprototype-spacer"> </div></div><p>
  14. Called by the Linux kernel after the transmit queue has been stopped for an extended period of time.
  15. </p></div><div class="section" title="qcaspi_netdev_uninit"><div class="titlepage"><div><div><h3 class="title"><a name="qcaspi_netdev_uninit"></a>
  16. qcaspi_netdev_uninit
  17. </h3></div></div></div><div class="funcsynopsis"><table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0" class="funcprototype-table"><tr><td><code class="funcdef">static void <b class="fsfunc">qcaspi_netdev_uninit</b>(</code></td><td><var class="pdparam">device</var><code>)</code>;</td><td> </td></tr></table><div class="paramdef-list"><code>struct net_device * <var class="pdparam">device</var></code>;</div><div class="funcprototype-spacer"> </div></div><p>
  18. Called when function <code class="function">unregister_netdev</code> is called. For the QCA7000 driver, function <code class="function">qcaspi_mod_exit</code> calls function <code class="function">unregister_netdev</code>.
  19. </p></div><div class="section" title="qcaspi_netdev_get_stats"><div class="titlepage"><div><div><h3 class="title"><a name="qcaspi_netdev_get_stats"></a>
  20. qcaspi_netdev_get_stats
  21. </h3></div></div></div><div class="funcsynopsis"><table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0" class="funcprototype-table"><tr><td><code class="funcdef">struct net_device_stats * <b class="fsfunc">qcaspi_netdev_get_stats</b>(</code></td><td><var class="pdparam">device</var><code>)</code>;</td><td> </td></tr></table><div class="paramdef-list"><code>struct net_device * <var class="pdparam">device</var></code>;</div><div class="funcprototype-spacer"> </div></div><p>
  22. Returns transmit, receive and error statistics associated with the net device. These are the statistics displayed by <span class="application">ifconfig</span>.
  23. </p></div><div class="section" title="qcaspi_netdev_change_mtu"><div class="titlepage"><div><div><h3 class="title"><a name="qcaspi_netdev_change_mtu"></a>
  24. qcaspi_netdev_change_mtu
  25. </h3></div></div></div><div class="funcsynopsis"><table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0" class="funcprototype-table"><tr><td><code class="funcdef">int <b class="fsfunc">qcaspi_netdev_change_mtu</b>(</code></td><td><var class="pdparam">device</var>, </td><td> </td></tr><tr><td> </td><td><var class="pdparam">new_mtu</var><code>)</code>;</td><td> </td></tr></table><div class="paramdef-list"><code>struct net_device * <var class="pdparam">device</var></code>;<br><code>int <var class="pdparam">new_mtu</var></code>;</div><div class="funcprototype-spacer"> </div></div><p>
  26. Changes the serial interface MTU size.
  27. </p></div><div class="section" title="qcaspi_netdev_set_mac_address"><div class="titlepage"><div><div><h3 class="title"><a name="qcaspi_netdev_set_mac_address"></a>
  28. qcaspi_netdev_set_mac_address
  29. </h3></div></div></div><div class="funcsynopsis"><table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0" class="funcprototype-table"><tr><td><code class="funcdef">static int <b class="fsfunc">qcaspi_netdev_set_mac_address</b>(</code></td><td><var class="pdparam">device</var>, </td><td> </td></tr><tr><td> </td><td><var class="pdparam">memory</var><code>)</code>;</td><td> </td></tr></table><div class="paramdef-list"><code>struct net_device * <var class="pdparam">device</var></code>;<br><code>void * <var class="pdparam">memory</var></code>;</div><div class="funcprototype-spacer"> </div></div><p>
  30. Sets the serial interface MAC address. Called by <span class="application">ifconfig</span> whenever user types <span class="command"><strong>ifconfig qca0 hw ether xx:xx:xx:xx:xx:xx</strong></span>.
  31. </p></div><div class="section" title="qcaspi_netdev_close"><div class="titlepage"><div><div><h3 class="title"><a name="qcaspi_netdev_close"></a>
  32. qcaspi_netdev_close
  33. </h3></div></div></div><div class="funcsynopsis"><table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0" class="funcprototype-table"><tr><td><code class="funcdef">int <b class="fsfunc">qcaspi_netdev_close</b>(</code></td><td><var class="pdparam">device</var><code>)</code>;</td><td> </td></tr></table><div class="paramdef-list"><code>struct net_device * <var class="pdparam">device</var></code>;</div><div class="funcprototype-spacer"> </div></div><p>
  34. Called by <span class="application">ifconfig</span> to disable the network interface.
  35. </p></div><div class="section" title="qcaspi_mod_exit"><div class="titlepage"><div><div><h3 class="title"><a name="qcaspi_mod_exit"></a>
  36. qcaspi_mod_exit
  37. </h3></div></div></div><div class="funcsynopsis"><table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0" class="funcprototype-table"><tr><td><code class="funcdef">static void <b class="fsfunc">qcaspi_mod_exit</b>(</code></td><td><var class="pdparam">void</var><code>)</code>;</td><td> </td></tr></table><div class="paramdef-list"><code><var class="pdparam">void</var></code>;</div><div class="funcprototype-spacer"> </div></div><p>
  38. Called by the kernel to shutdown the driver module.
  39. </p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch08s09.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch08.html">Up</a></td><td width="40%" align="right"> </td></tr><tr><td width="40%" align="left" valign="top">
  40. Support Functions
  41.  </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> </td></tr></table></div></body></html>