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
0b59cef8
Commit
0b59cef8
authored
Jul 09, 2008
by
Krzysztof Hałasa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WAN: HD64572 drivers don't use next_desc() anymore.
Signed-off-by:
Krzysztof Hałasa
<
khc@pm.waw.pl
>
parent
61e0a6a2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
10 deletions
+3
-10
drivers/net/wan/hd64572.c
drivers/net/wan/hd64572.c
+3
-10
No files found.
drivers/net/wan/hd64572.c
View file @
0b59cef8
...
@@ -78,13 +78,6 @@ static inline void disable_intr(port_t *port)
...
@@ -78,13 +78,6 @@ static inline void disable_intr(port_t *port)
(
port
->
chan
?
0x00FF00FF
:
0xFF00FF00
),
IER0
,
port
->
card
);
(
port
->
chan
?
0x00FF00FF
:
0xFF00FF00
),
IER0
,
port
->
card
);
}
}
static
inline
u16
next_desc
(
port_t
*
port
,
u16
desc
,
int
transmit
)
{
return
(
desc
+
1
)
%
(
transmit
?
port
->
card
->
tx_ring_buffers
:
port
->
card
->
rx_ring_buffers
);
}
static
inline
u16
desc_abs_number
(
port_t
*
port
,
u16
desc
,
int
transmit
)
static
inline
u16
desc_abs_number
(
port_t
*
port
,
u16
desc
,
int
transmit
)
{
{
u16
rx_buffs
=
port
->
card
->
rx_ring_buffers
;
u16
rx_buffs
=
port
->
card
->
rx_ring_buffers
;
...
@@ -291,7 +284,7 @@ static inline int sca_rx_done(port_t *port, int budget)
...
@@ -291,7 +284,7 @@ static inline int sca_rx_done(port_t *port, int budget)
/* Set new error descriptor address */
/* Set new error descriptor address */
sca_outl
(
desc_off
,
dmac
+
EDAL
,
card
);
sca_outl
(
desc_off
,
dmac
+
EDAL
,
card
);
port
->
rxin
=
next_desc
(
port
,
port
->
rxin
,
0
)
;
port
->
rxin
=
(
port
->
rxin
+
1
)
%
card
->
rx_ring_buffers
;
}
}
/* make sure RX DMA is enabled */
/* make sure RX DMA is enabled */
...
@@ -329,7 +322,7 @@ static inline void sca_tx_done(port_t *port)
...
@@ -329,7 +322,7 @@ static inline void sca_tx_done(port_t *port)
dev
->
stats
.
tx_bytes
+=
readw
(
&
desc
->
len
);
dev
->
stats
.
tx_bytes
+=
readw
(
&
desc
->
len
);
}
}
writeb
(
0
,
&
desc
->
stat
);
/* Free descriptor */
writeb
(
0
,
&
desc
->
stat
);
/* Free descriptor */
port
->
txlast
=
next_desc
(
port
,
port
->
txlast
,
1
)
;
port
->
txlast
=
(
port
->
txlast
+
1
)
%
card
->
tx_ring_buffers
;
}
}
netif_wake_queue
(
dev
);
netif_wake_queue
(
dev
);
...
@@ -599,7 +592,7 @@ static int sca_xmit(struct sk_buff *skb, struct net_device *dev)
...
@@ -599,7 +592,7 @@ static int sca_xmit(struct sk_buff *skb, struct net_device *dev)
writeb
(
ST_TX_EOM
,
&
desc
->
stat
);
writeb
(
ST_TX_EOM
,
&
desc
->
stat
);
dev
->
trans_start
=
jiffies
;
dev
->
trans_start
=
jiffies
;
port
->
txin
=
next_desc
(
port
,
port
->
txin
,
1
)
;
port
->
txin
=
(
port
->
txin
+
1
)
%
card
->
tx_ring_buffers
;
sca_outl
(
desc_offset
(
port
,
port
->
txin
,
1
),
sca_outl
(
desc_offset
(
port
,
port
->
txin
,
1
),
get_dmac_tx
(
port
)
+
EDAL
,
card
);
get_dmac_tx
(
port
)
+
EDAL
,
card
);
...
...
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