From 8eeb67728cc1db4007233f862c61376a094c9d41 Mon Sep 17 00:00:00 2001 From: tzafrir Date: Tue, 13 May 2008 20:01:23 +0000 Subject: xpp r5723: Includes, among others: * New firmware protocol version: 3.0 . * New numbers for the device types: (e.g. in card_init* scripts) - FXS: 1 (was: 3) - FXO: 2 (was: 4) - BRI: 3 (was: 6 for TE, 7 for NT) - PRI: 4 (was: 9) * Init scripts of FXS and FXO modules are now written in Perl as well (be sure to have File::Basename, e.g: perl-modules in Debian). * calibrate_slics merged into init_card_1_30 . * Module parameter print_dbg replaced with debug . Same meaning. * init_fxo_modes removed: content moved into init_card_2_30, verified at build time. * Code tested with sparse. Most warnings were fixed. * Set ZT_SIG_DACS for the bchans in the PRI and BRI modules to not get ignored by ztscan. * Handle null config_desc we get from some crazy USB controllers. * genzaptelconf: Fix reporting of empty slots in list mode. * xpp_blink can now blink a single analog port. * "slics" has been renamed "chipregs". * Fixed a small typo in fpga_load(8). * Fixed bashism in xpp_fxloader. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4264 5390a7c7-147a-4af0-8ec9-7488f05a26cb --- xpp/xdefs.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'xpp/xdefs.h') diff --git a/xpp/xdefs.h b/xpp/xdefs.h index f1b2139..f928fd4 100644 --- a/xpp/xdefs.h +++ b/xpp/xdefs.h @@ -95,10 +95,7 @@ struct list_head { struct list_head *next; struct list_head *prev; }; #define VALID_XPD_NUM(x) ((x) < MAX_XPDS && (x) >= 0) -#define CHAN_BITS 5 /* 0-30 for E1, 31 = ALL_CHANS */ -#define ALL_CHANS BITMASK(CHAN_BITS) -#define MAX_CHAN (ALL_CHANS - 1) -#define VALID_CHAN_NUM(x) ((x) < MAX_CHAN) +#define CHAN_BITS 5 /* 0-31 for E1 */ typedef char *charp; typedef unsigned char byte; @@ -129,5 +126,8 @@ typedef struct xpacket xpacket_t; typedef struct xops xops_t; typedef __u32 xpp_line_t; /* at most 31 lines for E1 */ typedef byte lineno_t; +typedef byte xportno_t; + +#define PORT_BROADCAST 255 #endif /* XDEFS_H */ -- cgit v1.2.3