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
d7fbeba6
Commit
d7fbeba6
authored
May 24, 2006
by
Jeff Garzik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[netdrvr ibmlana, ibmveth] trim trailing whitespace
parent
860f242e
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
60 additions
and
60 deletions
+60
-60
drivers/net/ibmlana.c
drivers/net/ibmlana.c
+10
-10
drivers/net/ibmlana.h
drivers/net/ibmlana.h
+3
-3
drivers/net/ibmveth.c
drivers/net/ibmveth.c
+45
-45
drivers/net/ibmveth.h
drivers/net/ibmveth.h
+2
-2
No files found.
drivers/net/ibmlana.c
View file @
d7fbeba6
/*
/*
net-3-driver for the IBM LAN Adapter/A
This is an extension to the Linux operating system, and is covered by the
...
...
@@ -11,9 +11,9 @@ This driver is based both on the SK_MCA driver, which is itself based on the
SK_G16 and 3C523 driver.
paper sources:
'PC Hardware: Aufbau, Funktionsweise, Programmierung' by
'PC Hardware: Aufbau, Funktionsweise, Programmierung' by
Hans-Peter Messmer for the basic Microchannel stuff
'Linux Geraetetreiber' by Allesandro Rubini, Kalle Dalheimer
for help on Ethernet driver programming
...
...
@@ -27,14 +27,14 @@ paper sources:
special acknowledgements to:
- Bob Eager for helping me out with documentation from IBM
- Jim Shorney for his endless patience with me while I was using
- Jim Shorney for his endless patience with me while I was using
him as a beta tester to trace down the address filter bug ;-)
Missing things:
-> set debug level via ioctl instead of compile-time switches
-> I didn't follow the development of the 2.1.x kernels, so my
assumptions about which things changed with which kernel version
assumptions about which things changed with which kernel version
are probably nonsense
History:
...
...
@@ -275,7 +275,7 @@ static void InitDscrs(struct net_device *dev)
priv
->
rrastart
=
raddr
=
priv
->
txbufstart
+
(
TXBUFCNT
*
PKTSIZE
);
priv
->
rdastart
=
addr
=
priv
->
rrastart
+
(
priv
->
rxbufcnt
*
sizeof
(
rra_t
));
priv
->
rxbufstart
=
baddr
=
priv
->
rdastart
+
(
priv
->
rxbufcnt
*
sizeof
(
rda_t
));
for
(
z
=
0
;
z
<
priv
->
rxbufcnt
;
z
++
)
{
rra
.
startlo
=
baddr
;
rra
.
starthi
=
0
;
...
...
@@ -570,7 +570,7 @@ static void irqrx_handler(struct net_device *dev)
lrdaaddr
=
priv
->
rdastart
+
(
priv
->
lastrxdescr
*
sizeof
(
rda_t
));
memcpy_fromio
(
&
rda
,
priv
->
base
+
rdaaddr
,
sizeof
(
rda_t
));
/* iron out upper word halves of fields we use - SONIC will duplicate
/* iron out upper word halves of fields we use - SONIC will duplicate
bits 0..15 to 16..31 */
rda
.
status
&=
0xffff
;
...
...
@@ -836,9 +836,9 @@ static int ibmlana_tx(struct sk_buff *skb, struct net_device *dev)
baddr
=
priv
->
txbufstart
+
(
priv
->
nexttxdescr
*
PKTSIZE
);
memcpy_toio
(
priv
->
base
+
baddr
,
skb
->
data
,
skb
->
len
);
/* copy filler into RAM - in case we're filling up...
/* copy filler into RAM - in case we're filling up...
we're filling a bit more than necessary, but that doesn't harm
since the buffer is far larger...
since the buffer is far larger...
Sorry Linus for the filler string but I couldn't resist ;-) */
if
(
tmplen
>
skb
->
len
)
{
...
...
@@ -952,7 +952,7 @@ static int ibmlana_probe(struct net_device *dev)
priv
->
realirq
=
irq
;
priv
->
medium
=
medium
;
spin_lock_init
(
&
priv
->
lock
);
/* set base + irq for this device (irq not allocated so far) */
...
...
drivers/net/ibmlana.h
View file @
d7fbeba6
...
...
@@ -17,7 +17,7 @@
/* media enumeration - defined in a way that it fits onto the LAN/A's
POS registers... */
typedef
enum
{
typedef
enum
{
Media_10BaseT
,
Media_10Base5
,
Media_Unknown
,
Media_10Base2
,
Media_Count
}
ibmlana_medium
;
...
...
@@ -27,7 +27,7 @@ typedef enum {
typedef
struct
{
unsigned
int
slot
;
/* MCA-Slot-# */
struct
net_device_stats
stat
;
/* packet statistics */
int
realirq
;
/* memorizes actual IRQ, even when
int
realirq
;
/* memorizes actual IRQ, even when
currently not allocated */
ibmlana_medium
medium
;
/* physical cannector */
u32
tdastart
,
txbufstart
,
/* addresses */
...
...
@@ -41,7 +41,7 @@ typedef struct {
spinlock_t
lock
;
}
ibmlana_priv
;
/* this card uses quite a lot of I/O ports...luckily the MCA bus decodes
/* this card uses quite a lot of I/O ports...luckily the MCA bus decodes
a full 64K I/O range... */
#define IBM_LANA_IORANGE 0xa0
...
...
drivers/net/ibmveth.c
View file @
d7fbeba6
This diff is collapsed.
Click to expand it.
drivers/net/ibmveth.h
View file @
d7fbeba6
...
...
@@ -139,7 +139,7 @@ struct ibmveth_adapter {
spinlock_t
stats_lock
;
};
struct
ibmveth_buf_desc_fields
{
struct
ibmveth_buf_desc_fields
{
u32
valid
:
1
;
u32
toggle
:
1
;
u32
reserved
:
6
;
...
...
@@ -148,7 +148,7 @@ struct ibmveth_buf_desc_fields {
};
union
ibmveth_buf_desc
{
u64
desc
;
u64
desc
;
struct
ibmveth_buf_desc_fields
fields
;
};
...
...
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