Lines Matching +full:0 +full:xf000
19 /* Offset 0x00: PTP EtherType */
20 #define MV88E6XXX_PTP_ETHERTYPE 0x00
22 /* Offset 0x01: Message Type Timestamp Enables */
23 #define MV88E6XXX_PTP_MSGTYPE 0x01
24 #define MV88E6XXX_PTP_MSGTYPE_SYNC 0x0001
25 #define MV88E6XXX_PTP_MSGTYPE_DELAY_REQ 0x0002
26 #define MV88E6XXX_PTP_MSGTYPE_PDLAY_REQ 0x0004
27 #define MV88E6XXX_PTP_MSGTYPE_PDLAY_RES 0x0008
28 #define MV88E6XXX_PTP_MSGTYPE_ALL_EVENT 0x000f
30 /* Offset 0x02: Timestamp Arrival Capture Pointers */
31 #define MV88E6XXX_PTP_TS_ARRIVAL_PTR 0x02
33 /* Offset 0x05: PTP Global Configuration */
34 #define MV88E6165_PTP_CFG 0x05
35 #define MV88E6165_PTP_CFG_TSPEC_MASK 0xf000
37 #define MV88E6165_PTP_CFG_DISABLE_PTP BIT(0)
39 /* Offset 0x07: PTP Global Configuration */
40 #define MV88E6341_PTP_CFG 0x07
41 #define MV88E6341_PTP_CFG_UPDATE 0x8000
42 #define MV88E6341_PTP_CFG_IDX_MASK 0x7f00
43 #define MV88E6341_PTP_CFG_DATA_MASK 0x00ff
44 #define MV88E6341_PTP_CFG_MODE_IDX 0x0
45 #define MV88E6341_PTP_CFG_MODE_TS_AT_PHY 0x00
46 #define MV88E6341_PTP_CFG_MODE_TS_AT_MAC 0x80
48 /* Offset 0x08: PTP Interrupt Status */
49 #define MV88E6XXX_PTP_IRQ_STATUS 0x08
52 /* Offset 0x00: PTP Configuration 0 */
53 #define MV88E6XXX_PORT_PTP_CFG0 0x00
55 #define MV88E6XXX_PORT_PTP_CFG0_TSPEC_MASK 0xf000
56 #define MV88E6XXX_PORT_PTP_CFG0_TSPEC_1588 0x0000
57 #define MV88E6XXX_PORT_PTP_CFG0_TSPEC_8021AS 0x1000
58 #define MV88E6XXX_PORT_PTP_CFG0_DISABLE_TSPEC_MATCH 0x0800
59 #define MV88E6XXX_PORT_PTP_CFG0_DISABLE_OVERWRITE 0x0002
60 #define MV88E6XXX_PORT_PTP_CFG0_DISABLE_PTP 0x0001
62 /* Offset 0x01: PTP Configuration 1 */
63 #define MV88E6XXX_PORT_PTP_CFG1 0x01
65 /* Offset 0x02: PTP Configuration 2 */
66 #define MV88E6XXX_PORT_PTP_CFG2 0x02
67 #define MV88E6XXX_PORT_PTP_CFG2_EMBED_ARRIVAL 0x1000
68 #define MV88E6XXX_PORT_PTP_CFG2_DEP_IRQ_EN 0x0002
69 #define MV88E6XXX_PORT_PTP_CFG2_ARR_IRQ_EN 0x0001
71 /* Offset 0x03: PTP LED Configuration */
72 #define MV88E6XXX_PORT_PTP_LED_CFG 0x03
74 /* Offset 0x08: PTP Arrival 0 Status */
75 #define MV88E6XXX_PORT_PTP_ARR0_STS 0x08
77 /* Offset 0x09/0x0A: PTP Arrival 0 Time */
78 #define MV88E6XXX_PORT_PTP_ARR0_TIME_LO 0x09
79 #define MV88E6XXX_PORT_PTP_ARR0_TIME_HI 0x0a
81 /* Offset 0x0B: PTP Arrival 0 Sequence ID */
82 #define MV88E6XXX_PORT_PTP_ARR0_SEQID 0x0b
84 /* Offset 0x0C: PTP Arrival 1 Status */
85 #define MV88E6XXX_PORT_PTP_ARR1_STS 0x0c
87 /* Offset 0x0D/0x0E: PTP Arrival 1 Time */
88 #define MV88E6XXX_PORT_PTP_ARR1_TIME_LO 0x0d
89 #define MV88E6XXX_PORT_PTP_ARR1_TIME_HI 0x0e
91 /* Offset 0x0F: PTP Arrival 1 Sequence ID */
92 #define MV88E6XXX_PORT_PTP_ARR1_SEQID 0x0f
94 /* Offset 0x10: PTP Departure Status */
95 #define MV88E6XXX_PORT_PTP_DEP_STS 0x10
97 /* Offset 0x11/0x12: PTP Deperture Time */
98 #define MV88E6XXX_PORT_PTP_DEP_TIME_LO 0x11
99 #define MV88E6XXX_PORT_PTP_DEP_TIME_HI 0x12
101 /* Offset 0x13: PTP Departure Sequence ID */
102 #define MV88E6XXX_PORT_PTP_DEP_SEQID 0x13
105 #define MV88E6XXX_PTP_TS_STATUS_MASK 0x0006
106 #define MV88E6XXX_PTP_TS_STATUS_NORMAL 0x0000
107 #define MV88E6XXX_PTP_TS_STATUS_OVERWITTEN 0x0002
108 #define MV88E6XXX_PTP_TS_STATUS_DISCARDED 0x0004
109 #define MV88E6XXX_PTP_TS_VALID 0x0001
169 return 0; in mv88e6xxx_hwtstamp_setup()