summaryrefslogtreecommitdiff
path: root/xpp/xpd.h
diff options
context:
space:
mode:
Diffstat (limited to 'xpp/xpd.h')
-rw-r--r--xpp/xpd.h20
1 files changed, 16 insertions, 4 deletions
diff --git a/xpp/xpd.h b/xpp/xpd.h
index 4aa8861..559af39 100644
--- a/xpp/xpd.h
+++ b/xpp/xpd.h
@@ -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 */