no FLG_ACTIVE in layer0 TE mode
This commit is contained in:
parent
14463646ba
commit
23fb3808e3
|
@ -38,13 +38,6 @@
|
||||||
#include "hfcs_usb.h"
|
#include "hfcs_usb.h"
|
||||||
|
|
||||||
|
|
||||||
/* hfcsusb Layer1 commands */
|
|
||||||
#define HFC_L1_ACTIVATE_TE 0x01
|
|
||||||
#define HFC_L1_ACTIVATE_NT 0x02
|
|
||||||
#define HFC_L1_DEACTIVATE_NT 0x03
|
|
||||||
#define HFC_L1_FORCE_DEACTIVATE_TE 0x04
|
|
||||||
|
|
||||||
|
|
||||||
#define DRIVER_NAME "mISDN_hfcsusb"
|
#define DRIVER_NAME "mISDN_hfcsusb"
|
||||||
const char *hfcsusb_rev = "$Revision$";
|
const char *hfcsusb_rev = "$Revision$";
|
||||||
|
|
||||||
|
@ -393,6 +386,11 @@ S0_new_state(channel_t * dch)
|
||||||
default:
|
default:
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (dch->state== 7)
|
||||||
|
test_and_set_bit(FLG_ACTIVE, &dch->Flags);
|
||||||
|
else
|
||||||
|
test_and_clear_bit(FLG_ACTIVE, &dch->Flags);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
if (dch->debug)
|
if (dch->debug)
|
||||||
mISDN_debugprint(&card->chan[D].inst,
|
mISDN_debugprint(&card->chan[D].inst,
|
||||||
|
@ -588,7 +586,7 @@ hfcsusb_ph_command(hfcsusb_t * card, u_char command)
|
||||||
|
|
||||||
case HFC_L1_DEACTIVATE_NT:
|
case HFC_L1_DEACTIVATE_NT:
|
||||||
queued_Write_hfc(card, HFCUSB_STATES,
|
queued_Write_hfc(card, HFCUSB_STATES,
|
||||||
HFCUSB_DO_ACTION);
|
HFCUSB_DO_ACTION);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,8 +20,13 @@
|
||||||
#define CLKDEL_TE 0x0f /* CLKDEL in TE mode */
|
#define CLKDEL_TE 0x0f /* CLKDEL in TE mode */
|
||||||
#define CLKDEL_NT 0x6c /* CLKDEL in NT mode */
|
#define CLKDEL_NT 0x6c /* CLKDEL in NT mode */
|
||||||
|
|
||||||
|
/* hfcsusb Layer1 commands */
|
||||||
|
#define HFC_L1_ACTIVATE_TE 0x01
|
||||||
|
#define HFC_L1_ACTIVATE_NT 0x02
|
||||||
|
#define HFC_L1_DEACTIVATE_NT 0x03
|
||||||
|
#define HFC_L1_FORCE_DEACTIVATE_TE 0x04
|
||||||
|
|
||||||
/* bits in STATES */
|
/* cmd FLAGS in HFCUSB_STATES register */
|
||||||
#define HFCUSB_LOAD_STATE 0x10
|
#define HFCUSB_LOAD_STATE 0x10
|
||||||
#define HFCUSB_ACTIVATE 0x20
|
#define HFCUSB_ACTIVATE 0x20
|
||||||
#define HFCUSB_DO_ACTION 0x40
|
#define HFCUSB_DO_ACTION 0x40
|
||||||
|
@ -31,13 +36,7 @@
|
||||||
#define PORT_MODE_TE 0x01
|
#define PORT_MODE_TE 0x01
|
||||||
#define PORT_MODE_NT 0x02
|
#define PORT_MODE_NT 0x02
|
||||||
#define NT_ACTIVATION_TIMER 0x04 /* enables NT mode activation Timer */
|
#define NT_ACTIVATION_TIMER 0x04 /* enables NT mode activation Timer */
|
||||||
#define NT_T1_COUNT 10
|
#define NT_T1_COUNT 100 // 10 !
|
||||||
|
|
||||||
|
|
||||||
#define HFCUSB_L1_STATECHANGE 0 /* L1 state changed */
|
|
||||||
#define HFCUSB_L1_DRX 1 /* D-frame received */
|
|
||||||
#define HFCUSB_L1_ERX 2 /* E-frame received */
|
|
||||||
#define HFCUSB_L1_DTX 4 /* D-frames completed */
|
|
||||||
|
|
||||||
#define MAX_BCH_SIZE 2048 /* allowed B-channel packet size */
|
#define MAX_BCH_SIZE 2048 /* allowed B-channel packet size */
|
||||||
|
|
||||||
|
@ -136,7 +135,6 @@ static int iso_packets[8] =
|
||||||
#define HFC_CTRL_BUFSIZE 32
|
#define HFC_CTRL_BUFSIZE 32
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*************************************************/
|
/*************************************************/
|
||||||
/* entry and size of output/input control buffer */
|
/* entry and size of output/input control buffer */
|
||||||
/*************************************************/
|
/*************************************************/
|
||||||
|
|
Loading…
Reference in New Issue