no FLG_ACTIVE in layer0 TE mode

This commit is contained in:
Martin Bachem 2005-12-16 11:05:19 +00:00
parent 14463646ba
commit 23fb3808e3
2 changed files with 13 additions and 17 deletions

View File

@ -38,13 +38,6 @@
#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"
const char *hfcsusb_rev = "$Revision$";
@ -393,6 +386,11 @@ S0_new_state(channel_t * dch)
default:
return;
}
if (dch->state== 7)
test_and_set_bit(FLG_ACTIVE, &dch->Flags);
else
test_and_clear_bit(FLG_ACTIVE, &dch->Flags);
} else {
if (dch->debug)
mISDN_debugprint(&card->chan[D].inst,
@ -588,7 +586,7 @@ hfcsusb_ph_command(hfcsusb_t * card, u_char command)
case HFC_L1_DEACTIVATE_NT:
queued_Write_hfc(card, HFCUSB_STATES,
HFCUSB_DO_ACTION);
HFCUSB_DO_ACTION);
break;
}
}

View File

@ -20,8 +20,13 @@
#define CLKDEL_TE 0x0f /* CLKDEL in TE 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_ACTIVATE 0x20
#define HFCUSB_DO_ACTION 0x40
@ -31,13 +36,7 @@
#define PORT_MODE_TE 0x01
#define PORT_MODE_NT 0x02
#define NT_ACTIVATION_TIMER 0x04 /* enables NT mode activation Timer */
#define NT_T1_COUNT 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 NT_T1_COUNT 100 // 10 !
#define MAX_BCH_SIZE 2048 /* allowed B-channel packet size */
@ -136,7 +135,6 @@ static int iso_packets[8] =
#define HFC_CTRL_BUFSIZE 32
/*************************************************/
/* entry and size of output/input control buffer */
/*************************************************/