Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
da200761
Commit
da200761
authored
Sep 08, 2003
by
Armin Schindler
Committed by
Linus Torvalds
Sep 08, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] eicon ISDN driver: C comments
changed // comments to /* */
parent
e71a3c96
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
17 deletions
+17
-17
drivers/isdn/hardware/eicon/divacapi.h
drivers/isdn/hardware/eicon/divacapi.h
+1
-1
drivers/isdn/hardware/eicon/message.c
drivers/isdn/hardware/eicon/message.c
+16
-16
No files found.
drivers/isdn/hardware/eicon/divacapi.h
View file @
da200761
...
@@ -643,7 +643,7 @@ struct async_s {
...
@@ -643,7 +643,7 @@ struct async_s {
unsigned
parity
:
2
;
unsigned
parity
:
2
;
unsigned
spare
:
2
;
unsigned
spare
:
2
;
unsigned
stp
:
1
;
unsigned
stp
:
1
;
unsigned
ch_len
:
2
;
/
/ 3th octett in CAI
unsigned
ch_len
:
2
;
/
* 3th octett in CAI */
};
};
...
...
drivers/isdn/hardware/eicon/message.c
View file @
da200761
...
@@ -6612,7 +6612,7 @@ void nl_ind(PLCI * plci)
...
@@ -6612,7 +6612,7 @@ void nl_ind(PLCI * plci)
||
(
*
data
==
DSP_UDATA_INDICATION_CTS_ON
))
)
||
(
*
data
==
DSP_UDATA_INDICATION_CTS_ON
))
)
{
{
word
conn_opt
,
ncpi_opt
=
0x00
;
word
conn_opt
,
ncpi_opt
=
0x00
;
/
/ HexDump ("MDM N_UDATA:", plci->NL.RBuffer->length, data);
/
* HexDump ("MDM N_UDATA:", plci->NL.RBuffer->length, data); */
if
(
*
data
==
DSP_UDATA_INDICATION_DCD_ON
)
if
(
*
data
==
DSP_UDATA_INDICATION_DCD_ON
)
plci
->
ncpi_state
|=
NCPI_MDM_DCD_ON_RECEIVED
;
plci
->
ncpi_state
|=
NCPI_MDM_DCD_ON_RECEIVED
;
...
@@ -7813,15 +7813,15 @@ word add_b1(PLCI * plci, API_PARSE * bp, word b_channel_info, word b1_faciliti
...
@@ -7813,15 +7813,15 @@ word add_b1(PLCI * plci, API_PARSE * bp, word b_channel_info, word b1_faciliti
}
}
}
}
if
(
READ_WORD
(
bp_parms
[
0
].
info
)
==
2
||
/
/ V.110 async
if
(
READ_WORD
(
bp_parms
[
0
].
info
)
==
2
||
/
* V.110 async */
READ_WORD
(
bp_parms
[
0
].
info
)
==
3
)
/
/ V.110 sync
READ_WORD
(
bp_parms
[
0
].
info
)
==
3
)
/
* V.110 sync */
{
{
if
(
bp_parms
[
3
].
length
){
if
(
bp_parms
[
3
].
length
){
dbug
(
1
,
dprintf
(
"V.110,%d"
,
READ_WORD
(
&
bp_parms
[
3
].
info
[
1
])));
dbug
(
1
,
dprintf
(
"V.110,%d"
,
READ_WORD
(
&
bp_parms
[
3
].
info
[
1
])));
switch
(
READ_WORD
(
&
bp_parms
[
3
].
info
[
1
])){
/
/ Rate
switch
(
READ_WORD
(
&
bp_parms
[
3
].
info
[
1
])){
/
* Rate */
case
0
:
case
0
:
case
56000
:
case
56000
:
if
(
READ_WORD
(
bp_parms
[
0
].
info
)
==
3
){
/
/V.110 sync 56k
if
(
READ_WORD
(
bp_parms
[
0
].
info
)
==
3
){
/
* V.110 sync 56k */
dbug
(
1
,
dprintf
(
"56k sync HSCX"
));
dbug
(
1
,
dprintf
(
"56k sync HSCX"
));
cai
[
1
]
=
8
;
cai
[
1
]
=
8
;
cai
[
2
]
=
0
;
cai
[
2
]
=
0
;
...
@@ -7859,7 +7859,7 @@ word add_b1(PLCI * plci, API_PARSE * bp, word b_channel_info, word b1_faciliti
...
@@ -7859,7 +7859,7 @@ word add_b1(PLCI * plci, API_PARSE * bp, word b_channel_info, word b1_faciliti
return
_B1_PARM_NOT_SUPPORTED
;
return
_B1_PARM_NOT_SUPPORTED
;
}
}
cai
[
3
]
=
0
;
cai
[
3
]
=
0
;
if
(
cai
[
1
]
==
13
)
/
/ v.110 async
if
(
cai
[
1
]
==
13
)
/
* v.110 async */
{
{
if
(
bp_parms
[
3
].
length
>=
8
)
if
(
bp_parms
[
3
].
length
>=
8
)
{
{
...
@@ -7906,7 +7906,7 @@ word add_b1(PLCI * plci, API_PARSE * bp, word b_channel_info, word b1_faciliti
...
@@ -7906,7 +7906,7 @@ word add_b1(PLCI * plci, API_PARSE * bp, word b_channel_info, word b1_faciliti
}
}
WRITE_WORD
(
&
cai
[
5
],
plci
->
appl
->
MaxDataLength
);
WRITE_WORD
(
&
cai
[
5
],
plci
->
appl
->
MaxDataLength
);
dbug
(
1
,
dprintf
(
"CAI[%d]=%x,%x,%x,%x,%x,%x"
,
cai
[
0
],
cai
[
1
],
cai
[
2
],
cai
[
3
],
cai
[
4
],
cai
[
5
],
cai
[
6
]));
dbug
(
1
,
dprintf
(
"CAI[%d]=%x,%x,%x,%x,%x,%x"
,
cai
[
0
],
cai
[
1
],
cai
[
2
],
cai
[
3
],
cai
[
4
],
cai
[
5
],
cai
[
6
]));
/
/HexDump ("CAI", sizeof(cai), &cai[0]);
/
* HexDump ("CAI", sizeof(cai), &cai[0]); */
add_p
(
plci
,
CAI
,
cai
);
add_p
(
plci
,
CAI
,
cai
);
return
0
;
return
0
;
...
@@ -8681,7 +8681,7 @@ static word add_modem_b23 (PLCI * plci, API_PARSE* bp_parms)
...
@@ -8681,7 +8681,7 @@ static word add_modem_b23 (PLCI * plci, API_PARSE* bp_parms)
DLC_MODEMPROT_DISABLE_COMPRESSION
;
DLC_MODEMPROT_DISABLE_COMPRESSION
;
}
}
dlc
[
0
]
=
(
byte
)(
i
-
1
);
dlc
[
0
]
=
(
byte
)(
i
-
1
);
/
/HexDump ("DLC", sizeof(dlc), &dlc[0]);
/
* HexDump ("DLC", sizeof(dlc), &dlc[0]); */
add_p
(
plci
,
DLC
,
dlc
);
add_p
(
plci
,
DLC
,
dlc
);
return
(
0
);
return
(
0
);
}
}
...
@@ -8739,7 +8739,7 @@ void send_req(PLCI * plci)
...
@@ -8739,7 +8739,7 @@ void send_req(PLCI * plci)
{
{
ENTITY
*
e
;
ENTITY
*
e
;
word
l
;
word
l
;
/
/ word i;
/
* word i; */
if
(
!
plci
)
return
;
if
(
!
plci
)
return
;
if
(
plci
->
adapter
->
adapter_disabled
)
return
;
if
(
plci
->
adapter
->
adapter_disabled
)
return
;
...
@@ -8856,7 +8856,7 @@ void send_data(PLCI * plci)
...
@@ -8856,7 +8856,7 @@ void send_data(PLCI * plci)
}
}
else
if
(
plci
->
send_disc
==
ncci
)
else
if
(
plci
->
send_disc
==
ncci
)
{
{
/
/dprintf("N_DISC");
/
* dprintf("N_DISC"); */
plci
->
NData
[
0
].
PLength
=
0
;
plci
->
NData
[
0
].
PLength
=
0
;
plci
->
NL
.
ReqCh
=
a
->
ncci_ch
[
ncci
];
plci
->
NL
.
ReqCh
=
a
->
ncci_ch
[
ncci
];
plci
->
NL
.
Req
=
plci
->
nl_req
=
N_DISC
;
plci
->
NL
.
Req
=
plci
->
nl_req
=
N_DISC
;
...
@@ -9059,15 +9059,15 @@ static byte AddInfo(byte **add_i,
...
@@ -9059,15 +9059,15 @@ static byte AddInfo(byte **add_i,
for
(
k
=
0
;
k
<=
flen
;
k
++
,
j
++
)
for
(
k
=
0
;
k
<=
flen
;
k
++
,
j
++
)
{
{
facility
[
j
]
=
fty_i
[
i
][
k
];
facility
[
j
]
=
fty_i
[
i
][
k
];
/
/ dbug(1,dprintf("%x ",facility[j]));
/
* dbug(1,dprintf("%x ",facility[j])); */
}
}
}
}
facility
[
0
]
=
len
;
facility
[
0
]
=
len
;
add_i
[
3
]
=
facility
;
add_i
[
3
]
=
facility
;
}
}
/
/ dbug(1,dprintf("FacArrLen=%d ",len));
/
* dbug(1,dprintf("FacArrLen=%d ",len)); */
len
=
add_i
[
0
][
0
]
+
add_i
[
1
][
0
]
+
add_i
[
2
][
0
]
+
add_i
[
3
][
0
];
len
=
add_i
[
0
][
0
]
+
add_i
[
1
][
0
]
+
add_i
[
2
][
0
]
+
add_i
[
3
][
0
];
len
+=
4
;
/
/ calculate length of all
len
+=
4
;
/
* calculate length of all */
return
(
len
);
return
(
len
);
}
}
...
@@ -9083,8 +9083,8 @@ void SetVoiceChannel(PLCI *plci, byte *chi, DIVA_CAPI_ADAPTER * a)
...
@@ -9083,8 +9083,8 @@ void SetVoiceChannel(PLCI *plci, byte *chi, DIVA_CAPI_ADAPTER * a)
channel
=
chi
[
chi
[
0
]]
&
0x3
;
channel
=
chi
[
chi
[
0
]]
&
0x3
;
dbug
(
1
,
dprintf
(
"ExtDevON(Ch=0x%x)"
,
channel
));
dbug
(
1
,
dprintf
(
"ExtDevON(Ch=0x%x)"
,
channel
));
voice_chi
[
2
]
=
(
channel
)
?
channel
:
1
;
voice_chi
[
2
]
=
(
channel
)
?
channel
:
1
;
add_p
(
plci
,
FTY
,
"
\x02\x01\x07
"
);
/
/ B On, default on 1
add_p
(
plci
,
FTY
,
"
\x02\x01\x07
"
);
/
* B On, default on 1 */
add_p
(
plci
,
ESC
,
voice_chi
);
/
/ Channel
add_p
(
plci
,
ESC
,
voice_chi
);
/
* Channel */
sig_req
(
plci
,
TEL_CTRL
,
0
);
sig_req
(
plci
,
TEL_CTRL
,
0
);
send_req
(
plci
);
send_req
(
plci
);
if
(
a
->
AdvSignalPLCI
)
if
(
a
->
AdvSignalPLCI
)
...
@@ -9096,7 +9096,7 @@ void SetVoiceChannel(PLCI *plci, byte *chi, DIVA_CAPI_ADAPTER * a)
...
@@ -9096,7 +9096,7 @@ void SetVoiceChannel(PLCI *plci, byte *chi, DIVA_CAPI_ADAPTER * a)
void
VoiceChannelOff
(
PLCI
*
plci
)
void
VoiceChannelOff
(
PLCI
*
plci
)
{
{
dbug
(
1
,
dprintf
(
"ExtDevOFF"
));
dbug
(
1
,
dprintf
(
"ExtDevOFF"
));
add_p
(
plci
,
FTY
,
"
\x02\x01\x08
"
);
/
/ B Off
add_p
(
plci
,
FTY
,
"
\x02\x01\x08
"
);
/
* B Off */
sig_req
(
plci
,
TEL_CTRL
,
0
);
sig_req
(
plci
,
TEL_CTRL
,
0
);
send_req
(
plci
);
send_req
(
plci
);
if
(
plci
->
adapter
->
AdvSignalPLCI
)
if
(
plci
->
adapter
->
AdvSignalPLCI
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment