Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
etr.h File Reference

Go to the source code of this file.

Data Structures

struct  etr_eacr
 
struct  etr_esw
 
struct  etr_slsw
 
struct  etr_edf1
 
struct  etr_edf2
 
struct  etr_edf3
 
struct  etr_edf4
 
struct  etr_aib
 
struct  etr_irq_parm
 
struct  etr_ptff_qto
 
struct  stp_irq_parm
 
struct  stp_sstpi
 

Macros

#define ETR_STEAI_STEPPING_PORT   0x10
 
#define ETR_STEAI_ALTERNATE_PORT   0x11
 
#define ETR_STEAI_PORT_0   0x12
 
#define ETR_STEAI_PORT_1   0x13
 
#define ETR_PTFF_QAF   0x00 /* query available functions */
 
#define ETR_PTFF_QTO   0x01 /* query tod offset */
 
#define ETR_PTFF_QSI   0x02 /* query steering information */
 
#define ETR_PTFF_ATO   0x40 /* adjust tod offset */
 
#define ETR_PTFF_STO   0x41 /* set tod offset */
 
#define ETR_PTFF_SFS   0x42 /* set fine steering rate */
 
#define ETR_PTFF_SGS   0x43 /* set gross steering rate */
 
#define STP_OP_SYNC   1
 
#define STP_OP_CTRL   3
 

Enumerations

enum  etr_psc {
  etr_psc_operational = 0, etr_psc_semi_operational = 1, etr_psc_protocol_error = 4, etr_psc_no_symbols = 8,
  etr_psc_no_signal = 12, etr_psc_pps_mode = 13
}
 
enum  etr_lpsc {
  etr_lpsc_operational_step = 0, etr_lpsc_operational_alt = 1, etr_lpsc_semi_operational = 2, etr_lpsc_protocol_error = 4,
  etr_lpsc_no_symbol_sync = 8, etr_lpsc_no_signal = 12, etr_lpsc_pps_mode = 13
}
 

Functions

struct etr_eacr __attribute__ ((packed))
 
struct etr_aib __attribute__ ((packed, aligned(8)))
 
void etr_switch_to_local (void)
 
void etr_sync_check (void)
 
void stp_sync_check (void)
 
void stp_island_check (void)
 

Variables

unsigned int e0
 
unsigned int e1
 
unsigned int _pad0
 
unsigned int dp
 
unsigned int p0
 
unsigned int p1
 
unsigned int _pad1
 
unsigned int ea
 
unsigned int es
 
unsigned int sl
 
enum etr_psc __attribute__
 
struct etr_eacr eacr
 
unsigned int y
 
unsigned int p
 
unsigned int q
 
unsigned int psc0
 
unsigned int psc1
 
unsigned int vv1
 
unsigned int vv2
 
unsigned int vv3
 
unsigned int vv4
 
unsigned int n
 
unsigned int v1
 
unsigned int v2
 
unsigned int v3
 
unsigned int v4
 
unsigned int u
 
unsigned int r
 
unsigned int a
 
unsigned int net_id
 
unsigned int etr_id
 
unsigned int etr_pn
 
unsigned int etv
 
unsigned int rc
 
unsigned int c
 
unsigned int tc
 
unsigned int blto
 
unsigned int buo
 
unsigned int ed
 
unsigned int buc
 
unsigned int em
 
unsigned int dc
 
unsigned int sc
 
struct etr_esw esw
 
struct etr_slsw slsw
 
unsigned long long tsp
 
struct etr_edf1 edf1
 
struct etr_edf2 edf2
 
struct etr_edf3 edf3
 
struct etr_edf4 edf4
 
unsigned int reserved [16]
 
unsigned int pc0
 
unsigned int pc1
 
unsigned int eai
 
unsigned int _pad2
 
unsigned long long physical_clock
 
unsigned long long tod_offset
 
unsigned long long logical_tod_offset
 
unsigned long long tod_epoch_difference
 
unsigned int tsc
 
unsigned int lac
 
