1. 26 4月, 2019 2 次提交
    • W
      counter: Documentation: Add Generic Counter sysfs documentation · ea2b23b8
      William Breathitt Gray 提交于
      This patch adds standard documentation for the userspace sysfs
      attributes of the Generic Counter interface.
      Reviewed-by: NJonathan Cameron <Jonathan.Cameron@huawei.com>
      Signed-off-by: NWilliam Breathitt Gray <vilhelm.gray@gmail.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      ea2b23b8
    • W
      counter: Introduce the Generic Counter interface · 0040a390
      William Breathitt Gray 提交于
      This patch introduces the Generic Counter interface for supporting
      counter devices.
      
      In the context of the Generic Counter interface, a counter is defined as
      a device that reports one or more "counts" based on the state changes of
      one or more "signals" as evaluated by a defined "count function."
      
      Driver callbacks should be provided to communicate with the device: to
      read and write various Signals and Counts, and to set and get the
      "action mode" and "count function" for various Synapses and Counts
      respectively.
      
      To support a counter device, a driver must first allocate the available
      Counter Signals via counter_signal structures. These Signals should
      be stored as an array and set to the signals array member of an
      allocated counter_device structure before the Counter is registered to
      the system.
      
      Counter Counts may be allocated via counter_count structures, and
      respective Counter Signal associations (Synapses) made via
      counter_synapse structures. Associated counter_synapse structures are
      stored as an array and set to the the synapses array member of the
      respective counter_count structure. These counter_count structures are
      set to the counts array member of an allocated counter_device structure
      before the Counter is registered to the system.
      
      A counter device is registered to the system by passing the respective
      initialized counter_device structure to the counter_register function;
      similarly, the counter_unregister function unregisters the respective
      Counter. The devm_counter_register and devm_counter_unregister functions
      serve as device memory-managed versions of the counter_register and
      counter_unregister functions respectively.
      Reviewed-by: NJonathan Cameron <Jonathan.Cameron@huawei.com>
      Signed-off-by: NWilliam Breathitt Gray <vilhelm.gray@gmail.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      0040a390
  2. 22 4月, 2019 1 次提交
  3. 16 4月, 2019 1 次提交
  4. 10 4月, 2019 1 次提交
  5. 09 4月, 2019 1 次提交
  6. 08 4月, 2019 1 次提交
  7. 06 4月, 2019 2 次提交
  8. 05 4月, 2019 3 次提交
  9. 03 4月, 2019 1 次提交
  10. 02 4月, 2019 1 次提交
  11. 28 3月, 2019 2 次提交
  12. 26 3月, 2019 1 次提交
  13. 19 3月, 2019 1 次提交
  14. 16 3月, 2019 1 次提交
  15. 14 3月, 2019 1 次提交
  16. 10 3月, 2019 1 次提交
  17. 08 3月, 2019 2 次提交
  18. 07 3月, 2019 1 次提交
  19. 06 3月, 2019 1 次提交
  20. 28 2月, 2019 2 次提交
  21. 26 2月, 2019 1 次提交
  22. 25 2月, 2019 2 次提交
  23. 23 2月, 2019 5 次提交
  24. 22 2月, 2019 2 次提交
  25. 21 2月, 2019 1 次提交
  26. 20 2月, 2019 2 次提交