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
598cb23f
Commit
598cb23f
authored
Oct 24, 2004
by
Jeff Garzik
Browse files
Options
Browse Files
Download
Plain Diff
Merge pobox.com:/garz/repo/netdev-2.6/acenic
into pobox.com:/garz/repo/net-drivers-2.6
parents
90babff0
3d4303d6
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
82 additions
and
114 deletions
+82
-114
drivers/net/acenic.c
drivers/net/acenic.c
+75
-96
drivers/net/acenic.h
drivers/net/acenic.h
+6
-17
drivers/net/acenic_firmware.h
drivers/net/acenic_firmware.h
+1
-1
No files found.
drivers/net/acenic.c
View file @
598cb23f
This diff is collapsed.
Click to expand it.
drivers/net/acenic.h
View file @
598cb23f
...
@@ -10,11 +10,6 @@
...
@@ -10,11 +10,6 @@
*/
*/
#define USE_TX_COAL_NOW 0
#define USE_TX_COAL_NOW 0
#ifndef MAX_SKB_FRAGS
#define MAX_SKB_FRAGS 0
#endif
/*
/*
* Addressing:
* Addressing:
*
*
...
@@ -638,7 +633,7 @@ struct ace_skb
...
@@ -638,7 +633,7 @@ struct ace_skb
struct
ace_private
struct
ace_private
{
{
struct
ace_info
*
info
;
struct
ace_info
*
info
;
struct
ace_regs
*
regs
;
/* register base */
struct
ace_regs
__iomem
*
regs
;
/* register base */
struct
ace_skb
*
skb
;
struct
ace_skb
*
skb
;
dma_addr_t
info_dma
;
/* 32/64 bit */
dma_addr_t
info_dma
;
/* 32/64 bit */
...
@@ -712,13 +707,7 @@ static inline int tx_space (struct ace_private *ap, u32 csm, u32 prd)
...
@@ -712,13 +707,7 @@ static inline int tx_space (struct ace_private *ap, u32 csm, u32 prd)
}
}
#define tx_free(ap) tx_space((ap)->tx_ret_csm, (ap)->tx_prd, ap)
#define tx_free(ap) tx_space((ap)->tx_ret_csm, (ap)->tx_prd, ap)
#if MAX_SKB_FRAGS
#define tx_ring_full(ap, csm, prd) (tx_space(ap, csm, prd) <= TX_RESERVED)
#define tx_ring_full(ap, csm, prd) (tx_space(ap, csm, prd) <= TX_RESERVED)
#else
#define tx_ring_full 0
#endif
static
inline
void
set_aceaddr
(
aceaddr
*
aa
,
dma_addr_t
addr
)
static
inline
void
set_aceaddr
(
aceaddr
*
aa
,
dma_addr_t
addr
)
{
{
...
@@ -729,7 +718,7 @@ static inline void set_aceaddr(aceaddr *aa, dma_addr_t addr)
...
@@ -729,7 +718,7 @@ static inline void set_aceaddr(aceaddr *aa, dma_addr_t addr)
}
}
static
inline
void
ace_set_txprd
(
struct
ace_regs
*
regs
,
static
inline
void
ace_set_txprd
(
struct
ace_regs
__iomem
*
regs
,
struct
ace_private
*
ap
,
u32
value
)
struct
ace_private
*
ap
,
u32
value
)
{
{
#ifdef INDEX_DEBUG
#ifdef INDEX_DEBUG
...
@@ -750,8 +739,8 @@ static inline void ace_set_txprd(struct ace_regs *regs,
...
@@ -750,8 +739,8 @@ static inline void ace_set_txprd(struct ace_regs *regs,
static
inline
void
ace_mask_irq
(
struct
net_device
*
dev
)
static
inline
void
ace_mask_irq
(
struct
net_device
*
dev
)
{
{
struct
ace_private
*
ap
=
dev
->
priv
;
struct
ace_private
*
ap
=
netdev_priv
(
dev
)
;
struct
ace_regs
*
regs
=
ap
->
regs
;
struct
ace_regs
__iomem
*
regs
=
ap
->
regs
;
if
(
ACE_IS_TIGON_I
(
ap
))
if
(
ACE_IS_TIGON_I
(
ap
))
writel
(
1
,
&
regs
->
MaskInt
);
writel
(
1
,
&
regs
->
MaskInt
);
...
@@ -764,8 +753,8 @@ static inline void ace_mask_irq(struct net_device *dev)
...
@@ -764,8 +753,8 @@ static inline void ace_mask_irq(struct net_device *dev)
static
inline
void
ace_unmask_irq
(
struct
net_device
*
dev
)
static
inline
void
ace_unmask_irq
(
struct
net_device
*
dev
)
{
{
struct
ace_private
*
ap
=
dev
->
priv
;
struct
ace_private
*
ap
=
netdev_priv
(
dev
)
;
struct
ace_regs
*
regs
=
ap
->
regs
;
struct
ace_regs
__iomem
*
regs
=
ap
->
regs
;
if
(
ACE_IS_TIGON_I
(
ap
))
if
(
ACE_IS_TIGON_I
(
ap
))
writel
(
0
,
&
regs
->
MaskInt
);
writel
(
0
,
&
regs
->
MaskInt
);
...
...
drivers/net/acenic_firmware.h
View file @
598cb23f
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
#define tigonFwRodata NULL
#define tigonFwRodata NULL
#else
#else
/* Generated by genfw.c */
/* Generated by genfw.c */
static
u32
tigonFwText
[(
MAX_TEXT_LEN
/
4
)
+
1
]
__initdata
=
{
static
u32
tigonFwText
[(
MAX_TEXT_LEN
/
4
)
+
1
]
__
dev
initdata
=
{
0x10000003
,
0x10000003
,
0x0
,
0xd
,
0xd
,
0x3c1d0001
,
0x0
,
0xd
,
0xd
,
0x3c1d0001
,
0x8fbd5c54
,
0x3a0f021
,
0x3c100000
,
0x26104000
,
0x8fbd5c54
,
0x3a0f021
,
0x3c100000
,
0x26104000
,
...
...
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