Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 225023
b: refs/heads/master
c: 85a5649
h: refs/heads/master
i:
  225021: aeca731
  225019: 1c2ff1b
  225015: 196ad90
  225007: e9a13a3
  224991: fb4e1ee
  224959: 3dd1b3e
  224895: c132dfd
  224767: 20004d2
v: v3
  • Loading branch information
Jon Mason authored and David S. Miller committed Dec 11, 2010
1 parent 81fb3f3 commit 9e9815e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 11410b62cf9bdaed5863696c7994286a900424c7
refs/heads/master: 85a564983aff948b9ea8b6e734b3e80b5755d12a
20 changes: 12 additions & 8 deletions trunk/drivers/net/s2io.c
Original file line number Diff line number Diff line change
Expand Up @@ -3598,10 +3598,12 @@ static int s2io_set_swapper(struct s2io_nic *sp)
val64 = readq(&bar0->pif_rd_swapper_fb);
if (val64 != 0x0123456789ABCDEFULL) {
int i = 0;
u64 value[] = { 0xC30000C3C30000C3ULL, /* FE=1, SE=1 */
0x8100008181000081ULL, /* FE=1, SE=0 */
0x4200004242000042ULL, /* FE=0, SE=1 */
0}; /* FE=0, SE=0 */
static const u64 value[] = {
0xC30000C3C30000C3ULL, /* FE=1, SE=1 */
0x8100008181000081ULL, /* FE=1, SE=0 */
0x4200004242000042ULL, /* FE=0, SE=1 */
0 /* FE=0, SE=0 */
};

while (i < 4) {
writeq(value[i], &bar0->swapper_ctrl);
Expand All @@ -3627,10 +3629,12 @@ static int s2io_set_swapper(struct s2io_nic *sp)

if (val64 != valt) {
int i = 0;
u64 value[] = { 0x00C3C30000C3C300ULL, /* FE=1, SE=1 */
0x0081810000818100ULL, /* FE=1, SE=0 */
0x0042420000424200ULL, /* FE=0, SE=1 */
0}; /* FE=0, SE=0 */
static const u64 value[] = {
0x00C3C30000C3C300ULL, /* FE=1, SE=1 */
0x0081810000818100ULL, /* FE=1, SE=0 */
0x0042420000424200ULL, /* FE=0, SE=1 */
0 /* FE=0, SE=0 */
};

while (i < 4) {
writeq((value[i] | valr), &bar0->swapper_ctrl);
Expand Down

0 comments on commit 9e9815e

Please sign in to comment.