Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci-2.6.23
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci-2.6.23
Commits
c69fda4e
Commit
c69fda4e
authored
Nov 20, 2006
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] ns83820 annotations
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
40f6cff5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
11 deletions
+14
-11
drivers/net/ns83820.c
drivers/net/ns83820.c
+14
-11
No files found.
drivers/net/ns83820.c
View file @
c69fda4e
...
...
@@ -414,10 +414,10 @@ struct rx_info {
struct
sk_buff
*
skbs
[
NR_RX_DESC
];
u
32
*
next_rx_desc
;
__le
32
*
next_rx_desc
;
u16
next_rx
,
next_empty
;
u
32
*
descs
;
__le
32
*
descs
;
dma_addr_t
phy_descs
;
};
...
...
@@ -459,7 +459,7 @@ struct ns83820 {
struct
sk_buff
*
tx_skbs
[
NR_TX_DESC
];
char
pad
[
16
]
__attribute__
((
aligned
(
16
)));
u
32
*
tx_descs
;
__le
32
*
tx_descs
;
dma_addr_t
tx_phy_descs
;
struct
timer_list
tx_watchdog
;
...
...
@@ -533,7 +533,7 @@ static void ns83820_vlan_rx_kill_vid(struct net_device *ndev, unsigned short vid
* conditions, still route realtime traffic with as low jitter as
* possible.
*/
static
inline
void
build_rx_desc
(
struct
ns83820
*
dev
,
u
32
*
desc
,
dma_addr_t
link
,
dma_addr_t
buf
,
u32
cmdsts
,
u32
extsts
)
static
inline
void
build_rx_desc
(
struct
ns83820
*
dev
,
__le
32
*
desc
,
dma_addr_t
link
,
dma_addr_t
buf
,
u32
cmdsts
,
u32
extsts
)
{
desc_addr_set
(
desc
+
DESC_LINK
,
link
);
desc_addr_set
(
desc
+
DESC_BUFPTR
,
buf
);
...
...
@@ -547,7 +547,7 @@ static inline int ns83820_add_rx_skb(struct ns83820 *dev, struct sk_buff *skb)
{
unsigned
next_empty
;
u32
cmdsts
;
u
32
*
sg
;
__le
32
*
sg
;
dma_addr_t
buf
;
next_empty
=
dev
->
rx_info
.
next_empty
;
...
...
@@ -874,7 +874,8 @@ static void fastcall rx_irq(struct net_device *ndev)
struct
rx_info
*
info
=
&
dev
->
rx_info
;
unsigned
next_rx
;
int
rx_rc
,
len
;
u32
cmdsts
,
*
desc
;
u32
cmdsts
;
__le32
*
desc
;
unsigned
long
flags
;
int
nr
=
0
;
...
...
@@ -1010,7 +1011,8 @@ static inline void kick_tx(struct ns83820 *dev)
static
void
do_tx_done
(
struct
net_device
*
ndev
)
{
struct
ns83820
*
dev
=
PRIV
(
ndev
);
u32
cmdsts
,
tx_done_idx
,
*
desc
;
u32
cmdsts
,
tx_done_idx
;
__le32
*
desc
;
dprintk
(
"do_tx_done(%p)
\n
"
,
ndev
);
tx_done_idx
=
dev
->
tx_done_idx
;
...
...
@@ -1077,7 +1079,7 @@ static void ns83820_cleanup_tx(struct ns83820 *dev)
struct
sk_buff
*
skb
=
dev
->
tx_skbs
[
i
];
dev
->
tx_skbs
[
i
]
=
NULL
;
if
(
skb
)
{
u
32
*
desc
=
dev
->
tx_descs
+
(
i
*
DESC_SIZE
);
__le
32
*
desc
=
dev
->
tx_descs
+
(
i
*
DESC_SIZE
);
pci_unmap_single
(
dev
->
pci_dev
,
desc_addr_get
(
desc
+
DESC_BUFPTR
),
le32_to_cpu
(
desc
[
DESC_CMDSTS
])
&
CMDSTS_LEN_MASK
,
...
...
@@ -1107,7 +1109,7 @@ static int ns83820_hard_start_xmit(struct sk_buff *skb, struct net_device *ndev)
skb_frag_t
*
frag
;
int
stopped
=
0
;
int
do_intr
=
0
;
volatile
u
32
*
first_desc
;
volatile
__le
32
*
first_desc
;
dprintk
(
"ns83820_hard_start_xmit
\n
"
);
...
...
@@ -1180,7 +1182,7 @@ again:
first_desc
=
dev
->
tx_descs
+
(
free_idx
*
DESC_SIZE
);
for
(;;)
{
volatile
u
32
*
desc
=
dev
->
tx_descs
+
(
free_idx
*
DESC_SIZE
);
volatile
__le
32
*
desc
=
dev
->
tx_descs
+
(
free_idx
*
DESC_SIZE
);
dprintk
(
"frag[%3u]: %4u @ 0x%08Lx
\n
"
,
free_idx
,
len
,
(
unsigned
long
long
)
buf
);
...
...
@@ -1455,7 +1457,8 @@ static int ns83820_stop(struct net_device *ndev)
static
void
ns83820_tx_timeout
(
struct
net_device
*
ndev
)
{
struct
ns83820
*
dev
=
PRIV
(
ndev
);
u32
tx_done_idx
,
*
desc
;
u32
tx_done_idx
;
__le32
*
desc
;
unsigned
long
flags
;
spin_lock_irqsave
(
&
dev
->
tx_lock
,
flags
);
...
...
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