unsigned int tcpc
 
unsigned int rsvd0
 
unsigned int rsvd1
 
unsigned int stratum
 
unsigned int vbits
 
unsigned int leaps
 
unsigned int tmd
 
unsigned int ctn
 
unsigned int rsvd2
 
unsigned int tst
 
unsigned int tzo
 
unsigned int dsto
 
unsigned int ctrl
 
unsigned int rsvd3
 
unsigned int tto
 
unsigned int rsvd4
 
unsigned int ctnid [3]
 
unsigned int rsvd5
 
unsigned int todoff [4]
 
unsigned int rsvd6 [48]
 

Macro Definition Documentation

#define ETR_PTFF_ATO   0x40 /* adjust tod offset */

Definition at line 208 of file etr.h.

#define ETR_PTFF_QAF   0x00 /* query available functions */

Definition at line 205 of file etr.h.

#define ETR_PTFF_QSI   0x02 /* query steering information */

Definition at line 207 of file etr.h.

#define ETR_PTFF_QTO   0x01 /* query tod offset */

Definition at line 206 of file etr.h.

#define ETR_PTFF_SFS   0x42 /* set fine steering rate */

Definition at line 210 of file etr.h.

#define ETR_PTFF_SGS   0x43 /* set gross steering rate */

Definition at line 211 of file etr.h.

#define ETR_PTFF_STO   0x41 /* set tod offset */

Definition at line 209 of file etr.h.

#define ETR_STEAI_ALTERNATE_PORT   0x11

Definition at line 185 of file etr.h.

#define ETR_STEAI_PORT_0   0x12

Definition at line 186 of file etr.h.

#define ETR_STEAI_PORT_1   0x13

Definition at line 187 of file etr.h.

#define ETR_STEAI_STEPPING_PORT   0x10

Definition at line 184 of file etr.h.

#define STP_OP_CTRL   3

Definition at line 227 of file etr.h.

#define STP_OP_SYNC   1

Definition at line 226 of file etr.h.

Enumeration Type Documentation

enum etr_lpsc
Enumerator:
etr_lpsc_operational_step 
etr_lpsc_operational_alt 
etr_lpsc_semi_operational 
etr_lpsc_protocol_error 
etr_lpsc_no_symbol_sync 
etr_lpsc_no_signal 
etr_lpsc_pps_mode 

Definition at line 33 of file etr.h.

enum etr_psc
Enumerator:
etr_psc_operational 
etr_psc_semi_operational 
etr_psc_protocol_error 
etr_psc_no_symbols 
etr_psc_no_signal 
etr_psc_pps_mode 

Definition at line 23 of file etr.h.

Function Documentation

struct etr_eacr __attribute__ ( (packed)  )
read

Definition at line 171 of file esd_usb2.c.

struct etr_aib __attribute__ ( (packed, aligned(8))  )
void etr_switch_to_local ( void  )

Definition at line 534 of file time.c.

void etr_sync_check ( void  )

Definition at line 552 of file time.c.

void stp_island_check ( void  )

Definition at line 1505 of file time.c.

void stp_sync_check ( void  )

Definition at line 1493 of file time.c.

Variable Documentation

unsigned int _pad0

Definition at line 23 of file etr.h.

blkif_vdev_t _pad1

Definition at line 27 of file etr.h.

__u8 _pad2

Definition at line 136 of file etr.h.

unsigned int a

Definition at line 84 of file etr.h.

unsigned int blto

Definition at line 99 of file etr.h.

unsigned int buc

Definition at line 107 of file etr.h.

unsigned int buo

Definition at line 101 of file etr.h.

unsigned int c

Definition at line 97 of file etr.h.

unsigned int ctn

Definition at line 257 of file etr.h.

unsigned int ctnid[3]

Definition at line 267 of file etr.h.

Definition at line 263 of file etr.h.

unsigned int dc

Definition at line 110 of file etr.h.

unsigned int dp

Definition at line 24 of file etr.h.

unsigned int dsto

