diff options
Diffstat (limited to 'xpp/xpd.h')
-rw-r--r-- | xpp/xpd.h | 20 |
1 files changed, 16 insertions, 4 deletions
@@ -211,13 +211,19 @@ struct xbus { /* PCM metrics */ struct timeval last_tx_sync; struct timeval last_rx_sync; - long max_tx_sync; - long min_tx_sync; - long max_rx_sync; - long min_rx_sync; + unsigned long max_tx_sync; + unsigned long min_tx_sync; + unsigned long max_rx_sync; + unsigned long min_rx_sync; struct xbus_poller *poller; + /* + * Sync adjustment + */ + int sync_adjustment; + long pll_updated_at; + struct rw_semaphore in_use; int num_xpds; void *priv; /* Pointer to transport level data structures */ @@ -335,6 +341,12 @@ struct xpd { #define IS_BRI(xpd) ((xpd)->type == XPD_TYPE_BRI_NT || (xpd)->type == XPD_TYPE_BRI_TE) #define TICK_TOLERANCE 500 /* usec */ +#ifdef DEBUG_SYNC_PARPORT +void xbus_flip_bit(xbus_t *xbus, unsigned int bitnum0, unsigned int bitnum1); +#else +#define xbus_flip_bit(xbus, bitnum0, bitnum1) +#endif + #endif #endif /* XPD_H */ |