diff options
| author | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2008-07-14 03:58:56 -0400 |
|---|---|---|
| committer | Heiko Carstens <heiko.carstens@de.ibm.com> | 2008-07-14 04:02:09 -0400 |
| commit | d2fec595511b5718bdb65645b3d5d99800d97943 (patch) | |
| tree | a94c3560fc2ad6aa89d61d646f73f4d7c1dfcc9b /include | |
| parent | 761cdf6aacdb76f819050f4938cdab1f4cdcb945 (diff) | |
[S390] stp support.
Add support for clock synchronization with the server time protocol.
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/asm-s390/etr.h | 45 |
1 files changed, 42 insertions, 3 deletions
diff --git a/include/asm-s390/etr.h b/include/asm-s390/etr.h index b498f19bb9a7..80ef58c61970 100644 --- a/include/asm-s390/etr.h +++ b/include/asm-s390/etr.h | |||
| @@ -122,7 +122,7 @@ struct etr_aib { | |||
| 122 | } __attribute__ ((packed,aligned(8))); | 122 | } __attribute__ ((packed,aligned(8))); |
| 123 | 123 | ||
| 124 | /* ETR interruption parameter */ | 124 | /* ETR interruption parameter */ |
| 125 | struct etr_interruption_parameter { | 125 | struct etr_irq_parm { |
| 126 | unsigned int _pad0 : 8; | 126 | unsigned int _pad0 : 8; |
| 127 | unsigned int pc0 : 1; /* port 0 state change */ | 127 | unsigned int pc0 : 1; /* port 0 state change */ |
| 128 | unsigned int pc1 : 1; /* port 1 state change */ | 128 | unsigned int pc1 : 1; /* port 1 state change */ |
| @@ -213,7 +213,46 @@ static inline int etr_ptff(void *ptff_block, unsigned int func) | |||
| 213 | #define ETR_PTFF_SGS 0x43 /* set gross steering rate */ | 213 | #define ETR_PTFF_SGS 0x43 /* set gross steering rate */ |
| 214 | 214 | ||
| 215 | /* Functions needed by the machine check handler */ | 215 | /* Functions needed by the machine check handler */ |
| 216 | extern void etr_switch_to_local(void); | 216 | void etr_switch_to_local(void); |
| 217 | extern void etr_sync_check(void); | 217 | void etr_sync_check(void); |
| 218 | |||
| 219 | /* STP interruption parameter */ | ||
| 220 | struct stp_irq_parm { | ||
| 221 | unsigned int _pad0 : 14; | ||
| 222 | unsigned int tsc : 1; /* Timing status change */ | ||
| 223 | unsigned int lac : 1; /* Link availability change */ | ||
| 224 | unsigned int tcpc : 1; /* Time control parameter change */ | ||
| 225 | unsigned int _pad2 : 15; | ||
| 226 | } __attribute__ ((packed)); | ||
| 227 | |||
| 228 | #define STP_OP_SYNC 1 | ||
| 229 | #define STP_OP_CTRL 3 | ||
| 230 | |||
| 231 | struct stp_sstpi { | ||
| 232 | unsigned int rsvd0; | ||
| 233 | unsigned int rsvd1 : 8; | ||
| 234 | unsigned int stratum : 8; | ||
| 235 | unsigned int vbits : 16; | ||
| 236 | unsigned int leaps : 16; | ||
| 237 | unsigned int tmd : 4; | ||
| 238 | unsigned int ctn : 4; | ||
| 239 | unsigned int rsvd2 : 3; | ||
| 240 | unsigned int c : 1; | ||
| 241 | unsigned int tst : 4; | ||
| 242 | unsigned int tzo : 16; | ||
| 243 | unsigned int dsto : 16; | ||
| 244 | unsigned int ctrl : 16; | ||
| 245 | unsigned int rsvd3 : 16; | ||
| 246 | unsigned int tto; | ||
| 247 | unsigned int rsvd4; | ||
| 248 | unsigned int ctnid[3]; | ||
| 249 | unsigned int rsvd5; | ||
| 250 | unsigned int todoff[4]; | ||
| 251 | unsigned int rsvd6[48]; | ||
| 252 | } __attribute__ ((packed)); | ||
| 253 | |||
| 254 | /* Functions needed by the machine check handler */ | ||
| 255 | void stp_sync_check(void); | ||
| 256 | void stp_island_check(void); | ||
| 218 | 257 | ||
| 219 | #endif /* __S390_ETR_H */ | 258 | #endif /* __S390_ETR_H */ |