Definition at line 262 of file etr.h.

unsigned int e0

Definition at line 21 of file etr.h.

unsigned int e1

Definition at line 22 of file etr.h.

unsigned int ea

Definition at line 28 of file etr.h.

Definition at line 53 of file etr.h.

unsigned int eai

Definition at line 135 of file etr.h.

unsigned int ed

Definition at line 105 of file etr.h.

Definition at line 124 of file etr.h.

Definition at line 125 of file etr.h.

Definition at line 126 of file etr.h.

Definition at line 127 of file etr.h.

unsigned int em

Definition at line 109 of file etr.h.

unsigned int es

Definition at line 29 of file etr.h.

Definition at line 121 of file etr.h.

unsigned int etr_id

Definition at line 86 of file etr.h.

unsigned int etr_pn

Definition at line 87 of file etr.h.

unsigned int etv

Definition at line 84 of file etr.h.

unsigned int lac

Definition at line 227 of file etr.h.

unsigned int leaps

Definition at line 255 of file etr.h.

unsigned long long logical_tod_offset

Definition at line 141 of file etr.h.

unsigned int n

Definition at line 73 of file etr.h.

unsigned int net_id

Definition at line 85 of file etr.h.

unsigned int p

Definition at line 56 of file etr.h.

unsigned int p0

Definition at line 25 of file etr.h.

unsigned int p1

Definition at line 26 of file etr.h.

unsigned int pc0

Definition at line 132 of file etr.h.

unsigned int pc1

Definition at line 133 of file etr.h.

unsigned long long physical_clock

Definition at line 139 of file etr.h.

unsigned int psc0

Definition at line 58 of file etr.h.

unsigned int psc1

Definition at line 59 of file etr.h.

unsigned char q

Definition at line 57 of file etr.h.

unsigned int r

Definition at line 82 of file etr.h.

Definition at line 95 of file etr.h.

unsigned int reserved[16]

Definition at line 128 of file etr.h.

unsigned int rsvd0

Definition at line 251 of file etr.h.

u8 rsvd1

Definition at line 252 of file etr.h.

u8 rsvd2

Definition at line 258 of file etr.h.

unsigned int rsvd3

Definition at line 264 of file etr.h.

u8 rsvd4

Definition at line 266 of file etr.h.

unsigned int rsvd5

Definition at line 268 of file etr.h.

unsigned int rsvd6[48]

Definition at line 270 of file etr.h.

unsigned int sc

Definition at line 111 of file etr.h.

Definition at line 30 of file etr.h.

Definition at line 122 of file etr.h.

unsigned int stratum

Definition at line 253 of file etr.h.

Definition at line 98 of file etr.h.

unsigned int tcpc

Definition at line 228 of file etr.h.

unsigned int tmd

Definition at line 256 of file etr.h.

unsigned long long tod_epoch_difference

Definition at line 142 of file etr.h.

unsigned long long tod_offset

Definition at line 140 of file etr.h.

unsigned int todoff[4]

Definition at line 269 of file etr.h.

unsigned int tsc

Definition at line 226 of file etr.h.

unsigned long long tsp

Definition at line 123 of file etr.h.

unsigned int tst

Definition at line 260 of file etr.h.

unsigned int tto

Definition at line 265 of file etr.h.

unsigned int tzo

Definition at line 261 of file etr.h.

unsigned int u

Definition at line 80 of file etr.h.

unsigned int v1

Definition at line 74 of file etr.h.

unsigned int v2

Definition at line 75 of file etr.h.

unsigned int v3

Definition at line 76 of file etr.h.

unsigned int v4

Definition at line 77 of file etr.h.

unsigned int vbits

Definition at line 254 of file etr.h.

unsigned int vv1

Definition at line 68 of file etr.h.

unsigned int vv2

Definition at line 69 of file etr.h.

unsigned int vv3

Definition at line 70 of file etr.h.

unsigned int vv4

Definition at line 71 of file etr.h.

unsigned int y

Definition at line 54 of file etr.h.