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
62bd0774
Commit
62bd0774
authored
Oct 04, 2004
by
François Romieu
Committed by
Jeff Garzik
Oct 04, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] via-velocity: comment fixes
Comment fixes. Signed-off-by:
Tejun Heo
<
tj@home-tj.org
>
parent
204b3de7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
drivers/net/via-velocity.c
drivers/net/via-velocity.c
+3
-3
drivers/net/via-velocity.h
drivers/net/via-velocity.h
+3
-3
No files found.
drivers/net/via-velocity.c
View file @
62bd0774
...
@@ -464,7 +464,7 @@ static void velocity_init_cam_filter(struct velocity_info *vptr)
...
@@ -464,7 +464,7 @@ static void velocity_init_cam_filter(struct velocity_info *vptr)
{
{
struct
mac_regs
*
regs
=
vptr
->
mac_regs
;
struct
mac_regs
*
regs
=
vptr
->
mac_regs
;
/* T
urn on MCFG_PQEN, turn off MCFG_RTGOPT */
/* Turn on MCFG_PQEN, turn off MCFG_RTGOPT */
WORD_REG_BITS_SET
(
MCFG_PQEN
,
MCFG_RTGOPT
,
&
regs
->
MCFG
);
WORD_REG_BITS_SET
(
MCFG_PQEN
,
MCFG_RTGOPT
,
&
regs
->
MCFG
);
WORD_REG_BITS_ON
(
MCFG_VIDFR
,
&
regs
->
MCFG
);
WORD_REG_BITS_ON
(
MCFG_VIDFR
,
&
regs
->
MCFG
);
...
@@ -587,7 +587,7 @@ static void velocity_init_registers(struct velocity_info *vptr,
...
@@ -587,7 +587,7 @@ static void velocity_init_registers(struct velocity_info *vptr,
writeb
(
WOLCFG_SAM
|
WOLCFG_SAB
,
&
regs
->
WOLCFGSet
);
writeb
(
WOLCFG_SAM
|
WOLCFG_SAB
,
&
regs
->
WOLCFGSet
);
/*
/*
* B
b
ack off algorithm use original IEEE standard
* Back off algorithm use original IEEE standard
*/
*/
BYTE_REG_BITS_SET
(
CFGB_OFSET
,
(
CFGB_CRANDOM
|
CFGB_CAP
|
CFGB_MBA
|
CFGB_BAKOPT
),
&
regs
->
CFGB
);
BYTE_REG_BITS_SET
(
CFGB_OFSET
,
(
CFGB_CRANDOM
|
CFGB_CAP
|
CFGB_MBA
|
CFGB_BAKOPT
),
&
regs
->
CFGB
);
...
@@ -1091,7 +1091,7 @@ static int velocity_init_rd_ring(struct velocity_info *vptr)
...
@@ -1091,7 +1091,7 @@ static int velocity_init_rd_ring(struct velocity_info *vptr)
}
}
/**
/**
* velocity_free_rd_ring -
set up
receive ring
* velocity_free_rd_ring -
free
receive ring
* @vptr: velocity to clean up
* @vptr: velocity to clean up
*
*
* Free the receive buffers for each ring slot and any
* Free the receive buffers for each ring slot and any
...
...
drivers/net/via-velocity.h
View file @
62bd0774
...
@@ -1319,7 +1319,7 @@ static inline void mac_set_cam_mask(struct mac_regs * regs, u8 * mask, enum velo
...
@@ -1319,7 +1319,7 @@ static inline void mac_set_cam_mask(struct mac_regs * regs, u8 * mask, enum velo
/* disable CAMEN */
/* disable CAMEN */
writeb
(
0
,
&
regs
->
CAMADDR
);
writeb
(
0
,
&
regs
->
CAMADDR
);
/* Select
CAM mask
*/
/* Select
mar
*/
BYTE_REG_BITS_SET
(
CAMCR_PS_MAR
,
CAMCR_PS1
|
CAMCR_PS0
,
&
regs
->
CAMCR
);
BYTE_REG_BITS_SET
(
CAMCR_PS_MAR
,
CAMCR_PS1
|
CAMCR_PS0
,
&
regs
->
CAMCR
);
}
}
...
@@ -1360,7 +1360,7 @@ static inline void mac_set_cam(struct mac_regs * regs, int idx, u8 *addr, enum v
...
@@ -1360,7 +1360,7 @@ static inline void mac_set_cam(struct mac_regs * regs, int idx, u8 *addr, enum v
writeb
(
0
,
&
regs
->
CAMADDR
);
writeb
(
0
,
&
regs
->
CAMADDR
);
/* Select
CAM mask
*/
/* Select
mar
*/
BYTE_REG_BITS_SET
(
CAMCR_PS_MAR
,
CAMCR_PS1
|
CAMCR_PS0
,
&
regs
->
CAMCR
);
BYTE_REG_BITS_SET
(
CAMCR_PS_MAR
,
CAMCR_PS1
|
CAMCR_PS0
,
&
regs
->
CAMCR
);
}
}
...
@@ -1401,7 +1401,7 @@ static inline void mac_get_cam(struct mac_regs * regs, int idx, u8 *addr, enum v
...
@@ -1401,7 +1401,7 @@ static inline void mac_get_cam(struct mac_regs * regs, int idx, u8 *addr, enum v
writeb
(
0
,
&
regs
->
CAMADDR
);
writeb
(
0
,
&
regs
->
CAMADDR
);
/* Select
CAM mask
*/
/* Select
mar
*/
BYTE_REG_BITS_SET
(
CAMCR_PS_MAR
,
CAMCR_PS1
|
CAMCR_PS0
,
&
regs
->
CAMCR
);
BYTE_REG_BITS_SET
(
CAMCR_PS_MAR
,
CAMCR_PS1
|
CAMCR_PS0
,
&
regs
->
CAMCR
);
}
}
...
...
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