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
nexedi
linux
Commits
32c5550b
Commit
32c5550b
authored
Nov 14, 2002
by
Kai Germaschewski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ISDN: Move transmitter reset into initisac()
Move some duplicated code into a common and more sensible place.
parent
3a57312a
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
3 additions
and
21 deletions
+3
-21
drivers/isdn/hisax/avm_pci.c
drivers/isdn/hisax/avm_pci.c
+0
-3
drivers/isdn/hisax/hscx.c
drivers/isdn/hisax/hscx.c
+0
-3
drivers/isdn/hisax/isac.c
drivers/isdn/hisax/isac.c
+3
-0
drivers/isdn/hisax/isurf.c
drivers/isdn/hisax/isurf.c
+0
-6
drivers/isdn/hisax/nj_s.c
drivers/isdn/hisax/nj_s.c
+0
-2
drivers/isdn/hisax/sedlbauer.c
drivers/isdn/hisax/sedlbauer.c
+0
-4
drivers/isdn/hisax/teleint.c
drivers/isdn/hisax/teleint.c
+0
-3
No files found.
drivers/isdn/hisax/avm_pci.c
View file @
32c5550b
...
...
@@ -731,11 +731,8 @@ AVM_card_msg(struct IsdnCardState *cs, int mt, void *arg)
inithdlc
(
cs
);
outb
(
AVM_STATUS0_DIS_TIMER
|
AVM_STATUS0_RES_TIMER
,
cs
->
hw
.
avm
.
cfg_reg
+
2
);
WriteISAC
(
cs
,
ISAC_MASK
,
0
);
outb
(
AVM_STATUS0_DIS_TIMER
|
AVM_STATUS0_RES_TIMER
|
AVM_STATUS0_ENA_IRQ
,
cs
->
hw
.
avm
.
cfg_reg
+
2
);
/* RESET Receiver and Transmitter */
WriteISAC
(
cs
,
ISAC_CMDR
,
0x41
);
return
(
0
);
case
CARD_TEST
:
return
(
0
);
...
...
drivers/isdn/hisax/hscx.c
View file @
32c5550b
...
...
@@ -268,7 +268,4 @@ inithscxisac(struct IsdnCardState *cs)
{
initisac
(
cs
);
inithscx
(
cs
);
/* RESET Receiver and Transmitter */
cs
->
writeisac
(
cs
,
ISAC_CMDR
,
0x41
);
}
drivers/isdn/hisax/isac.c
View file @
32c5550b
...
...
@@ -678,4 +678,7 @@ initisac(struct IsdnCardState *cs)
debugl1
(
cs
,
"ISAC CIR0 %x"
,
val
);
cs
->
dc
.
isac
.
ph_state
=
(
val
>>
2
)
&
0xf
;
isac_sched_event
(
cs
,
D_L1STATECHANGE
);
/* RESET Receiver and Transmitter */
cs
->
writeisac
(
cs
,
ISAC_CMDR
,
0x41
);
}
drivers/isdn/hisax/isurf.c
View file @
32c5550b
...
...
@@ -158,10 +158,6 @@ ISurf_card_msg(struct IsdnCardState *cs, int mt, void *arg)
writeb
(
0
,
cs
->
hw
.
isurf
.
isar
+
ISAR_IRQBIT
);
mb
();
initisac
(
cs
);
initisar
(
cs
);
/* Reenable ISAC IRQ */
cs
->
writeisac
(
cs
,
ISAC_MASK
,
0
);
/* RESET Receiver and Transmitter */
cs
->
writeisac
(
cs
,
ISAC_CMDR
,
0x41
);
return
(
0
);
case
CARD_TEST
:
return
(
0
);
...
...
@@ -179,8 +175,6 @@ isurf_auxcmd(struct IsdnCardState *cs, isdn_ctrl *ic) {
reset_isurf
(
cs
,
ISURF_ISAR_EA
|
ISURF_ISAC_RESET
|
ISURF_ARCOFI_RESET
);
initisac
(
cs
);
cs
->
writeisac
(
cs
,
ISAC_MASK
,
0
);
cs
->
writeisac
(
cs
,
ISAC_CMDR
,
0x41
);
}
return
(
ret
);
}
...
...
drivers/isdn/hisax/nj_s.c
View file @
32c5550b
...
...
@@ -131,8 +131,6 @@ NETjet_S_card_msg(struct IsdnCardState *cs, int mt, void *arg)
case
CARD_INIT
:
inittiger
(
cs
);
initisac
(
cs
);
/* Reenable all IRQ */
cs
->
writeisac
(
cs
,
ISAC_MASK
,
0
);
return
(
0
);
case
CARD_TEST
:
return
(
0
);
...
...
drivers/isdn/hisax/sedlbauer.c
View file @
32c5550b
...
...
@@ -483,10 +483,6 @@ Sedl_card_msg(struct IsdnCardState *cs, int mt, void *arg)
ISAR_IRQBIT
,
0
);
initisac
(
cs
);
initisar
(
cs
);
/* Reenable all IRQ */
cs
->
writeisac
(
cs
,
ISAC_MASK
,
0
);
/* RESET Receiver and Transmitter */
cs
->
writeisac
(
cs
,
ISAC_CMDR
,
0x41
);
}
else
{
inithscxisac
(
cs
);
}
...
...
drivers/isdn/hisax/teleint.c
View file @
32c5550b
...
...
@@ -243,9 +243,6 @@ TeleInt_card_msg(struct IsdnCardState *cs, int mt, void *arg)
case
CARD_INIT
:
inithfc
(
cs
);
initisac
(
cs
);
/* Reenable all IRQ */
cs
->
writeisac
(
cs
,
ISAC_MASK
,
0
);
cs
->
writeisac
(
cs
,
ISAC_CMDR
,
0x41
);
cs
->
hw
.
hfc
.
timer
.
expires
=
jiffies
+
1
;
add_timer
(
&
cs
->
hw
.
hfc
.
timer
);
return
(
0
);
...
...
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