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
40f6cff5
Commit
40f6cff5
authored
Nov 20, 2006
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] myri10ge annotations
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
bffa2154
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
77 additions
and
72 deletions
+77
-72
drivers/net/myri10ge/myri10ge.c
drivers/net/myri10ge/myri10ge.c
+48
-43
drivers/net/myri10ge/myri10ge_mcp.h
drivers/net/myri10ge/myri10ge_mcp.h
+28
-28
drivers/net/myri10ge/myri10ge_mcp_gen_header.h
drivers/net/myri10ge/myri10ge_mcp_gen_header.h
+1
-1
No files found.
drivers/net/myri10ge/myri10ge.c
View file @
40f6cff5
This diff is collapsed.
Click to expand it.
drivers/net/myri10ge/myri10ge_mcp.h
View file @
40f6cff5
...
...
@@ -6,23 +6,23 @@
/* 8 Bytes */
struct
mcp_dma_addr
{
u
32
high
;
u
32
low
;
__be
32
high
;
__be
32
low
;
};
/* 4 Bytes */
struct
mcp_slot
{
u
16
checksum
;
u
16
length
;
__sum
16
checksum
;
__be
16
length
;
};
/* 64 Bytes */
struct
mcp_cmd
{
u
32
cmd
;
u
32
data0
;
/* will be low portion if data > 32 bits */
__be
32
cmd
;
__be
32
data0
;
/* will be low portion if data > 32 bits */
/* 8 */
u
32
data1
;
/* will be high portion if data > 32 bits */
u
32
data2
;
/* currently unused.. */
__be
32
data1
;
/* will be high portion if data > 32 bits */
__be
32
data2
;
/* currently unused.. */
/* 16 */
struct
mcp_dma_addr
response_addr
;
/* 24 */
...
...
@@ -31,8 +31,8 @@ struct mcp_cmd {
/* 8 Bytes */
struct
mcp_cmd_response
{
u
32
data
;
u
32
result
;
__be
32
data
;
__be
32
result
;
};
/*
...
...
@@ -73,10 +73,10 @@ union mcp_pso_or_cumlen {
/* 16 Bytes */
struct
mcp_kreq_ether_send
{
u
32
addr_high
;
u
32
addr_low
;
u
16
pseudo_hdr_offset
;
u
16
length
;
__be
32
addr_high
;
__be
32
addr_low
;
__be
16
pseudo_hdr_offset
;
__be
16
length
;
u8
pad
;
u8
rdma_count
;
u8
cksum_offset
;
/* where to start computing cksum */
...
...
@@ -85,8 +85,8 @@ struct mcp_kreq_ether_send {
/* 8 Bytes */
struct
mcp_kreq_ether_recv
{
u
32
addr_high
;
u
32
addr_low
;
__be
32
addr_high
;
__be
32
addr_low
;
};
/* Commands */
...
...
@@ -219,19 +219,19 @@ enum myri10ge_mcp_cmd_status {
struct
mcp_irq_data
{
/* add new counters at the beginning */
u
32
future_use
[
5
];
u
32
dropped_multicast_filtered
;
__be
32
future_use
[
5
];
__be
32
dropped_multicast_filtered
;
/* 40 Bytes */
u
32
send_done_count
;
u
32
link_up
;
u
32
dropped_link_overflow
;
u
32
dropped_link_error_or_filtered
;
u
32
dropped_runt
;
u
32
dropped_overrun
;
u
32
dropped_no_small_buffer
;
u
32
dropped_no_big_buffer
;
u
32
rdma_tags_available
;
__be
32
send_done_count
;
__be
32
link_up
;
__be
32
dropped_link_overflow
;
__be
32
dropped_link_error_or_filtered
;
__be
32
dropped_runt
;
__be
32
dropped_overrun
;
__be
32
dropped_no_small_buffer
;
__be
32
dropped_no_big_buffer
;
__be
32
rdma_tags_available
;
u8
tx_stopped
;
u8
link_down
;
...
...
drivers/net/myri10ge/myri10ge_mcp_gen_header.h
View file @
40f6cff5
...
...
@@ -36,7 +36,7 @@
struct
mcp_gen_header
{
/* the first 4 fields are filled at compile time */
unsigned
header_length
;
unsigned
mcp_type
;
__be32
mcp_type
;
char
version
[
128
];
unsigned
mcp_globals
;
/* pointer to mcp-type specific structure */
...
...
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