mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-05-03 06:47:04 -04:00
milan-avb: gptp: query CURRENT_DATA_SET for canonical is_grandmaster check
This commit is contained in:
parent
c877ea4243
commit
55bb0b6a6a
2 changed files with 64 additions and 5 deletions
|
|
@ -25,6 +25,7 @@ extern "C" {
|
|||
#define PTP_MGMT_ACTION_RESPONSE 2
|
||||
#define PTP_TLV_TYPE_MGMT 0x0001
|
||||
#define PTP_MGMT_ID_DEFAULT_DATA_SET 0x2000
|
||||
#define PTP_MGMT_ID_CURRENT_DATA_SET 0x2001
|
||||
#define PTP_MGMT_ID_PARENT_DATA_SET 0x2002
|
||||
#define PTP_MGMT_ID_PORT_DATA_SET 0x2004
|
||||
|
||||
|
|
@ -91,6 +92,13 @@ struct ptp_default_data_set {
|
|||
uint8_t reserved2;
|
||||
} __attribute__((packed));
|
||||
|
||||
/* IEEE 1588-2008 Section 15.5.1.2 currentDS */
|
||||
struct ptp_current_data_set {
|
||||
uint16_t steps_removed_be;
|
||||
int64_t offset_from_master_be;
|
||||
int64_t mean_path_delay_be;
|
||||
} __attribute__((packed));
|
||||
|
||||
/* IEEE 1588-2008 Section 15.5.1.4 portDS */
|
||||
struct ptp_port_data_set {
|
||||
uint8_t port_clock_identity[8];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue