diff options
author | Thomas Wintergerst <twinterg@FreeBSD.org> | 2006-07-09 21:16:06 +0000 |
---|---|---|
committer | Thomas Wintergerst <twinterg@FreeBSD.org> | 2006-07-09 21:16:06 +0000 |
commit | 5d0c7501b6c1e85b781f6a1fa44707a9bd8b7247 (patch) | |
tree | f1e2ba5979c1f2497f0adf05c561ac6c95668e30 /usr.sbin/i4b | |
parent | 7c92769c192ee82d517fba7da17cd8cc2013f11e (diff) | |
download | src-5d0c7501b6c1e85b781f6a1fa44707a9bd8b7247.tar.gz src-5d0c7501b6c1e85b781f6a1fa44707a9bd8b7247.zip |
Extend i4b to support CAPI manager based ISDN controllers (CAPI manager is part of
c4b, CAPI for BSD). This is a preparation to add CAPI for BSD to the source tree.
Approved by: hm (mentor)
MFC after: 2 weeks
Notes
Notes:
svn path=/head/; revision=160216
Diffstat (limited to 'usr.sbin/i4b')
-rw-r--r-- | usr.sbin/i4b/isdnd/controller.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/usr.sbin/i4b/isdnd/controller.c b/usr.sbin/i4b/isdnd/controller.c index f9290bfd46e2..bdaa3c4bde8c 100644 --- a/usr.sbin/i4b/isdnd/controller.c +++ b/usr.sbin/i4b/isdnd/controller.c @@ -95,6 +95,10 @@ name_of_controller(int ctrl_type, int card_type) "AVM B1 ISA", }; + static char *capimgr_card[] = { + "CAPI manager driven board" + }; + if(ctrl_type == CTRL_PASSIVE) { int index = card_type - CARD_TYPEP_8; @@ -117,6 +121,10 @@ name_of_controller(int ctrl_type, int card_type) if (index >= 0 && index < (sizeof capi_card / sizeof capi_card[0] )) return capi_card[index]; } + else if(ctrl_type == CTRL_CAPIMGR) + { + return capimgr_card[0]; + } return "unknown card type"; } @@ -215,6 +223,12 @@ init_controller_state(int controller, int ctrl_type, int card_type, int tei, isdn_ctrl_tab[controller].state = CTRL_UP; break; + case CTRL_CAPIMGR: + isdn_ctrl_tab[controller].ctrl_type = ctrl_type; + isdn_ctrl_tab[controller].card_type = card_type; + isdn_ctrl_tab[controller].state = CTRL_UP; + break; + default: llog(LL_ERR, "init_controller_state: unknown controller type %d", ctrl_type); return(ERROR); |