12#ifndef __PPI_GEOLOCATION_COMMON_H
13#define __PPI_GEOLOCATION_COMMON_H
26#define PPI_GEOBASE_MIN_HEADER_LEN 8
27#define PPI_GEOBASE_VERSION_OFFSET 0
28#define PPI_GEOBASE_LENGTH_OFFSET 2
29#define PPI_GEOBASE_PRESENT_OFFSET 4
34#define BITNO_32(x) (((x) >> 16) ? 16 + BITNO_16((x) >> 16) : BITNO_16((x)))
35#define BITNO_16(x) (((x) >> 8) ? 8 + BITNO_8((x) >> 8) : BITNO_8((x)))
36#define BITNO_8(x) (((x) >> 4) ? 4 + BITNO_4((x) >> 4) : BITNO_4((x)))
37#define BITNO_4(x) (((x) >> 2) ? 2 + BITNO_2((x) >> 2) : BITNO_2((x)))
38#define BITNO_2(x) (((x) & 2) ? 1 : 0)
39#define BIT(n) (1 << n)
49double ppi_fixed3_7_to_double(uint32_t in);
50double ppi_fixed3_6_to_double(uint32_t in);
51double ppi_fixed6_4_to_double(uint32_t in);
56double ppi_ns_counter_to_double(uint32_t in);
60 PPI_GEOLOCATION_HARRIS = 0x00485253
61} ppi_geolocation_appstr_num;