diff options
author | mattf <mattf@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2008-05-16 21:39:47 +0000 |
---|---|---|
committer | mattf <mattf@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2008-05-16 21:39:47 +0000 |
commit | dd3fad8de5df2f25630d66154f209b6b7cbf4049 (patch) | |
tree | ed5c05bf8715f685b46da469d8d7c22cc0d8c0dc /kernel/xpp | |
parent | 5e00740361c43a489bff5d280a80fe7285ea9231 (diff) |
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4301 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'kernel/xpp')
-rw-r--r-- | kernel/xpp/xbus-pcm.c | 30 | ||||
-rw-r--r-- | kernel/xpp/xbus-pcm.h | 2 | ||||
-rw-r--r-- | kernel/xpp/xpp_zap.c | 6 |
3 files changed, 19 insertions, 19 deletions
diff --git a/kernel/xpp/xbus-pcm.c b/kernel/xpp/xbus-pcm.c index 2bbbf5f..6155f35 100644 --- a/kernel/xpp/xbus-pcm.c +++ b/kernel/xpp/xbus-pcm.c @@ -76,7 +76,7 @@ static struct xpp_ticker global_ticks_series; #define SYNC_ADJ_QUICK 1000 #define SYNC_ADJ_SLOW 10000 -#ifdef DAHDI_SYNC_TICK +#ifdef ZAPTEL_SYNC_TICK static unsigned int zaptel_tick_count = 0; #endif @@ -431,7 +431,7 @@ static void global_tick(void) xpp_ticker_step(&global_ticks_series, &now); } -#ifdef DAHDI_SYNC_TICK +#ifdef ZAPTEL_SYNC_TICK int zaptel_sync_tick(struct zt_span *span, int is_master) { xpd_t *xpd = span->pvt; @@ -454,7 +454,7 @@ int zaptel_sync_tick(struct zt_span *span, int is_master) xpd->xbus->busname); } if((rate_limit % 5003) == 0) - XPD_NOTICE(xpd, "Zaptel master: ignore DAHDI sync\n"); + XPD_NOTICE(xpd, "Zaptel master: ignore ZAPTEL sync\n"); rate_limit++; goto noop; } @@ -464,7 +464,7 @@ int zaptel_sync_tick(struct zt_span *span, int is_master) if((rate_limit++ % 5003) == 0) XBUS_DBG(SYNC, syncer, - "Already a syncer, ignore DAHDI sync\n"); + "Already a syncer, ignore ZAPTEL sync\n"); goto noop; } /* ignore duplicate calls from all our registered spans */ @@ -489,11 +489,11 @@ noop: /* * called from elect_syncer() * if new_syncer is NULL, than we move all to SYNC_MODE_PLL - * for DAHDI sync. + * for ZAPTEL sync. */ static void update_sync_master(xbus_t *new_syncer) { - const char *msg = (force_zaptel_sync) ? "DAHDI" : "NO-SYNC"; + const char *msg = (force_zaptel_sync) ? "ZAPTEL" : "NO-SYNC"; int i; unsigned long flags; @@ -1131,17 +1131,17 @@ static int proc_sync_read(char *page, char **start, off_t off, int count, int *e do_gettimeofday(&now); len += sprintf(page + len, "# To modify sync source write into this file:\n"); - len += sprintf(page + len, "# DAHDI - Another zaptel device provide sync\n"); + len += sprintf(page + len, "# ZAPTEL - Another zaptel device provide sync\n"); len += sprintf(page + len, "# SYNC=nn - XBUS-nn provide sync\n"); len += sprintf(page + len, "# QUERY=nn - Query XBUS-nn for sync information (DEBUG)\n"); if(!syncer) { if(force_zaptel_sync) - len += sprintf(page + len, "DAHDI\n"); + len += sprintf(page + len, "ZAPTEL\n"); else len += sprintf(page + len, "NO-SYNC\n"); } else len += sprintf(page + len, "SYNC=%02d\n", syncer->num); -#ifdef DAHDI_SYNC_TICK +#ifdef ZAPTEL_SYNC_TICK if(force_zaptel_sync) { len += sprintf(page + len, "Zaptel Reference Sync (%d registered spans):\n", @@ -1185,8 +1185,8 @@ static int proc_sync_write(struct file *file, const char __user *buffer, unsigne if(copy_from_user(buf, buffer, count)) return -EFAULT; buf[count] = '\0'; - if(strncmp("DAHDI", buf, 6) == 0) { - DBG(SYNC, "DAHDI\n"); + if(strncmp("ZAPTEL", buf, 6) == 0) { + DBG(SYNC, "ZAPTEL\n"); force_zaptel_sync=1; update_sync_master(NULL); } else if(sscanf(buf, "SYNC=%d", &xbus_num) == 1) { @@ -1254,10 +1254,10 @@ int xbus_pcm_init(struct proc_dir_entry *toplevel) INFO("FEATURE: with XPP_EC_CHUNK\n"); else INFO("FEATURE: without XPP_EC_CHUNK\n"); -#ifdef DAHDI_SYNC_TICK - INFO("FEATURE: with sync_tick() from DAHDI\n"); +#ifdef ZAPTEL_SYNC_TICK + INFO("FEATURE: with sync_tick() from ZAPTEL\n"); #else - INFO("FEATURE: without sync_tick() from DAHDI\n"); + INFO("FEATURE: without sync_tick() from ZAPTEL\n"); #endif xpp_ticker_init(&global_ticks_series); xpp_ticker_init(&zaptel_ticker); @@ -1289,7 +1289,7 @@ EXPORT_SYMBOL(xbus_request_sync); EXPORT_SYMBOL(got_new_syncer); EXPORT_SYMBOL(elect_syncer); EXPORT_SYMBOL(xpp_echocan); -#ifdef DAHDI_SYNC_TICK +#ifdef ZAPTEL_SYNC_TICK EXPORT_SYMBOL(zaptel_sync_tick); #endif EXPORT_SYMBOL(__pcm_recompute); diff --git a/kernel/xpp/xbus-pcm.h b/kernel/xpp/xbus-pcm.h index e1061ae..3265f68 100644 --- a/kernel/xpp/xbus-pcm.h +++ b/kernel/xpp/xbus-pcm.h @@ -113,7 +113,7 @@ int xbus_command_queue_tick(xbus_t *xbus); void xbus_reset_counters(xbus_t *xbus); void elect_syncer(const char *msg); int xpp_echocan(struct zt_chan *chan, int len); -#ifdef DAHDI_SYNC_TICK +#ifdef ZAPTEL_SYNC_TICK int zaptel_sync_tick(struct zt_span *span, int is_master); #endif diff --git a/kernel/xpp/xpp_zap.c b/kernel/xpp/xpp_zap.c index 69c30f7..5ee7303 100644 --- a/kernel/xpp/xpp_zap.c +++ b/kernel/xpp/xpp_zap.c @@ -828,7 +828,7 @@ int xpp_maint(struct zt_span *span, int cmd) return ret; } -#ifdef CONFIG_DAHDI_WATCHDOG +#ifdef CONFIG_ZAPTEL_WATCHDOG /* * If the watchdog detects no received data, it will call the * watchdog routine @@ -952,12 +952,12 @@ static int zaptel_register_xpd(xpd_t *xpd) */ span->irq = 0; #endif -#ifdef DAHDI_SYNC_TICK +#ifdef ZAPTEL_SYNC_TICK span->sync_tick = zaptel_sync_tick; #endif if (xpp_ec) span->echocan = xpp_echocan; -#ifdef CONFIG_DAHDI_WATCHDOG +#ifdef CONFIG_ZAPTEL_WATCHDOG span->watchdog = xpp_watchdog; #endif |