diff options
| author | Ben Hutchings <bhutchings@solarflare.com> | 2011-04-01 17:52:34 -0400 |
|---|---|---|
| committer | Ben Hutchings <bhutchings@solarflare.com> | 2011-04-05 10:01:41 -0400 |
| commit | e20b5b61a36bd5b80eea064c0f2e73285dbe0d3b (patch) | |
| tree | 8d4142e23b390d452c36e03469c12e57a036b616 /include/linux | |
| parent | abfe903980161b11f3594e3dcbab8b5c5a67168b (diff) | |
ethtool: Convert struct ethtool_ops comment to kernel-doc format
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/ethtool.h | 80 |
1 files changed, 35 insertions, 45 deletions
diff --git a/include/linux/ethtool.h b/include/linux/ethtool.h index c8fcbdd2b0e7..ab12f84c17bd 100644 --- a/include/linux/ethtool.h +++ b/include/linux/ethtool.h | |||
| @@ -683,63 +683,53 @@ void ethtool_ntuple_flush(struct net_device *dev); | |||
| 683 | bool ethtool_invalid_flags(struct net_device *dev, u32 data, u32 supported); | 683 | bool ethtool_invalid_flags(struct net_device *dev, u32 data, u32 supported); |
| 684 | 684 | ||
| 685 | /** | 685 | /** |
| 686 | * ðtool_ops - Alter and report network device settings | 686 | * struct ethtool_ops - Alter and report network device settings |
| 687 | * get_settings: Get device-specific settings | 687 | * @get_settings: Get device-specific settings. |
| 688 | * set_settings: Set device-specific settings | ||
| 689 | * get_drvinfo: Report driver information | ||
| 690 | * get_regs: Get device registers | ||
| 691 | * get_wol: Report whether Wake-on-Lan is enabled | ||
| 692 | * set_wol: Turn Wake-on-Lan on or off | ||
| 693 | * get_msglevel: Report driver message level | ||
| 694 | * set_msglevel: Set driver message level | ||
| 695 | * nway_reset: Restart autonegotiation | ||
| 696 | * get_link: Get link status | ||
| 697 | * get_eeprom: Read data from the device EEPROM | ||
| 698 | * set_eeprom: Write data to the device EEPROM | ||
| 699 | * get_coalesce: Get interrupt coalescing parameters | ||
| 700 | * set_coalesce: Set interrupt coalescing parameters | ||
| 701 | * get_ringparam: Report ring sizes | ||
| 702 | * set_ringparam: Set ring sizes | ||
| 703 | * get_pauseparam: Report pause parameters | ||
| 704 | * set_pauseparam: Set pause parameters | ||
| 705 | * get_rx_csum: Report whether receive checksums are turned on or off | ||
| 706 | * set_rx_csum: Turn receive checksum on or off | ||
| 707 | * get_tx_csum: Report whether transmit checksums are turned on or off | ||
| 708 | * set_tx_csum: Turn transmit checksums on or off | ||
| 709 | * get_sg: Report whether scatter-gather is enabled | ||
| 710 | * set_sg: Turn scatter-gather on or off | ||
| 711 | * get_tso: Report whether TCP segmentation offload is enabled | ||
| 712 | * set_tso: Turn TCP segmentation offload on or off | ||
| 713 | * get_ufo: Report whether UDP fragmentation offload is enabled | ||
| 714 | * set_ufo: Turn UDP fragmentation offload on or off | ||
| 715 | * self_test: Run specified self-tests | ||
| 716 | * get_strings: Return a set of strings that describe the requested objects | ||
| 717 | * phys_id: Identify the device | ||
| 718 | * get_stats: Return statistics about the device | ||
| 719 | * get_flags: get 32-bit flags bitmap | ||
| 720 | * set_flags: set 32-bit flags bitmap | ||
| 721 | * | ||
| 722 | * Description: | ||
| 723 | * | ||
| 724 | * get_settings: | ||
| 725 | * @get_settings is passed an ðtool_cmd to fill in. It returns | 688 | * @get_settings is passed an ðtool_cmd to fill in. It returns |
| 726 | * an negative errno or zero. | 689 | * an negative errno or zero. |
| 727 | * | 690 | * @set_settings: Set device-specific settings. |
| 728 | * set_settings: | ||
| 729 | * @set_settings is passed an ðtool_cmd and should attempt to set | 691 | * @set_settings is passed an ðtool_cmd and should attempt to set |
| 730 | * all the settings this device supports. It may return an error value | 692 | * all the settings this device supports. It may return an error value |
| 731 | * if something goes wrong (otherwise 0). | 693 | * if something goes wrong (otherwise 0). |
| 732 | * | 694 | * @get_drvinfo: Report driver information |
| 733 | * get_eeprom: | 695 | * @get_regs: Get device registers |
| 696 | * @get_wol: Report whether Wake-on-Lan is enabled | ||
| 697 | * @set_wol: Turn Wake-on-Lan on or off | ||
| 698 | * @get_msglevel: Report driver message level | ||
| 699 | * @set_msglevel: Set driver message level | ||
| 700 | * @nway_reset: Restart autonegotiation | ||
| 701 | * @get_link: Get link status | ||
| 702 | * @get_eeprom: Read data from the device EEPROM. | ||
| 734 | * Should fill in the magic field. Don't need to check len for zero | 703 | * Should fill in the magic field. Don't need to check len for zero |
| 735 | * or wraparound. Fill in the data argument with the eeprom values | 704 | * or wraparound. Fill in the data argument with the eeprom values |
| 736 | * from offset to offset + len. Update len to the amount read. | 705 | * from offset to offset + len. Update len to the amount read. |
| 737 | * Returns an error or zero. | 706 | * Returns an error or zero. |
| 738 | * | 707 | * @set_eeprom: Write data to the device EEPROM. |
| 739 | * set_eeprom: | ||
| 740 | * Should validate the magic field. Don't need to check len for zero | 708 | * Should validate the magic field. Don't need to check len for zero |
| 741 | * or wraparound. Update len to the amount written. Returns an error | 709 | * or wraparound. Update len to the amount written. Returns an error |
| 742 | * or zero. | 710 | * or zero. |
| 711 | * @get_coalesce: Get interrupt coalescing parameters | ||
| 712 | * @set_coalesce: Set interrupt coalescing parameters | ||
| 713 | * @get_ringparam: Report ring sizes | ||
| 714 | * @set_ringparam: Set ring sizes | ||
| 715 | * @get_pauseparam: Report pause parameters | ||
| 716 | * @set_pauseparam: Set pause parameters | ||
| 717 | * @get_rx_csum: Report whether receive checksums are turned on or off | ||
| 718 | * @set_rx_csum: Turn receive checksum on or off | ||
| 719 | * @get_tx_csum: Report whether transmit checksums are turned on or off | ||
| 720 | * @set_tx_csum: Turn transmit checksums on or off | ||
| 721 | * @get_sg: Report whether scatter-gather is enabled | ||
| 722 | * @set_sg: Turn scatter-gather on or off | ||
| 723 | * @get_tso: Report whether TCP segmentation offload is enabled | ||
| 724 | * @set_tso: Turn TCP segmentation offload on or off | ||
| 725 | * @get_ufo: Report whether UDP fragmentation offload is enabled | ||
| 726 | * @set_ufo: Turn UDP fragmentation offload on or off | ||
| 727 | * @self_test: Run specified self-tests | ||
| 728 | * @get_strings: Return a set of strings that describe the requested objects | ||
| 729 | * @phys_id: Identify the device | ||
| 730 | * @get_stats: Return statistics about the device | ||
| 731 | * @get_flags: get 32-bit flags bitmap | ||
| 732 | * @set_flags: set 32-bit flags bitmap | ||
| 743 | */ | 733 | */ |
| 744 | struct ethtool_ops { | 734 | struct ethtool_ops { |
| 745 | int (*get_settings)(struct net_device *, struct ethtool_cmd *); | 735 | int (*get_settings)(struct net_device *, struct ethtool_cmd *); |
