Landfall

Annotated pkg/devices/idl/cpm.idl

255:fcc601d70467
8 months ago Paul Boddie Fixed transfer result value for asynchronous transfers. Reformatted comments. cpm-library-improvements
paul@128 1
#include <l4/devices/clocks.h>
paul@113 2
#include <l4/devices/protocols.h>
paul@113 3
#include <stdint.h>
paul@113 4
paul@113 5
/* A clock and power management interface, currently with Ingenic-specific SoC
paul@113 6
   details. */
paul@113 7
paul@113 8
[protocol(LANDFALL_CPM)]
paul@113 9
interface CPM
paul@113 10
{
paul@160 11
  void get_frequency(in enum Clock_identifiers clock, out uint32_t frequency);
paul@113 12
paul@160 13
  void set_frequency(in enum Clock_identifiers clock, in uint32_t frequency);
paul@113 14
paul@128 15
  void have_clock(in enum Clock_identifiers clock, out int enabled);
paul@113 16
paul@128 17
  void start_clock(in enum Clock_identifiers clock);
paul@113 18
paul@128 19
  void stop_clock(in enum Clock_identifiers clock);
paul@113 20
};