mbgtools-lx
4.2.8
|
#include <mbg_tgt.h>
#include <mbgtime.h>
#include <mbgsystm.h>
#include <mbgpccyc.h>
#include <pcpsdefs.h>
#include <gpsdefs.h>
#include <usbdefs.h>
#include <use_pack.h>
#include <string.h>
#include <unistd.h>
Go to the source code of this file.
Data Structures | |
struct | MBG_SYS_TIME_CYCLES |
System time plus associated cycles counter values. More... | |
struct | PCPS_DEV_TYPE |
Device type specification. More... | |
struct | PCPS_SHORT_PORT_RSRC |
An I/O port resource used by a device. More... | |
struct | PCPS_MAPPED_MEM |
A structure used to retrieve an address to be mapped into user space. More... | |
struct | PCPS_DEV_CFG |
Device information. More... | |
struct | PCPS_DEV |
Device info structure. More... | |
struct | PCPS_DRVR_INFO |
Device driver information. More... | |
struct | PCPS_TIME_CYCLES |
Time read from a device plus associated system cycles count. More... | |
struct | PCPS_TIME_STAMP_CYCLES |
High resolution time stamp plus associated system cycles count. More... | |
struct | PCPS_HR_TIME_CYCLES |
High resolution time plus associated system cycles count. More... | |
struct | MBG_TIME_INFO_HRT |
High resolution device time, system time, and associated cycles counts. More... | |
struct | MBG_TIME_INFO_TSTAMP |
High resolution device time stamp, system time, and associated cycles counts. More... | |
Typedefs | |
typedef uint8_t | MBG_DBG_DATA |
typedef uint16_t | MBG_DBG_PORT |
typedef char | PCPS_CLOCK_NAME[10] |
typedef uint16_t | PCPS_DEV_ID |
typedef uint16_t | PCPS_REF_TYPE |
typedef uint16_t | PCPS_BUS_FLAGS |
typedef uint16_t | PCPS_SHORT_PORT_ADDR |
Legacy I/O address type, see PCPS_SHORT_PORT_RSRC. More... | |
typedef uint32_t | PCPS_ERR_FLAGS |
see PCPS_ERR_FLAG_MASKS More... | |
typedef uint32_t | PCPS_FEATURES |
see PCPS_FEATURE_MASKS More... | |
typedef uint16_t | PCPS_BUS_NUM |
typedef uint16_t | PCPS_SLOT_NUM |
typedef uint16_t | PCPS_FW_REV_NUM |
firmware revision number, MSB major, LSB minor version More... | |
typedef uint32_t | PCPS_IRQ_STAT_INFO |
typedef char | MBG_DEV_NAME[10+(16+1)+1] |
A string buffer for a unique device ID. More... | |
Functions | |
static __mbg_inline void | setup_hr_time_cycles_from_timestamp_cycles (PCPS_HR_TIME_CYCLES *p_ht_c, const PCPS_TIME_STAMP_CYCLES *p_ts_c) |
#define _mbg_swab_mbg_sys_time_cycles | ( | _p | ) |
#define _mbg_swab_mbg_time_info_hrt | ( | _p | ) |
Definition at line 1425 of file pcpsdev.h.
Referenced by mbg_get_time_info_hrt().
#define _mbg_swab_mbg_time_info_tstamp | ( | _p | ) |
Definition at line 1452 of file pcpsdev.h.
Referenced by mbg_get_time_info_tstamp().
#define _mbg_swab_pcps_hr_time_cycles | ( | _p | ) |
Definition at line 1399 of file pcpsdev.h.
Referenced by mbg_get_hr_time_cycles().
#define _mbg_swab_pcps_time_stamp_cycles | ( | _p | ) |
Definition at line 1376 of file pcpsdev.h.
Referenced by mbgclock_default_get_fast_hr_timestamp_cycles().
#define _pcps_can_clr_ucap_buff | ( | _d | ) | _pcps_has_feature( (_d), PCPS_CAN_CLR_UCAP_BUFF ) |
#define _pcps_can_set_time | ( | _d | ) | _pcps_has_feature( (_d), PCPS_CAN_SET_TIME ) |
#define _pcps_cfg_short_port_base | ( | _c, | |
_n | |||
) | ( _pcps_cfg_short_port_rsrc( (_c), (_n) ).base ) |
#define _pcps_cfg_short_port_rsrc | ( | _c, | |
_n | |||
) | ( (_c)->port[_n] ) |
#define _pcps_cfg_timeout_clk | ( | _c | ) | ( (_c)->timeout_clk ) |
#define _pcps_chk_err_flags | ( | _d, | |
_msk | |||
) | ( _pcps_err_flags( _d ) & (_msk) ) |
#define _pcps_clr_err_flags | ( | _d, | |
_msk | |||
) | ( _pcps_err_flags( _d ) &= ~(_msk) ) |
#define _pcps_fw_has_20ms_bug | ( | _d | ) |
Definition at line 1300 of file pcpsdev.h.
Referenced by mbg_get_show_dev_info().
#define _pcps_fw_rev_num | ( | _d | ) | ( (_d)->cfg.fw_rev_num ) |
Definition at line 1117 of file pcpsdev.h.
Referenced by mbg_get_show_dev_info().
#define _pcps_fw_rev_num_major | ( | _v | ) | ( (_v) >> 8 ) |
Definition at line 1483 of file pcpsdev.h.
Referenced by mbg_get_show_dev_info(), mbg_str_dev_name(), and report_access_mode().
#define _pcps_fw_rev_num_minor | ( | _v | ) | ( (_v) & 0xFF ) |
Definition at line 1486 of file pcpsdev.h.
Referenced by mbg_get_show_dev_info(), mbg_str_dev_name(), and report_access_mode().
#define _pcps_has_asic_features | ( | _d | ) | _pcps_has_asic_version( _d ) |
#define _pcps_has_asic_version | ( | _d | ) |
Definition at line 1218 of file pcpsdev.h.
Referenced by mbg_get_show_dev_info().
#define _pcps_has_cab_len | ( | _d | ) | _pcps_has_feature( (_d), PCPS_HAS_CABLE_LEN ) |
Definition at line 1151 of file pcpsdev.h.
Referenced by check_cmd_line().
#define _pcps_has_corr_info | ( | _d | ) | _pcps_has_pzf( _d ) |
#define _pcps_has_debug_status | ( | _d | ) | _pcps_is_irig_rx( _d ) |
#define _pcps_has_event_time | ( | _d | ) | _pcps_has_feature( (_d), PCPS_HAS_EVENT_TIME ) |
Definition at line 1159 of file pcpsdev.h.
Referenced by check_cmd_line(), and usage().
#define _pcps_has_evt_log | ( | _d | ) | _pcps_has_feature( (_d), PCPS_HAS_EVT_LOG ) |
#define _pcps_has_fast_hr_timestamp | ( | _d | ) | _pcps_has_feature( (_d), PCPS_HAS_FAST_HR_TSTAMP ) |
Definition at line 1224 of file pcpsdev.h.
Referenced by show_time_and_status().
#define _pcps_has_feature | ( | _d, | |
_f | |||
) | ( ( (_d)->cfg.features & (_f) ) != 0 ) |
#define _pcps_has_generic_io | ( | _d | ) | _pcps_has_feature( (_d), PCPS_HAS_GENERIC_IO ) |
Definition at line 1212 of file pcpsdev.h.
Referenced by do_mbgtcrcal().
#define _pcps_has_gps_data | ( | _d | ) | ( _pcps_is_gps( _d ) || _pcps_has_gps_data_16( _d ) ) |
Definition at line 1207 of file pcpsdev.h.
Referenced by check_cmd_line(), and do_mbgstatus().
#define _pcps_has_gps_data_16 | ( | _d | ) | _pcps_has_feature( (_d), PCPS_HAS_GPS_DATA_16 ) |
#define _pcps_has_hr_time | ( | _d | ) | _pcps_has_feature( (_d), PCPS_HAS_HR_TIME ) |
Definition at line 1149 of file pcpsdev.h.
Referenced by do_mbgsvctasks(), do_mbgxhrtime(), and show_time_and_status().
#define _pcps_has_ident | ( | _d | ) | _pcps_has_feature( (_d), PCPS_HAS_IDENT ) |
#define _pcps_has_irig | ( | _d | ) | ( _pcps_is_irig_rx( _d ) || _pcps_has_irig_tx( _d ) ) |
Definition at line 1184 of file pcpsdev.h.
Referenced by do_mbgirigcfg().
#define _pcps_has_irig_ctrl_bits | ( | _d | ) | _pcps_has_feature( (_d), PCPS_HAS_IRIG_CTRL_BITS ) |
Definition at line 1187 of file pcpsdev.h.
Referenced by do_mbgstatus().
#define _pcps_has_irig_time | ( | _d | ) | _pcps_has_feature( (_d), PCPS_HAS_IRIG_TIME ) |
Definition at line 1190 of file pcpsdev.h.
Referenced by show_time_and_status().
#define _pcps_has_irig_tx | ( | _d | ) | _pcps_has_feature( (_d), PCPS_HAS_IRIG_TX ) |
Definition at line 1163 of file pcpsdev.h.
Referenced by chk_dev_tx(), and do_mbgirigcfg().
#define _pcps_has_lan_intf | ( | _d | ) | _pcps_has_feature( (_d), PCPS_HAS_LAN_INTF ) |
Definition at line 1226 of file pcpsdev.h.
Referenced by check_cmd_line().
#define _pcps_has_mod | ( | _d | ) | ( _pcps_is_dcf( _d ) || _pcps_is_msf( _d ) || _pcps_is_wwvb( _d ) ) |
#define _pcps_has_opt_flags | ( | _d | ) | _pcps_is_irig_rx( _d ) |
Definition at line 1202 of file pcpsdev.h.
Referenced by mbg_get_all_irig_rx_info(), and mbg_save_all_irig_rx_settings().
#define _pcps_has_pcps_tzdl | ( | _d | ) | _pcps_has_feature( (_d), PCPS_HAS_PCPS_TZDL ) |
#define _pcps_has_ptp | ( | _d | ) | _pcps_has_feature( (_d), PCPS_HAS_PTP ) |
Definition at line 1228 of file pcpsdev.h.
Referenced by check_cmd_line(), and do_mbgstatus().
#define _pcps_has_pzf | ( | _d | ) | _pcps_has_feature( (_d), PCPS_HAS_PZF ) |
Definition at line 1232 of file pcpsdev.h.
Referenced by show_signal(), and show_time_and_status().
#define _pcps_has_raw_irig_data | ( | _d | ) | _pcps_has_feature( (_d), PCPS_HAS_RAW_IRIG_DATA ) |
#define _pcps_has_receiver_info | ( | _d | ) | _pcps_has_feature( (_d), PCPS_HAS_RECEIVER_INFO ) |
Definition at line 1160 of file pcpsdev.h.
Referenced by mbg_get_serial_settings(), mbg_save_serial_settings(), and mbg_setup_receiver_info().
#define _pcps_has_ref_offs | ( | _d | ) | _pcps_is_irig_rx( _d ) |
Definition at line 1196 of file pcpsdev.h.
Referenced by mbg_get_all_irig_rx_info(), mbg_save_all_irig_rx_settings(), and show_signal().
#define _pcps_has_ri_feature | ( | _p_ri, | |
_f | |||
) | ( ( (_p_ri)->features & (_f) ) != 0 ) |
Check whether a special feature is supported according to RECEIVER_INFO.
#define _pcps_has_ri_gpio | ( | _p_ri | ) | _pcps_has_ri_feature( (_p_ri), GPS_HAS_GPIO ) |
#define _pcps_has_ri_ptp_unicast | ( | _p_ri | ) | _pcps_has_ri_feature( (_p_ri), GPS_HAS_PTP_UNICAST ) |
Definition at line 1230 of file pcpsdev.h.
Referenced by mbg_get_ptp_uc_master_cfg_limits().
#define _pcps_has_ri_xmr | ( | _p_ri | ) |
#define _pcps_has_serial | ( | _d | ) | _pcps_has_feature( (_d), PCPS_HAS_SERIAL ) |
Definition at line 1145 of file pcpsdev.h.
Referenced by mbg_get_serial_settings().
#define _pcps_has_serial_hs | ( | _d | ) |
Definition at line 1167 of file pcpsdev.h.
Referenced by mbg_get_serial_settings().
#define _pcps_has_sernum | ( | _d | ) | _pcps_has_feature( (_d), PCPS_HAS_SERNUM ) |
#define _pcps_has_signal | ( | _d | ) | ( _pcps_is_dcf( _d ) || _pcps_is_msf( _d ) || _pcps_is_wwvb( _d ) || _pcps_is_irig_rx( _d ) ) |
Definition at line 1178 of file pcpsdev.h.
Referenced by show_time_and_status().
#define _pcps_has_stat_info | ( | _d | ) | ( _pcps_is_gps( _d ) || _pcps_has_pzf( _d ) ) |
Definition at line 1242 of file pcpsdev.h.
Referenced by show_ext_stat_info().
#define _pcps_has_stat_info_mode | ( | _d | ) | _pcps_is_gps( _d ) |
Definition at line 1244 of file pcpsdev.h.
Referenced by show_ext_stat_info().
#define _pcps_has_stat_info_svs | ( | _d | ) | _pcps_is_gps( _d ) |
Definition at line 1246 of file pcpsdev.h.
Referenced by show_ext_stat_info().
#define _pcps_has_sync_time | ( | _d | ) | _pcps_has_feature( (_d), PCPS_HAS_SYNC_TIME ) |
#define _pcps_has_synth | ( | _d | ) | _pcps_has_feature( (_d), PCPS_HAS_SYNTH ) |
Definition at line 1210 of file pcpsdev.h.
Referenced by check_cmd_line(), and show_enable_flags().
#define _pcps_has_time_scale | ( | _d | ) | _pcps_has_feature( (_d), PCPS_HAS_TIME_SCALE ) |
Definition at line 1214 of file pcpsdev.h.
Referenced by check_cmd_line().
#define _pcps_has_tr_distance | ( | _d | ) | _pcps_has_pzf( _d ) |
#define _pcps_has_tz | ( | _d | ) |
#define _pcps_has_tzcode | ( | _d | ) | _pcps_has_feature( (_d), PCPS_HAS_TZCODE ) |
Definition at line 1154 of file pcpsdev.h.
Referenced by set_timezone().
#define _pcps_has_tzdl | ( | _d | ) | _pcps_has_feature( (_d), PCPS_HAS_TZDL ) |
Definition at line 1152 of file pcpsdev.h.
Referenced by check_cmd_line(), and set_timezone().
#define _pcps_has_ucap | ( | _d | ) | _pcps_has_feature( (_d), PCPS_HAS_UCAP ) |
Definition at line 1162 of file pcpsdev.h.
Referenced by do_mbggpscap().
#define _pcps_has_utc_offs | ( | _d | ) | _pcps_has_feature( (_d), PCPS_HAS_UTC_OFFS ) |
#define _pcps_has_utc_parm | ( | _d | ) | _pcps_has_feature( (_d), PCPS_HAS_UTC_PARM ) |
Definition at line 1216 of file pcpsdev.h.
Referenced by do_mbgstatus().
#define _pcps_incoming_tfom_ignored | ( | _d | ) |
#define _pcps_irq_num | ( | _d | ) | _pcps_cfg_irq_num( &(_d)->cfg ) |
Definition at line 1112 of file pcpsdev.h.
Referenced by mbg_get_show_dev_info().
#define _pcps_is_dcf | ( | _d | ) | ( _pcps_ref_type( _d ) == PCPS_REF_DCF ) |
#define _pcps_is_frc | ( | _d | ) | ( _pcps_ref_type( _d ) == PCPS_REF_FRC ) |
#define _pcps_is_gnss | ( | _d | ) | _pcps_has_feature( (_d), PCPS_IS_GNSS ) |
Definition at line 1081 of file pcpsdev.h.
Referenced by show_ext_stat_info().
#define _pcps_is_gps | ( | _d | ) | ( _pcps_ref_type( _d ) == PCPS_REF_GPS ) |
Definition at line 1074 of file pcpsdev.h.
Referenced by check_cmd_line(), do_mbggpscap(), do_mbgstatus(), mbg_get_serial_settings(), mbg_save_serial_settings(), mbg_setup_receiver_info(), set_date_time(), and show_time_and_status().
#define _pcps_is_irig_rx | ( | _d | ) | ( _pcps_ref_type( _d ) == PCPS_REF_IRIG ) |
Definition at line 1078 of file pcpsdev.h.
Referenced by chk_dev_rx(), do_mbgirigcfg(), do_mbgstatus(), do_mbgsvctasks(), do_mbgtcrcal(), mbg_get_all_irig_rx_info(), mbg_save_all_irig_rx_settings(), show_signal(), and show_time_and_status().
#define _pcps_is_isa | ( | _d | ) | ( _pcps_bus_flags( _d ) & PCPS_BUS_ISA ) |
#define _pcps_is_lwr | ( | _d | ) | ( _pcps_is_dcf( _d ) || _pcps_is_msf( _d ) || _pcps_is_wwvb( _d ) ) |
Definition at line 1083 of file pcpsdev.h.
Referenced by do_mbgsvctasks(), and show_time_and_status().
#define _pcps_is_mca | ( | _d | ) | ( _pcps_bus_flags( _d ) & PCPS_BUS_MCA ) |
#define _pcps_is_msf | ( | _d | ) | ( _pcps_ref_type( _d ) == PCPS_REF_MSF ) |
#define _pcps_is_pci | ( | _d | ) | ( _pcps_bus_flags( _d ) & PCPS_BUS_PCI ) |
#define _pcps_is_pci_amcc | ( | _d | ) | ( _pcps_is_pci_s5920( _d ) || _pcps_is_pci_s5933( _d ) ) |
#define _pcps_is_pci_asic | ( | _d | ) | ( _pcps_bus_flags( _d ) == PCPS_BUS_PCI_ASIC ) |
#define _pcps_is_pci_mbgpex | ( | _d | ) | ( _pcps_bus_flags( _d ) == PCPS_BUS_PCI_MBGPEX ) |
#define _pcps_is_pci_pex8311 | ( | _d | ) | ( _pcps_bus_flags( _d ) == PCPS_BUS_PCI_PEX8311 ) |
#define _pcps_is_pci_s5920 | ( | _d | ) | ( _pcps_bus_flags( _d ) == PCPS_BUS_PCI_S5920 ) |
#define _pcps_is_pci_s5933 | ( | _d | ) | ( _pcps_bus_flags( _d ) == PCPS_BUS_PCI_S5933 ) |
#define _pcps_is_ptp | ( | _d | ) | ( _pcps_ref_type( _d ) == PCPS_REF_PTP ) |
#define _pcps_is_usb | ( | _d | ) | ( _pcps_bus_flags( _d ) & PCPS_BUS_USB ) |
Definition at line 1089 of file pcpsdev.h.
Referenced by do_mbgsvctasks().
#define _pcps_is_usb_v2 | ( | _d | ) | ( _pcps_bus_flags( _d ) == PCPS_BUS_USB_V2 ) |
#define _pcps_is_wwvb | ( | _d | ) | ( _pcps_ref_type( _d ) == PCPS_REF_WWVB ) |
#define _pcps_pci_cfg_err | ( | _d | ) |
#define _pcps_pex_irq_is_safe | ( | _curr_fw_ver, | |
_req_fw_ver, | |||
_curr_asic_ver, | |||
_req_asic_ver_major, | |||
_req_asic_ver_minor | |||
) |
Definition at line 961 of file pcpsdev.h.
Referenced by pcps_check_pex_irq_unsafe().
#define _pcps_ref_offs_out_of_range | ( | _n | ) | ( ( (_n) > MBG_REF_OFFS_MAX ) || ( (_n) < -MBG_REF_OFFS_MAX ) ) |
Definition at line 1199 of file pcpsdev.h.
Referenced by show_time_and_status().
#define _pcps_ref_type | ( | _d | ) | ( (_d)->type.ref_type ) |
Definition at line 1070 of file pcpsdev.h.
Referenced by show_signal().
#define _pcps_sernum | ( | _d | ) | ( (_d)->cfg.sernum ) |
Definition at line 1120 of file pcpsdev.h.
Referenced by check_irq_unsafe(), lookup_dev_idx(), mbg_get_show_dev_info(), and snprint_dev_name().
#define _pcps_set_err_flags | ( | _d, | |
_msk | |||
) | ( _pcps_err_flags( _d ) |= (_msk) ) |
#define _pcps_short_port_base | ( | _d, | |
_n | |||
) | ( _pcps_short_port_rsrc( (_d), (_n) ).base ) |
Definition at line 1109 of file pcpsdev.h.
Referenced by mbg_get_show_dev_info(), and pcps_port_str().
#define _pcps_short_port_rsrc | ( | _d, | |
_n | |||
) | _pcps_cfg_short_port_rsrc( &(_d)->cfg, (_n) ) |
#define _pcps_time_is_read | ( | _t | ) | ( (uchar) (_t)->sec != 0xFF ) |
Definition at line 1344 of file pcpsdev.h.
Referenced by do_mbggpscap(), pcps_date_time_str(), print_pcps_time(), and show_time_and_status().
#define _pcps_time_set_unread | ( | _t | ) | do { (_t)->sec = 0xFF; } while ( 0 ) |
#define _pcps_timeout_clk | ( | _d | ) | _pcps_cfg_timeout_clk( &(_d)->cfg ) |
#define _pcps_type_name | ( | _d | ) | ( (_d)->type.name ) |
Definition at line 1068 of file pcpsdev.h.
Referenced by check_irq_unsafe(), do_mbgsvctasks(), lookup_dev_idx(), mbg_get_show_dev_info(), snprint_chk_time_info(), and snprint_dev_name().
#define _ri_addr | ( | _p | ) | &(_p)->xdev_features.receiver_info |
Definition at line 1138 of file pcpsdev.h.
Referenced by check_receiver_info_and_features(), check_ri_features(), dump_receiver_info(), mbg_get_ptp_uc_master_cfg_limits(), and setup_sernum_and_receiver_info().
#define _tlv_feat_buffp | ( | _p | ) | &(_p)->xdev_features.tlv_info.supp_tlv_feat |
Definition at line 1141 of file pcpsdev.h.
Referenced by check_receiver_info_and_features().
#define _tlv_info_addr | ( | _p | ) | &(_p)->xdev_features.tlv_info |
Definition at line 1140 of file pcpsdev.h.
Referenced by check_receiver_info_and_features(), and dump_tlv_info().
#define _xfeat_addr | ( | _p | ) | &(_p)->xdev_features.xfeature_buffer |
Definition at line 1139 of file pcpsdev.h.
Referenced by check_receiver_info_and_features(), and dump_xfeature_buffer().
#define MBG_DEV_NAME_FMT "%s_%s" |
A string format specifier for MBG_DEV_NAME.
Definition at line 1534 of file pcpsdev.h.
Referenced by check_receiver_info_and_features(), ioctl_switch(), mbgclock_irq_handler(), mbgclock_poll(), mbgclock_read(), mbgclock_release(), mbgclock_unlocked_ioctl(), mbgdrvr_disable_cyclic(), mbgdrvr_enable_cyclic(), mbgdrvr_get_pddev(), release_cyclic_lock(), set_dev_connected(), and snprint_dev_name().
#define N_PCPS_PORT_RSRC 2 |
The max. number of I/O port resources used by a clock.
Definition at line 555 of file pcpsdev.h.
Referenced by pcps_add_rsrc_io(), and pcps_probe_device().
#define PCPS_EF_INV_FW_ID 0x00000002 |
#define PCPS_EF_IO_CFG 0x00000008 |
#define PCPS_EF_IO_ENB 0x00000010 |
I/O interface not enabled.
Definition at line 628 of file pcpsdev.h.
Referenced by pcps_cleanup_device(), and pcps_probe_device().
#define PCPS_EF_IO_INIT 0x00000004 |
I/O interface not initialized.
Definition at line 626 of file pcpsdev.h.
Referenced by pcps_cleanup_device(), pcps_probe_device(), and report_ret_val().
#define PCPS_EF_IO_RSRC_IO 0x00000020 |
I/O resource not registered with resource manager.
Definition at line 629 of file pcpsdev.h.
Referenced by pcps_add_rsrc_io().
#define PCPS_EF_IO_RSRC_MEM 0x00000040 |
Memory resource not registered with resource manager.
Definition at line 630 of file pcpsdev.h.
Referenced by pcps_add_rsrc_mem().
#define PCPS_EF_TIMEOUT 0x00000001 |
Possible device initialization error flags.
Used with PCPS_DEV_CFG::err_flags
Definition at line 624 of file pcpsdev.h.
Referenced by pcps_probe_device().
#define PCPS_FEAT_DCF600USB ( PCPS_FEAT_USB5131 ) |
Definition at line 903 of file pcpsdev.h.
Referenced by pcps_probe_device().
#define PCPS_FEAT_FRC511PEX |
Definition at line 883 of file pcpsdev.h.
Referenced by pcps_probe_device().
#define PCPS_FEAT_GLN180PEX ( PCPS_FEAT_GPS180PEX | PCPS_IS_GNSS ) |
Definition at line 926 of file pcpsdev.h.
Referenced by pcps_probe_device().
#define PCPS_FEAT_GNS181PEX ( PCPS_FEAT_GLN180PEX ) |
Definition at line 930 of file pcpsdev.h.
Referenced by pcps_probe_device().
#define PCPS_FEAT_GPS167PC |
Definition at line 807 of file pcpsdev.h.
Referenced by pcps_probe_device().
#define PCPS_FEAT_GPS167PCI |
Definition at line 811 of file pcpsdev.h.
Referenced by pcps_probe_device().
#define PCPS_FEAT_GPS168PCI |
Definition at line 816 of file pcpsdev.h.
Referenced by pcps_probe_device().
#define PCPS_FEAT_GPS169PCI |
Definition at line 823 of file pcpsdev.h.
Referenced by pcps_probe_device().
#define PCPS_FEAT_GPS170PCI |
Definition at line 827 of file pcpsdev.h.
Referenced by pcps_probe_device().
#define PCPS_FEAT_GPS170PEX ( PCPS_FEAT_GPS170PCI ) |
Definition at line 853 of file pcpsdev.h.
Referenced by pcps_probe_device().
#define PCPS_FEAT_GPS180AMC ( PCPS_FEAT_GPS180PEX ) |
Definition at line 928 of file pcpsdev.h.
Referenced by pcps_probe_device().
#define PCPS_FEAT_GPS180PEX |
IRIG TX only supp. if GPS_HAS_IRIG_TX.
Definition at line 895 of file pcpsdev.h.
Referenced by pcps_probe_device().
#define PCPS_FEAT_LVL2 |
#define PCPS_FEAT_MSF51USB |
Definition at line 868 of file pcpsdev.h.
Referenced by pcps_probe_device().
#define PCPS_FEAT_MSF600USB ( PCPS_FEAT_MSF51USB ) |
Definition at line 922 of file pcpsdev.h.
Referenced by pcps_probe_device().
#define PCPS_FEAT_PC31PS31 0 |
Definition at line 786 of file pcpsdev.h.
Referenced by pcps_probe_device().
#define PCPS_FEAT_PC32 ( PCPS_FEAT_LVL2 ) |
Definition at line 795 of file pcpsdev.h.
Referenced by pcps_probe_device().
#define PCPS_FEAT_PCI32 ( PCPS_FEAT_LVL2 ) |
Definition at line 797 of file pcpsdev.h.
Referenced by pcps_probe_device().
#define PCPS_FEAT_PCI509 |
Definition at line 799 of file pcpsdev.h.
Referenced by pcps_probe_device().
#define PCPS_FEAT_PCI510 ( PCPS_FEAT_PCI509 ) |
Definition at line 803 of file pcpsdev.h.
Referenced by pcps_probe_device().
#define PCPS_FEAT_PCI511 ( PCPS_FEAT_PCI510 ) |
Definition at line 805 of file pcpsdev.h.
Referenced by pcps_probe_device().
#define PCPS_FEAT_PEX511 ( PCPS_FEAT_PCI511 ) |
Definition at line 849 of file pcpsdev.h.
Referenced by pcps_probe_device().
#define PCPS_FEAT_PTP270PEX |
Definition at line 874 of file pcpsdev.h.
Referenced by pcps_probe_device().
#define PCPS_FEAT_PZF180PEX |
Definition at line 905 of file pcpsdev.h.
Referenced by pcps_probe_device().
#define PCPS_FEAT_TCR167PCI |
Definition at line 835 of file pcpsdev.h.
Referenced by pcps_probe_device().
#define PCPS_FEAT_TCR170PEX ( PCPS_FEAT_TCR167PCI ) |
Definition at line 891 of file pcpsdev.h.
Referenced by pcps_probe_device().
#define PCPS_FEAT_TCR180PEX |
IRIG TX only supp. if GPS_HAS_IRIG_TX.
Definition at line 899 of file pcpsdev.h.
Referenced by pcps_probe_device().
#define PCPS_FEAT_TCR180USB |
IRIG TX only supp. if GPS_HAS_IRIG_TX.
Definition at line 932 of file pcpsdev.h.
Referenced by pcps_probe_device().
#define PCPS_FEAT_TCR510PCI |
Definition at line 832 of file pcpsdev.h.
Referenced by pcps_probe_device().
#define PCPS_FEAT_TCR511PCI |
Definition at line 846 of file pcpsdev.h.
Referenced by pcps_probe_device().
#define PCPS_FEAT_TCR511PEX ( PCPS_FEAT_TCR511PCI ) |
Definition at line 851 of file pcpsdev.h.
Referenced by pcps_probe_device().
#define PCPS_FEAT_TCR51USB |
Definition at line 862 of file pcpsdev.h.
Referenced by pcps_probe_device().
#define PCPS_FEAT_TCR600USB |
Definition at line 917 of file pcpsdev.h.
Referenced by pcps_probe_device().
#define PCPS_FEAT_USB5131 |
Definition at line 855 of file pcpsdev.h.
Referenced by pcps_probe_device().
#define PCPS_FEAT_WVB600USB ( PCPS_FEAT_WWVB51USB ) |
Definition at line 924 of file pcpsdev.h.
Referenced by pcps_probe_device().
#define PCPS_FEAT_WWVB51USB ( PCPS_FEAT_MSF51USB ) |
Definition at line 893 of file pcpsdev.h.
Referenced by pcps_probe_device().
#define PCPS_FW_STR_FMT "%X.%02X" |
Definition at line 1481 of file pcpsdev.h.
Referenced by mbg_get_show_dev_info(), mbg_str_dev_name(), and report_access_mode().
#define REV_CAN_CLR_UCAP_BUFF_GPS167PCI 0x0419 |
Definition at line 995 of file pcpsdev.h.
Referenced by pcps_probe_device().
#define REV_CAN_CLR_UCAP_BUFF_GPS168PCI 0x0101 |
Definition at line 996 of file pcpsdev.h.
Referenced by pcps_probe_device().
#define REV_CAN_SET_TIME_PC31PS31 0x0240 |
Definition at line 1028 of file pcpsdev.h.
Referenced by pcps_probe_device().
#define REV_HAS_CABLE_LEN_GPS167PC 0x0411 |
Definition at line 1001 of file pcpsdev.h.
Referenced by pcps_probe_device().
#define REV_HAS_CABLE_LEN_GPS167PCI 0x0411 |
Definition at line 1000 of file pcpsdev.h.
Referenced by pcps_probe_device().
#define REV_HAS_GPS_DATA_16_GPS169PCI 0x0202 |
Definition at line 985 of file pcpsdev.h.
Referenced by pcps_probe_device().
#define REV_HAS_HR_TIME_GPS167PC 0x0305 |
Definition at line 1004 of file pcpsdev.h.
Referenced by pcps_probe_device().
#define REV_HAS_HR_TIME_PCI511 0x0103 |
Definition at line 1007 of file pcpsdev.h.
Referenced by pcps_probe_device().
#define REV_HAS_HR_TIME_PEX511 0x0105 |
Definition at line 1006 of file pcpsdev.h.
Referenced by pcps_probe_device().
#define REV_HAS_HR_TIME_TCR510PCI 0x0200 |
Definition at line 1005 of file pcpsdev.h.
Referenced by pcps_probe_device().
#define REV_HAS_IRIG_CTRL_BITS_TCR511PCI 0x0107 |
Definition at line 979 of file pcpsdev.h.
Referenced by pcps_probe_device().
#define REV_HAS_IRIG_CTRL_BITS_TCR511PEX 0x0107 |
Definition at line 978 of file pcpsdev.h.
Referenced by pcps_probe_device().
#define REV_HAS_IRIG_CTRL_BITS_TCR51USB 0x0106 |
Definition at line 980 of file pcpsdev.h.
Referenced by pcps_probe_device().
#define REV_HAS_IRIG_TIME_TCR511PCI 0x0109 |
Definition at line 974 of file pcpsdev.h.
Referenced by pcps_probe_device().
#define REV_HAS_IRIG_TIME_TCR511PEX 0x0109 |
Definition at line 973 of file pcpsdev.h.
Referenced by pcps_probe_device().
#define REV_HAS_IRIG_TIME_TCR51USB 0x0106 |
Definition at line 975 of file pcpsdev.h.
Referenced by pcps_probe_device().
#define REV_HAS_IRQ_FIX_MINOR_GPS170PEX 0x0104 |
Definition at line 956 of file pcpsdev.h.
Referenced by pcps_probe_device().
#define REV_HAS_IRQ_FIX_MINOR_PEX511 0x0106 |
Definition at line 954 of file pcpsdev.h.
Referenced by pcps_probe_device().
#define REV_HAS_IRQ_FIX_MINOR_TCR511PEX 0x0105 |
Definition at line 955 of file pcpsdev.h.
Referenced by pcps_probe_device().
#define REV_HAS_RAW_IRIG_DATA_TCR511PCI 0x0111 |
Definition at line 969 of file pcpsdev.h.
Referenced by pcps_probe_device().
#define REV_HAS_RAW_IRIG_DATA_TCR511PEX 0x0111 |
Definition at line 968 of file pcpsdev.h.
Referenced by pcps_probe_device().
#define REV_HAS_RAW_IRIG_DATA_TCR51USB 0x0106 |
Definition at line 970 of file pcpsdev.h.
Referenced by pcps_probe_device().
#define REV_HAS_SERIAL_PC31PS31 0x0300 |
Definition at line 1016 of file pcpsdev.h.
Referenced by pcps_probe_device().
#define REV_HAS_SYNC_TIME_PC31PS31 0x0300 |
Definition at line 1013 of file pcpsdev.h.
Referenced by pcps_probe_device().
#define REV_HAS_UCAP_GPS167PCI 0x0421 |
Definition at line 991 of file pcpsdev.h.
Referenced by pcps_probe_device().
#define REV_HAS_UCAP_GPS168PCI 0x0104 |
Definition at line 992 of file pcpsdev.h.
Referenced by pcps_probe_device().
#define REV_HAS_UTC_OFFS_PC31PS31 0x0300 |
Definition at line 1010 of file pcpsdev.h.
Referenced by pcps_probe_device().
typedef uint8_t MBG_DBG_DATA |
typedef uint16_t MBG_DBG_PORT |
typedef char MBG_DEV_NAME[10+( 16+1)+1] |
A string buffer for a unique device ID.
The unique ID is made up of the device model name and its serial number, i.e. [model_name]_[serial_number] E.g.: "GPS170PCI_028210040670"
typedef uint16_t PCPS_BUS_FLAGS |
typedef uint16_t PCPS_BUS_NUM |
typedef uint16_t PCPS_DEV_ID |
typedef uint32_t PCPS_ERR_FLAGS |
typedef uint32_t PCPS_FEATURES |
typedef uint16_t PCPS_FW_REV_NUM |
typedef uint16_t PCPS_REF_TYPE |
typedef uint16_t PCPS_SHORT_PORT_ADDR |
Legacy I/O address type, see PCPS_SHORT_PORT_RSRC.
typedef uint16_t PCPS_SLOT_NUM |
enum DEV_FEAT_TYPES |
Codes used with IOCTL_DEV_FEAT_REQ::feat_type.
Enumerator | |
---|---|
DEV_FEAT_TYPE_BUILTIN | feat_num field contains one of the GPS_BUILTIN_FEATURE_BITS |
DEV_FEAT_TYPE_REF_TYPE | feat_num field contains one of the PCPS_REF_TYPES |
DEV_FEAT_TYPE_PCPS | feat_num field contains one of the PCPS_FEATURE_BITS |
DEV_FEAT_TYPE_RI | feat_num field contains one of the GPS_FEATURE_BITS |
DEV_FEAT_TYPE_XFEAT | feat_num field contains one of the MBG_XFEATURE_BITS |
DEV_FEAT_TYPE_TLV_FEAT | feat_num field contains one of the MBG_TLV_FEAT_TYPES |
N_DEV_FEAT_TYPES |
enum PCPS_TYPES |
A list of known devices.
|
static |
Definition at line 1500 of file pcpsdev.h.
References PCPS_TIME_STAMP_CYCLES::cycles, PCPS_HR_TIME_CYCLES::cycles, PCPS_HR_TIME_CYCLES::t, PCPS_HR_TIME::tstamp, and PCPS_TIME_STAMP_CYCLES::tstamp.
Referenced by get_htc_timestamps(), and mbg_chk_time_info().