/* SPDX-License-Identifier: GPL-2.0 */ /* dp83640_reg.h * Generated by regen.tcl on Thu Feb 17 10:02:48 AM CET 2011
*/ #ifndef HAVE_DP83640_REGISTERS #define HAVE_DP83640_REGISTERS
/* Bit definitions for the PTP_RATEH register */ #define PTP_RATE_DIR (1<<15) /* PTP Rate Direction */ #define PTP_TMP_RATE (1<<14) /* PTP Temporary Rate */ #define PTP_RATE_HI_SHIFT (0) /* PTP Rate High 10-bits */ #define PTP_RATE_HI_MASK (0x3ff)
/* Bit definitions for the PTP_ESTS register */ #define EVNTS_MISSED_SHIFT (8) /* Indicates number of events missed */ #define EVNTS_MISSED_MASK (0x7) #define EVNT_TS_LEN_SHIFT (6) /* Indicates length of the Timestamp field in 16-bit words minus 1 */ #define EVNT_TS_LEN_MASK (0x3) #define EVNT_RF (1<<5) /* Indicates whether the event is a rise or falling event */ #define EVNT_NUM_SHIFT (2) /* Indicates Event Timestamp Unit which detected an event */ #define EVNT_NUM_MASK (0x7) #define MULT_EVNT (1<<1) /* Indicates multiple events were detected at the same time */ #define EVENT_DET (1<<0) /* PTP Event Detected */
/* Bit definitions for the PTP_EDATA register */ #define E7_RISE (1<<15) /* Indicates direction of Event 7 */ #define E7_DET (1<<14) /* Indicates Event 7 detected */ #define E6_RISE (1<<13) /* Indicates direction of Event 6 */ #define E6_DET (1<<12) /* Indicates Event 6 detected */ #define E5_RISE (1<<11) /* Indicates direction of Event 5 */ #define E5_DET (1<<10) /* Indicates Event 5 detected */ #define E4_RISE (1<<9) /* Indicates direction of Event 4 */ #define E4_DET (1<<8) /* Indicates Event 4 detected */ #define E3_RISE (1<<7) /* Indicates direction of Event 3 */ #define E3_DET (1<<6) /* Indicates Event 3 detected */ #define E2_RISE (1<<5) /* Indicates direction of Event 2 */ #define E2_DET (1<<4) /* Indicates Event 2 detected */ #define E1_RISE (1<<3) /* Indicates direction of Event 1 */ #define E1_DET (1<<2) /* Indicates Event 1 detected */ #define E0_RISE (1<<1) /* Indicates direction of Event 0 */ #define E0_DET (1<<0) /* Indicates Event 0 detected */
/* Bit definitions for the PTP_TRIG register */ #define TRIG_PULSE (1<<15) /* generate a Pulse rather than a single edge */ #define TRIG_PER (1<<14) /* generate a periodic signal */ #define TRIG_IF_LATE (1<<13) /* trigger immediately if already past */ #define TRIG_NOTIFY (1<<12) /* Trigger Notification Enable */ #define TRIG_GPIO_SHIFT (8) /* Trigger GPIO Connection, value 1-12 */ #define TRIG_GPIO_MASK (0xf) #define TRIG_TOGGLE (1<<7) /* Trigger Toggle Mode Enable */ #define TRIG_CSEL_SHIFT (1) /* Trigger Configuration Select */ #define TRIG_CSEL_MASK (0x7) #define TRIG_WR (1<<0) /* Trigger Configuration Write */
/* Bit definitions for the PTP_TXCFG0 register */ #define SYNC_1STEP (1<<15) /* insert timestamp into transmit Sync Messages */ #define DR_INSERT (1<<13) /* Insert Delay_Req Timestamp in Delay_Resp (dangerous) */ #define NTP_TS_EN (1<<12) /* Enable Timestamping of NTP Packets */ #define IGNORE_2STEP (1<<11) /* Ignore Two_Step flag for One-Step operation */ #define CRC_1STEP (1<<10) /* Disable checking of CRC for One-Step operation */ #define CHK_1STEP (1<<9) /* Enable UDP Checksum correction for One-Step Operation */ #define IP1588_EN (1<<8) /* Enable IEEE 1588 defined IP address filter */ #define TX_L2_EN (1<<7) /* Layer2 Timestamp Enable */ #define TX_IPV6_EN (1<<6) /* IPv6 Timestamp Enable */ #define TX_IPV4_EN (1<<5) /* IPv4 Timestamp Enable */ #define TX_PTP_VER_SHIFT (1) /* Enable Timestamp capture for IEEE 1588 version X */ #define TX_PTP_VER_MASK (0xf) #define TX_TS_EN (1<<0) /* Transmit Timestamp Enable */
/* Bit definitions for the PTP_TXCFG1 register */ #define BYTE0_MASK_SHIFT (8) /* Bit mask to be used for matching Byte0 of the PTP Message */ #define BYTE0_MASK_MASK (0xff) #define BYTE0_DATA_SHIFT (0) /* Data to be used for matching Byte0 of the PTP Message */ #define BYTE0_DATA_MASK (0xff)
/* Bit definitions for the PSF_CFG0 register */ #define MAC_SRC_ADD_SHIFT (11) /* Status Frame Mac Source Address */ #define MAC_SRC_ADD_MASK (0x3) #define MIN_PRE_SHIFT (8) /* Status Frame Minimum Preamble */ #define MIN_PRE_MASK (0x7) #define PSF_ENDIAN (1<<7) /* Status Frame Endian Control */ #define PSF_IPV4 (1<<6) /* Status Frame IPv4 Enable */ #define PSF_PCF_RD (1<<5) /* Control Frame Read PHY Status Frame Enable */ #define PSF_ERR_EN (1<<4) /* Error PHY Status Frame Enable */ #define PSF_TXTS_EN (1<<3) /* Transmit Timestamp PHY Status Frame Enable */ #define PSF_RXTS_EN (1<<2) /* Receive Timestamp PHY Status Frame Enable */ #define PSF_TRIG_EN (1<<1) /* Trigger PHY Status Frame Enable */ #define PSF_EVNT_EN (1<<0) /* Event PHY Status Frame Enable */
/* Bit definitions for the PTP_RXCFG0 register */ #define DOMAIN_EN (1<<15) /* Domain Match Enable */ #define ALT_MAST_DIS (1<<14) /* Alternate Master Timestamp Disable */ #define USER_IP_SEL (1<<13) /* Selects portion of IP address accessible thru PTP_RXCFG2 */ #define USER_IP_EN (1<<12) /* Enable User-programmed IP address filter */ #define RX_SLAVE (1<<11) /* Receive Slave Only */ #define IP1588_EN_SHIFT (8) /* Enable IEEE 1588 defined IP address filters */ #define IP1588_EN_MASK (0xf) #define RX_L2_EN (1<<7) /* Layer2 Timestamp Enable */ #define RX_IPV6_EN (1<<6) /* IPv6 Timestamp Enable */ #define RX_IPV4_EN (1<<5) /* IPv4 Timestamp Enable */ #define RX_PTP_VER_SHIFT (1) /* Enable Timestamp capture for IEEE 1588 version X */ #define RX_PTP_VER_MASK (0xf) #define RX_TS_EN (1<<0) /* Receive Timestamp Enable */
/* Bit definitions for the PTP_RXCFG1 register */ #define BYTE0_MASK_SHIFT (8) /* Bit mask to be used for matching Byte0 of the PTP Message */ #define BYTE0_MASK_MASK (0xff) #define BYTE0_DATA_SHIFT (0) /* Data to be used for matching Byte0 of the PTP Message */ #define BYTE0_DATA_MASK (0xff)
/* Bit definitions for the PTP_RXCFG3 register */ #define TS_MIN_IFG_SHIFT (12) /* Minimum Inter-frame Gap */ #define TS_MIN_IFG_MASK (0xf) #define ACC_UDP (1<<11) /* Record Timestamp if UDP Checksum Error */ #define ACC_CRC (1<<10) /* Record Timestamp if CRC Error */ #define TS_APPEND (1<<9) /* Append Timestamp for L2 */ #define TS_INSERT (1<<8) /* Enable Timestamp Insertion */ #define PTP_DOMAIN_SHIFT (0) /* PTP Message domainNumber field */ #define PTP_DOMAIN_MASK (0xff)
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.