diff options
author | twinterg <twinterg@FreeBSD.org> | 2006-07-09 21:16:06 +0000 |
---|---|---|
committer | twinterg <twinterg@FreeBSD.org> | 2006-07-09 21:16:06 +0000 |
commit | 3e2c62d3198b032c952fbda0c36b0eb1cbe1b74d (patch) | |
tree | f1e2ba5979c1f2497f0adf05c561ac6c95668e30 /usr.sbin/i4b/isdnd | |
parent | 8edb3edf3ac746ae6d840c4416bef97a7cf74a71 (diff) | |
download | FreeBSD-src-3e2c62d3198b032c952fbda0c36b0eb1cbe1b74d.zip FreeBSD-src-3e2c62d3198b032c952fbda0c36b0eb1cbe1b74d.tar.gz |
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
Diffstat (limited to 'usr.sbin/i4b/isdnd')
-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 f9290bf..bdaa3c4 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); |