Find the clock source for a device
#include <drvr/hwinfo.h> long hwitag_find_clkfreq( unsigned hwi_off, unsigned *clk_idx);
libdrvr
Use the -l drvr option to qcc to link against this library.
You can use hwitag_find_clkfreq() to find one or more clock sources associated with the device at hwi_off in the hwinfo section of the system page.
Some devices contain clock sources vectors. You can retrieve the base frequency for all of them by using the clk_idx parameter as follows:
The clock source frequency in Hz, or -1 if the clock source wasn't found.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | No |
Thread | Yes |
hwi_find(), hwi_find_bus(), hwi_find_device(), hwi_find_devicebus(), hwi_find_num_units(), hwi_find_unit(), hwi_tag_find(), hwiattr_get(), hwiattr_get_*(), hwitag_find_busattr(), hwitag_find_errata(), hwitag_find_ivec(), hwitag_find_nicaddr(), hwitag_find_phyaddr()