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
698b2ca3
Commit
698b2ca3
authored
Apr 30, 2002
by
Kai Germaschewski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ISDN: b1dma tx path cleanup
parent
56ede423
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
13 deletions
+16
-13
drivers/isdn/hardware/avm/b1dma.c
drivers/isdn/hardware/avm/b1dma.c
+16
-13
No files found.
drivers/isdn/hardware/avm/b1dma.c
View file @
698b2ca3
...
@@ -352,8 +352,18 @@ int b1pciv4_detect(avmcard *card)
...
@@ -352,8 +352,18 @@ int b1pciv4_detect(avmcard *card)
static
void
b1dma_queue_tx
(
avmcard
*
card
,
struct
sk_buff
*
skb
)
static
void
b1dma_queue_tx
(
avmcard
*
card
,
struct
sk_buff
*
skb
)
{
{
unsigned
long
flags
;
skb_queue_tail
(
&
card
->
dma
->
send_queue
,
skb
);
skb_queue_tail
(
&
card
->
dma
->
send_queue
,
skb
);
spin_lock_irq_save
(
&
card
->
lock
,
flags
);
if
(
!
(
card
->
csr
&
EN_TX_TC_INT
))
{
b1dma_dispatch_tx
(
card
);
b1dma_dispatch_tx
(
card
);
b1dmaoutmeml
(
card
->
mbase
+
AMCC_INTCSR
,
card
->
csr
);
}
spin_unlock_irq_restore
(
&
card
->
lock
,
flags
);
}
}
/* ------------------------------------------------------------- */
/* ------------------------------------------------------------- */
...
@@ -369,16 +379,8 @@ static void b1dma_dispatch_tx(avmcard *card)
...
@@ -369,16 +379,8 @@ static void b1dma_dispatch_tx(avmcard *card)
int
inint
;
int
inint
;
void
*
p
;
void
*
p
;
save_flags
(
flags
);
cli
();
inint
=
card
->
interrupt
;
inint
=
card
->
interrupt
;
if
(
card
->
csr
&
EN_TX_TC_INT
)
{
/* tx busy */
restore_flags
(
flags
);
return
;
}
skb
=
skb_dequeue
(
&
dma
->
send_queue
);
skb
=
skb_dequeue
(
&
dma
->
send_queue
);
if
(
!
skb
)
{
if
(
!
skb
)
{
#ifdef CONFIG_B1DMA_DEBUG
#ifdef CONFIG_B1DMA_DEBUG
...
@@ -429,10 +431,6 @@ static void b1dma_dispatch_tx(avmcard *card)
...
@@ -429,10 +431,6 @@ static void b1dma_dispatch_tx(avmcard *card)
card
->
csr
|=
EN_TX_TC_INT
;
card
->
csr
|=
EN_TX_TC_INT
;
if
(
!
inint
)
b1dmaoutmeml
(
card
->
mbase
+
AMCC_INTCSR
,
card
->
csr
);
restore_flags
(
flags
);
dev_kfree_skb_any
(
skb
);
dev_kfree_skb_any
(
skb
);
}
}
...
@@ -620,10 +618,15 @@ static void b1dma_handle_interrupt(avmcard *card)
...
@@ -620,10 +618,15 @@ static void b1dma_handle_interrupt(avmcard *card)
}
}
if
((
status
&
TX_TC_INT
)
!=
0
)
{
if
((
status
&
TX_TC_INT
)
!=
0
)
{
spin_lock_irq_save
(
&
card
->
lock
,
flags
);
card
->
csr
&=
~
EN_TX_TC_INT
;
card
->
csr
&=
~
EN_TX_TC_INT
;
b1dma_dispatch_tx
(
card
);
b1dma_dispatch_tx
(
card
);
spin_unlock_irq_restore
(
&
card
->
lock
,
flags
);
}
}
b1dmaoutmeml
(
card
->
mbase
+
AMCC_INTCSR
,
card
->
csr
);
b1dmaoutmeml
(
card
->
mbase
+
AMCC_INTCSR
,
card
->
csr
);
}
}
void
b1dma_interrupt
(
int
interrupt
,
void
*
devptr
,
struct
pt_regs
*
regs
)
void
b1dma_interrupt
(
int
interrupt
,
void
*
devptr
,
struct
pt_regs
*
regs
)
...
...
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