aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/tg3.c
diff options
context:
space:
mode:
authorJesper Juhl <jesper.juhl@gmail.com>2005-10-28 16:53:13 -0400
committerJeff Garzik <jgarzik@pobox.com>2005-10-28 16:53:13 -0400
commitb4558ea93d66a43f7990d26f145fd4c54a01c9bf (patch)
tree70aa8ba4864f8ee994b7f5278f5045af6a646d34 /drivers/net/tg3.c
parent7380a78a973a8109c13cb0e47617c456b6f6e1f5 (diff)
drivers/net: Remove pointless checks for NULL prior to calling kfree()
Diffstat (limited to 'drivers/net/tg3.c')
-rw-r--r--drivers/net/tg3.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c
index 551c9449322d..b547233ad9f7 100644
--- a/drivers/net/tg3.c
+++ b/drivers/net/tg3.c
@@ -3918,10 +3918,8 @@ static void tg3_init_rings(struct tg3 *tp)
3918 */ 3918 */
3919static void tg3_free_consistent(struct tg3 *tp) 3919static void tg3_free_consistent(struct tg3 *tp)
3920{ 3920{
3921 if (tp->rx_std_buffers) { 3921 kfree(tp->rx_std_buffers);
3922 kfree(tp->rx_std_buffers); 3922 tp->rx_std_buffers = NULL;
3923 tp->rx_std_buffers = NULL;
3924 }
3925 if (tp->rx_std) { 3923 if (tp->rx_std) {
3926 pci_free_consistent(tp->pdev, TG3_RX_RING_BYTES, 3924 pci_free_consistent(tp->pdev, TG3_RX_RING_BYTES,
3927 tp->rx_std, tp->rx_std_mapping); 3925 tp->rx_std, tp->rx_std_mapping);
7601d22752aa7ce0c8197b10bdf'>cd28ab6a4e50
743d32ad3688
cd28ab6a4e50




14d0263fea06
cd28ab6a4e50

14d0263fea06
cd28ab6a4e50
14d0263fea06
13210ce5c06e
793b883ed12a



b19666d92009
cd28ab6a4e50
793b883ed12a
cd28ab6a4e50
cd28ab6a4e50



f4331a6d24f2


cb5d9547307f

cd28ab6a4e50
793b883ed12a

3be92a70237a
cd28ab6a4e50
793b883ed12a
cd28ab6a4e50


14d0263fea06
bdb5c58ebe43


fb2690a9bfa3



e6cac9badd45
e5b74c7ddd46

2d2a387199bf
2f4a66ad4909
508f89e75ab2
f1a0b6f56e01
e5b74c7ddd46











05745c4ab1c5
a3b4fcedee5c
e5b74c7ddd46
5a37a68dab77
05745c4ab1c5
e5b74c7ddd46




05745c4ab1c5
e5b74c7ddd46


f1a0b6f56e01

69161611025b
5a37a68dab77
ed4d41616baa

0ce8b98d5586
cd28ab6a4e50

793b883ed12a
cd28ab6a4e50




f4ea431bb7c4
cd28ab6a4e50
d1b139c03970

af043aa54fd4
ef743d335981
cd28ab6a4e50







af043aa54fd4




ef743d335981
af043aa54fd4

cd28ab6a4e50
ef743d335981
af043aa54fd4
ef743d335981
af043aa54fd4



cd28ab6a4e50

ef743d335981
cd28ab6a4e50


793b883ed12a
cd28ab6a4e50


af043aa54fd4




ef743d335981



af043aa54fd4
cd28ab6a4e50

af043aa54fd4
ef743d335981
af043aa54fd4


ef743d335981

af043aa54fd4
ef743d335981

af043aa54fd4
ef743d335981
cd28ab6a4e50

5afa0a9cfb79
ae306cca3ada




5afa0a9cfb79
ae306cca3ada

d3bcfbeb27a5
ae306cca3ada







977bdf06ca8d
ea76e63598eb
fc99fe0618f3
5afa0a9cfb79
b32f40c4853c
b23457737f07
b32f40c4853c
fc99fe0618f3

b32f40c4853c
fc99fe0618f3
b32f40c4853c
fc99fe0618f3

b32f40c4853c
fc99fe0618f3
b32f40c4853c
8f70920f2f2a




b23457737f07

5afa0a9cfb79
ae306cca3ada
5afa0a9cfb79
ae306cca3ada















5afa0a9cfb79

d3bcfbeb27a5
cd28ab6a4e50




793b883ed12a
cd28ab6a4e50









16ad91e1c686









df3fe1f318b2
16ad91e1c686

df3fe1f318b2
16ad91e1c686










cd28ab6a4e50


2eaba1a280b6
cd28ab6a4e50
ea76e63598eb

cd28ab6a4e50


793b883ed12a
cd28ab6a4e50

53419c68517e
cd28ab6a4e50
53419c68517e
cd28ab6a4e50

53419c68517e

cd28ab6a4e50




b89165f2b75b
05745c4ab1c5
cd28ab6a4e50

6d3105d5388c









cd28ab6a4e50






53419c68517e
937454942882
ea76e63598eb
53419c68517e
cd28ab6a4e50



cd28ab6a4e50




b89165f2b75b
cd28ab6a4e50
b89165f2b75b


ea76e63598eb
b89165f2b75b
cd28ab6a4e50
b89165f2b75b







cd28ab6a4e50

b89165f2b75b



34dd962b748b
cd28ab6a4e50
b89165f2b75b

cd28ab6a4e50

7800fddcd05a
cd28ab6a4e50

2eaba1a280b6
cd28ab6a4e50

b89165f2b75b
cd28ab6a4e50











709c6e7bb074
16ad91e1c686
b89165f2b75b




cd28ab6a4e50
16ad91e1c686
709c6e7bb074
cd28ab6a4e50






2eaba1a280b6

cd28ab6a4e50



2eaba1a280b6
cd28ab6a4e50


2eaba1a280b6
cd28ab6a4e50


2eaba1a280b6


16ad91e1c686

2eaba1a280b6
2eaba1a280b6
16ad91e1c686
2eaba1a280b6

16ad91e1c686
2eaba1a280b6


cd28ab6a4e50

2eaba1a280b6

05745c4ab1c5
cd28ab6a4e50






















05745c4ab1c5
















cd28ab6a4e50
793b883ed12a
cd28ab6a4e50




ed6d32c7a927




cd28ab6a4e50


793b883ed12a





cd28ab6a4e50

793b883ed12a
cd28ab6a4e50
937454942882
ed6d32c7a927
937454942882
ed4d41616baa
ed6d32c7a927

















cd28ab6a4e50



a84d0a3d6909
cd28ab6a4e50
a84d0a3d6909
cd28ab6a4e50

0ce8b98d5586
977bdf06ca8d
ed6d32c7a927

977bdf06ca8d
ed6d32c7a927

cd28ab6a4e50
0ce8b98d5586




977bdf06ca8d

9467a8fc8984
05745c4ab1c5




e1a74b375ca0

05745c4ab1c5
977bdf06ca8d
cd28ab6a4e50
977bdf06ca8d

a84d0a3d6909
977bdf06ca8d
cd28ab6a4e50
977bdf06ca8d



2eaba1a280b6
d571b694df3e
cd28ab6a4e50





b96936da7a89



d3bcfbeb27a5

d3bcfbeb27a5
82637e808478
b32f40c4853c
b96936da7a89
d3bcfbeb27a5
b96936da7a89
ff35164e7264

b32f40c4853c
82637e808478

f71eb1a24a8c




b96936da7a89
167f53d05fcc
b96936da7a89


db99b98885e7


























e484d5f5c8c6

db99b98885e7
e484d5f5c8c6
db99b98885e7


e484d5f5c8c6


db99b98885e7




b96936da7a89


db99b98885e7
b96936da7a89

d3bcfbeb27a5

1b537565a85c


e07b1aa8b3eb
1b537565a85c
e07b1aa8b3eb
1b537565a85c

e3173832d7be























b96936da7a89




e3173832d7be





























b32f40c4853c
e3173832d7be
b32f40c4853c
e3173832d7be





69161611025b

05745c4ab1c5

ed4d41616baa





05745c4ab1c5
ed4d41616baa


69161611025b
ed4d41616baa









69161611025b
ed4d41616baa




69161611025b


cd28ab6a4e50



25cccecce8e2
cd28ab6a4e50


f350339cbd0e

cd28ab6a4e50


793b883ed12a
cd28ab6a4e50










793b883ed12a
cd28ab6a4e50
2eaba1a280b6


e07b1aa8b3eb
b96936da7a89
cd28ab6a4e50
e07b1aa8b3eb
cd28ab6a4e50




43f2f10444c0

cd28ab6a4e50






793b883ed12a
cd28ab6a4e50












6b1a3aefd897
cd28ab6a4e50
6b1a3aefd897
cd28ab6a4e50



cd28ab6a4e50


793b883ed12a



cd28ab6a4e50





25cccecce8e2
05745c4ab1c5

25cccecce8e2
69161611025b
25cccecce8e2
cd28ab6a4e50
798fdd07fcc1






cd28ab6a4e50
8df9a87604e3
05745c4ab1c5





cd28ab6a4e50



5a5b1ea02657
e0c281163d63
39dbd9587beb
8df9a87604e3
5a5b1ea02657
b628ed986d68
69161611025b
5a5b1ea02657

e970d1f81065






cd28ab6a4e50

6771290102c4

cd28ab6a4e50
6771290102c4





793b883ed12a
cd28ab6a4e50






1c28f6ba600d
793b883ed12a
1c28f6ba600d





793b883ed12a
1c28f6ba600d


cd28ab6a4e50







793b883ed12a
cd28ab6a4e50

cd28ab6a4e50
af4ed7e6ba0c
cd28ab6a4e50



af4ed7e6ba0c
cd28ab6a4e50

cd28ab6a4e50


8cc048e338ad
cd28ab6a4e50

cd28ab6a4e50





793b883ed12a

cd28ab6a4e50

793b883ed12a



cb5d9547307f
291ea6142b94
793b883ed12a

cd28ab6a4e50
88f5f0cad396










88f5f0cad396

291ea6142b94





290d4de5b71f

cd28ab6a4e50
50432cb534b5
762c2de2e61e
50432cb534b5



cd28ab6a4e50

793b883ed12a
cd28ab6a4e50


cb5d9547307f
291ea6142b94
cd28ab6a4e50


14d0263fea06


cd28ab6a4e50


86c6887e6fea
cd28ab6a4e50
86c6887e6fea
cd28ab6a4e50

793b883ed12a
cd28ab6a4e50
734d18684695

14d0263fea06
cd28ab6a4e50

14d0263fea06












454e6cb6868d
14d0263fea06





454e6cb6868d


14d0263fea06







454e6cb6868d
14d0263fea06














793b883ed12a
cd28ab6a4e50



793b883ed12a
cd28ab6a4e50
ea76e63598eb
793b883ed12a
ea76e63598eb


cd28ab6a4e50
ea76e63598eb


cd28ab6a4e50

6b1a3aefd897






























50432cb534b5
6b1a3aefd897
793b883ed12a
d571b694df3e
cd28ab6a4e50




793b883ed12a
291ea6142b94
cd28ab6a4e50

14d0263fea06
cd28ab6a4e50





ef743d335981










d89e13439592
ef743d335981





91c86df5a8a4
e07b1aa8b3eb
ef743d335981
e07b1aa8b3eb
91c86df5a8a4
ef743d335981







e07b1aa8b3eb
ef743d335981

e07b1aa8b3eb
ef743d335981




d1f1370863f7
d494eacde885
d1f1370863f7
d494eacde885
3d4e66f5cd21









d494eacde885












d1f1370863f7
d1d08d126581
bea3348eef27
2bb8c26242c2
d1f1370863f7


cd28ab6a4e50
14d0263fea06

82788c7a47e5
14d0263fea06
82788c7a47e5

14d0263fea06
82788c7a47e5
39dbd9587beb
f03b865491c2


















14d0263fea06






82788c7a47e5


14d0263fea06



82788c7a47e5

55c9dd35d329




82788c7a47e5
cd28ab6a4e50
14d0263fea06





cd28ab6a4e50
6b1a3aefd897
cd28ab6a4e50
6b1a3aefd897
14d0263fea06
6b1a3aefd897
5f06eba4dce3
cd28ab6a4e50
6b1a3aefd897
af4ed7e6ba0c
977bdf06ca8d
c3905bc4b71a





8df9a87604e3
c3905bc4b71a

f449c7c10698
977bdf06ca8d
6b1a3aefd897

ea76e63598eb

14d0263fea06

f957da2aa0b7
14d0263fea06



5f06eba4dce3
14d0263fea06

5f06eba4dce3

14d0263fea06
5f06eba4dce3




14d0263fea06
14d0263fea06


793b883ed12a
14d0263fea06
cd28ab6a4e50
14d0263fea06
cd28ab6a4e50


454e6cb6868d





14d0263fea06
cd28ab6a4e50

a1433ac4ab46





a1433ac4ab46






6b1a3aefd897
55c9dd35d329
cd28ab6a4e50











e0c281163d63
ee7abb04df92
843a46f423a5
cd28ab6a4e50
ee7abb04df92


843a46f423a5
ee7abb04df92

ee7abb04df92

b32f40c4853c
ee7abb04df92
b32f40c4853c

ee7abb04df92
843a46f423a5
55d7b4e6ed6a

cd28ab6a4e50

793b883ed12a

cd28ab6a4e50



6cdbbdf3055f
cd28ab6a4e50


88f5f0cad396

cd28ab6a4e50






291ea6142b94
cd28ab6a4e50





e0c281163d63


6771290102c4
cd28ab6a4e50
39dbd9587beb
e0c281163d63
6771290102c4



cd28ab6a4e50
6771290102c4






793b883ed12a
af4ed7e6ba0c
5a5b1ea02657
69161611025b



977bdf06ca8d
c2716fb407eb

b628ed986d68
5a5b1ea02657
6b1a3aefd897

cd28ab6a4e50
d494eacde885



6b1a3aefd897
6de16237c78a
cd28ab6a4e50

cd28ab6a4e50
e07b1aa8b3eb
f4ea431bb7c4
e07b1aa8b3eb

a7bffe722c99
a11da890e4c9


cd28ab6a4e50


1b537565a85c
cd28ab6a4e50

1b537565a85c


cd28ab6a4e50


1b537565a85c



cd28ab6a4e50
1b537565a85c

cd28ab6a4e50


793b883ed12a


cb5d9547307f
793b883ed12a
cd28ab6a4e50
793b883ed12a

cd28ab6a4e50
793b883ed12a
cd28ab6a4e50

793b883ed12a
28bd181a8e4a
cd28ab6a4e50
793b883ed12a




89114afd435a
793b883ed12a

84fa7933a33f
793b883ed12a


cd28ab6a4e50

793b883ed12a





cd28ab6a4e50



d1f1370863f7
6cdbbdf3055f
454e6cb6868d
cd28ab6a4e50
cd28ab6a4e50


2bb8c26242c2

cd28ab6a4e50
cd28ab6a4e50

793b883ed12a
454e6cb6868d







86c6887e6fea

793b883ed12a
86c6887e6fea
793b883ed12a
793b883ed12a
cd28ab6a4e50

7967168cefdb
793b883ed12a
ea76e63598eb

69161611025b




ea76e63598eb

69161611025b


e07560cd4f76

cd28ab6a4e50

cd28ab6a4e50
d1f1370863f7




f65b138ca943
d1f1370863f7
d1f1370863f7







84fa7933a33f
69161611025b
ea76e63598eb
69161611025b




















1d179332f891
cd28ab6a4e50


f65b138ca943
cd28ab6a4e50

793b883ed12a
cd28ab6a4e50
291ea6142b94
cd28ab6a4e50
6cdbbdf3055f
291ea6142b94
cd28ab6a4e50

291ea6142b94
cd28ab6a4e50


86c6887e6fea
454e6cb6868d


86c6887e6fea
793b883ed12a
86c6887e6fea
793b883ed12a

cd28ab6a4e50


f65b138ca943
cd28ab6a4e50

793b883ed12a
cd28ab6a4e50
291ea6142b94



cd28ab6a4e50
6cdbbdf3055f
cd28ab6a4e50

97bda706b475

b19666d92009
290d4de5b71f
cd28ab6a4e50
cd28ab6a4e50

454e6cb6868d



























cd28ab6a4e50

cd28ab6a4e50
793b883ed12a


291ea6142b94
cd28ab6a4e50
d11c13e752c4
cd28ab6a4e50
d11c13e752c4
af2a58acb12f
291ea6142b94
cd28ab6a4e50
0e3ff6aab1ff
2224795d7e4c
291ea6142b94











af2a58acb12f
291ea6142b94


734d18684695
291ea6142b94






3cf267539f1f
7138a0f591b0

2bf56fe25cef
794b2bd20f62
3cf267539f1f
cd28ab6a4e50
793b883ed12a
793b883ed12a
291ea6142b94
50432cb534b5

22e1170310ec
cd28ab6a4e50
cd28ab6a4e50


2bb8c26242c2
cd28ab6a4e50
2bb8c26242c2


d11c13e752c4
2bb8c26242c2
cd28ab6a4e50








e07b1aa8b3eb
cd28ab6a4e50
1b537565a85c



cd28ab6a4e50


ebc646f681a6




6de16237c78a

d3bcfbeb27a5
793b883ed12a
cd28ab6a4e50




793b883ed12a
cd28ab6a4e50

793b883ed12a
cd28ab6a4e50

6de16237c78a


cd28ab6a4e50


793b883ed12a

cd28ab6a4e50










793b883ed12a

cd28ab6a4e50






6b1a3aefd897
cd28ab6a4e50



b96936da7a89
d3bcfbeb27a5
d571b694df3e
cd28ab6a4e50

2bb8c26242c2
cd28ab6a4e50










1b537565a85c





cd28ab6a4e50




ea76e63598eb
793b883ed12a

05745c4ab1c5





cd28ab6a4e50















16ad91e1c686





cd28ab6a4e50
cd28ab6a4e50
2eaba1a280b6
cd28ab6a4e50

cd28ab6a4e50



cd28ab6a4e50
75e806838a33
32c2c3008532
cd28ab6a4e50
793b883ed12a
cd28ab6a4e50



d571b694df3e
cd28ab6a4e50

16ad91e1c686
cd28ab6a4e50












cd28ab6a4e50
cd28ab6a4e50
cd28ab6a4e50





2eaba1a280b6
cd28ab6a4e50


16ad91e1c686







793b883ed12a



da4c1ff475d8
793b883ed12a
da4c1ff475d8
793b883ed12a
793b883ed12a




793b883ed12a





793b883ed12a
7c74ac1c2364
793b883ed12a
da4c1ff475d8


ea76e63598eb
da4c1ff475d8












793b883ed12a
da4c1ff475d8









793b883ed12a
16ad91e1c686
937454942882
16ad91e1c686
2eaba1a280b6
da4c1ff475d8
793b883ed12a





cd28ab6a4e50
e07b1aa8b3eb

cd28ab6a4e50
e07b1aa8b3eb

cd28ab6a4e50

ebc646f681a6


e07b1aa8b3eb



cd28ab6a4e50



2eaba1a280b6
793b883ed12a



cd28ab6a4e50
793b883ed12a

cd28ab6a4e50
793b883ed12a


cd28ab6a4e50
793b883ed12a

cd28ab6a4e50
793b883ed12a

cd28ab6a4e50
793b883ed12a
e07b1aa8b3eb
cd28ab6a4e50

62335ab013d9
302d12522a36

cd28ab6a4e50


8cc048e338ad
cd28ab6a4e50



8f24664da64f
62335ab013d9


8f24664da64f
819067916d78

cd28ab6a4e50



6b1a3aefd897

b628ed986d68
6b1a3aefd897

e07b1aa8b3eb
cd28ab6a4e50



05745c4ab1c5


d2adf4f65a70

6b1a3aefd897




e07b1aa8b3eb
6b1a3aefd897

018d1c667ef4

bea3348eef27
018d1c667ef4
e07b1aa8b3eb

39dbd9587beb
69161611025b
b628ed986d68


6b1a3aefd897

cd28ab6a4e50

14d0263fea06
6b1a3aefd897





b628ed986d68
cd28ab6a4e50
b628ed986d68
cd28ab6a4e50
6b1a3aefd897
e07b1aa8b3eb
018d1c667ef4
d1d08d126581
bea3348eef27

1b537565a85c


b628ed986d68
1b537565a85c
1b537565a85c


cd28ab6a4e50


14d0263fea06











d626f62b11e0
14d0263fea06




489b10c1f63f
14d0263fea06












































14d0263fea06









454e6cb6868d




14d0263fea06



489b10c1f63f
14d0263fea06


cd28ab6a4e50

d571b694df3e
cd28ab6a4e50
497d7c8681de
cd28ab6a4e50

497d7c8681de
291ea6142b94
79e57d32fe6d
d6532232cd3d






cd28ab6a4e50


497d7c8681de
cd28ab6a4e50
793b883ed12a
d70cd51ac058
cd28ab6a4e50
3b12e0141f7a








42eeea0145a1
cd28ab6a4e50

42eeea0145a1


d6532232cd3d

3b12e0141f7a
71749531f2d1
3b12e0141f7a
14d0263fea06



793b883ed12a
14d0263fea06
79e57d32fe6d
cd28ab6a4e50

3b12e0141f7a
71749531f2d1

7138a0f591b0
d6532232cd3d
3b12e0141f7a

d6532232cd3d
71749531f2d1
cd28ab6a4e50
7138a0f591b0
b6d7773462df
7138a0f591b0
b6d7773462df

6e15b7124990
3be92a70237a
cd28ab6a4e50
497d7c8681de
793b883ed12a

7138a0f591b0
cd28ab6a4e50
7138a0f591b0
cd28ab6a4e50
7138a0f591b0
79e57d32fe6d
793b883ed12a
cd28ab6a4e50

e07b1aa8b3eb

13b97b74b964
e07b1aa8b3eb
302d12522a36
e07b1aa8b3eb
2bb8c26242c2
e07b1aa8b3eb
2bb8c26242c2
2224795d7e4c
cd28ab6a4e50

e07b1aa8b3eb
266918303226
cd28ab6a4e50
e07b1aa8b3eb
55c9dd35d329
a8fd6266dafd
af2a58acb12f
266918303226
55c9dd35d329
13210ce5c06e
ab5adecb2d02
13210ce5c06e
cd28ab6a4e50
cd28ab6a4e50

ab5adecb2d02



cd28ab6a4e50
cb5d9547307f
bea86103313f
ab5adecb2d02
69161611025b
13210ce5c06e
f65b138ca943

cd28ab6a4e50
ab5adecb2d02

cd28ab6a4e50
55c9dd35d329
497d7c8681de
3225b919036a
7138a0f591b0
55c9dd35d329
3225b919036a
13210ce5c06e
69161611025b
05745c4ab1c5
69161611025b







13210ce5c06e
7138a0f591b0

13210ce5c06e

d1f1370863f7






cd28ab6a4e50
13210ce5c06e
22e1170310ec
13210ce5c06e

cd28ab6a4e50

d1f1370863f7








cd28ab6a4e50
874183072de7


05745c4ab1c5





69161611025b
05745c4ab1c5
69161611025b
874183072de7














69161611025b
874183072de7

cd28ab6a4e50


13b97b74b964
f55925d7eb04

e07b1aa8b3eb



cd28ab6a4e50

cd28ab6a4e50

793b883ed12a
ab5adecb2d02
cd28ab6a4e50
266918303226
cd28ab6a4e50
fe2a24dfc577


13210ce5c06e
55c9dd35d329

22e1170310ec
55c9dd35d329

22e1170310ec
e07b1aa8b3eb
cd28ab6a4e50





3be92a70237a


cd28ab6a4e50

3be92a70237a


cd28ab6a4e50




3be92a70237a


cd28ab6a4e50




3be92a70237a

cd28ab6a4e50



3be92a70237a

cd28ab6a4e50



3be92a70237a


cd28ab6a4e50





555382cbfc6d
cd28ab6a4e50
555382cbfc6d


cd28ab6a4e50
793b883ed12a
cd28ab6a4e50
cd28ab6a4e50

793b883ed12a

82637e808478
b32f40c4853c
3be92a70237a
555382cbfc6d
b02a92586dca
cd28ab6a4e50
b32f40c4853c
167f53d05fcc
82637e808478
cd28ab6a4e50


d571b694df3e
555382cbfc6d
cd28ab6a4e50
82637e808478
7782c8c4d764


3be92a70237a
555382cbfc6d
cf06ffb4df53
7782c8c4d764
82637e808478
cd28ab6a4e50


















a3caeada9485





cd28ab6a4e50
7138a0f591b0
cd28ab6a4e50



7138a0f591b0
cd28ab6a4e50

cd28ab6a4e50

40b01727a5a6


d257924e85a8


40b01727a5a6


d257924e85a8
40b01727a5a6



d257924e85a8
40b01727a5a6
d257924e85a8
cd28ab6a4e50
75e806838a33































32c2c3008532
d27ed38765d6
01bd75645f94
d27ed38765d6
75e806838a33
32c2c3008532
bea3348eef27
75e806838a33



bea3348eef27
75e806838a33




39dbd9587beb
75e806838a33









32c2c3008532
01bd75645f94
75e806838a33
d27ed38765d6

40b01727a5a6

cd28ab6a4e50
40b01727a5a6

cd28ab6a4e50
1e5f1283a2ae

d257924e85a8
1e5f1283a2ae

cd28ab6a4e50
1e5f1283a2ae

cd28ab6a4e50
1e5f1283a2ae
40b01727a5a6
d257924e85a8
1e5f1283a2ae
40b01727a5a6
d257924e85a8
1e5f1283a2ae
40b01727a5a6
d257924e85a8
1e5f1283a2ae
40b01727a5a6


bea3348eef27
40b01727a5a6
bea3348eef27
40b01727a5a6
6f5357631653
266918303226
40b01727a5a6








cd28ab6a4e50
266918303226

6f5357631653

266918303226

6f5357631653
266918303226


6f5357631653
bea3348eef27
e07b1aa8b3eb

7d12e780e003
e07b1aa8b3eb

e07b1aa8b3eb





793b883ed12a
e07b1aa8b3eb
bea3348eef27

793b883ed12a
cd28ab6a4e50







bea3348eef27
cd28ab6a4e50



05745c4ab1c5
cd28ab6a4e50
793b883ed12a
cd28ab6a4e50
5a5b1ea02657
937454942882
ed4d41616baa
0ce8b98d5586
05745c4ab1c5

cd28ab6a4e50
05745c4ab1c5









cd28ab6a4e50


fb17358fe31e
cd28ab6a4e50
fb17358fe31e
cd28ab6a4e50

fb17358fe31e
cd28ab6a4e50
fb17358fe31e
cd28ab6a4e50

fb17358fe31e
e3173832d7be
cd28ab6a4e50
b89165f2b75b
cd28ab6a4e50
167f53d05fcc
b32f40c4853c
451af3355228
cd28ab6a4e50
08c06d8a9063
cd28ab6a4e50
ea76e63598eb



39dbd9587beb
ea76e63598eb
























39dbd9587beb
ea76e63598eb


ea76e63598eb

05745c4ab1c5





ed4d41616baa








0ce8b98d5586




ea76e63598eb
b02a92586dca

cd28ab6a4e50


ea76e63598eb


290d4de5b71f
e3173832d7be











555382cbfc6d
e3173832d7be
555382cbfc6d

e3173832d7be
cd28ab6a4e50
4f44d8ba0928







cd28ab6a4e50




ac93a3946b67


cd28ab6a4e50
b32f40c4853c
167f53d05fcc
b32f40c4853c
cd28ab6a4e50


555382cbfc6d

7782c8c4d764

555382cbfc6d



7782c8c4d764
555382cbfc6d

cd28ab6a4e50
ae306cca3ada
82637e808478
cd28ab6a4e50



69161611025b
ed4d41616baa

69161611025b


cd28ab6a4e50

793b883ed12a

cd28ab6a4e50



793b883ed12a
cd28ab6a4e50

69634ee7366d

cd28ab6a4e50


793b883ed12a
cd28ab6a4e50






793b883ed12a
cd28ab6a4e50














555382cbfc6d
cd28ab6a4e50
cd28ab6a4e50
d3bcfbeb27a5
cd28ab6a4e50
cd28ab6a4e50






793b883ed12a
cd28ab6a4e50

793b883ed12a
cd28ab6a4e50
290d4de5b71f

cd28ab6a4e50
290d4de5b71f




cd28ab6a4e50
290d4de5b71f
77b3d6a2d56b

cd28ab6a4e50
793b883ed12a
cd28ab6a4e50




e3173832d7be

819067916d78





819067916d78
819067916d78





8cfcbe998aa0

819067916d78

6de16237c78a
819067916d78












819067916d78


e3173832d7be
















cd28ab6a4e50
9d731d77c979

e3173832d7be



05745c4ab1c5


e3173832d7be


9d731d77c979

e3173832d7be

cd28ab6a4e50


28bd181a8e4a
cd28ab6a4e50
b89165f2b75b





cd28ab6a4e50
ea76e63598eb
cd28ab6a4e50
b89165f2b75b

cd28ab6a4e50
b89165f2b75b



cd28ab6a4e50

793b883ed12a
cd28ab6a4e50






b89165f2b75b
cd28ab6a4e50
b89165f2b75b


cd28ab6a4e50
b89165f2b75b
cd28ab6a4e50


cd28ab6a4e50
















793b883ed12a
cd28ab6a4e50






































d1b139c03970
1b537565a85c
d1b139c03970

cd28ab6a4e50















793b883ed12a

cd28ab6a4e50










eadfa7ddca98
cd28ab6a4e50

eadfa7ddca98
cd28ab6a4e50
eadfa7ddca98
d26045404c89
cd28ab6a4e50
eadfa7ddca98






cd28ab6a4e50
eadfa7ddca98

cd28ab6a4e50
eadfa7ddca98








cd28ab6a4e50

cd28ab6a4e50











793b883ed12a
cd28ab6a4e50











9a7ae0a97826


9a7ae0a97826
16ad91e1c686
9a7ae0a97826

1b537565a85c
d1b139c03970
9a7ae0a97826



793b883ed12a
cd28ab6a4e50





793b883ed12a
cd28ab6a4e50
793b883ed12a
cd28ab6a4e50
793b883ed12a
cd28ab6a4e50


cd28ab6a4e50





b9f2c0440d80
cd28ab6a4e50
b9f2c0440d80





cd28ab6a4e50


793b883ed12a
cd28ab6a4e50


793b883ed12a
cd28ab6a4e50

793b883ed12a
cd28ab6a4e50











cd28ab6a4e50


a8ab1ec0c3ef


cd28ab6a4e50



cd28ab6a4e50
a8ab1ec0c3ef
cd28ab6a4e50
a8ab1ec0c3ef
cd28ab6a4e50
1b537565a85c
a8ab1ec0c3ef




1b537565a85c

cd28ab6a4e50

a052b52f4b6b







cd28ab6a4e50







a052b52f4b6b

cd28ab6a4e50
a052b52f4b6b
cd28ab6a4e50




d571b694df3e
cd28ab6a4e50
a052b52f4b6b
cd28ab6a4e50
a052b52f4b6b
cd28ab6a4e50




a052b52f4b6b




cd28ab6a4e50

cd28ab6a4e50
793b883ed12a
cd28ab6a4e50
793b883ed12a
cd28ab6a4e50
793b883ed12a
cd28ab6a4e50
793b883ed12a
cd28ab6a4e50






a84d0a3d6909
cd28ab6a4e50
a84d0a3d6909

793b883ed12a
a84d0a3d6909




793b883ed12a

793b883ed12a
a84d0a3d6909




























793b883ed12a
a84d0a3d6909

7d2e3cb7000b
a84d0a3d6909







cd28ab6a4e50





a84d0a3d6909
cd28ab6a4e50
a84d0a3d6909

cd28ab6a4e50
a84d0a3d6909






793b883ed12a
a84d0a3d6909
cd28ab6a4e50








16ad91e1c686













cd28ab6a4e50






cd28ab6a4e50

16ad91e1c686
cd28ab6a4e50
16ad91e1c686

cd28ab6a4e50
2eaba1a280b6
cd28ab6a4e50

fb17358fe31e







































77b3d6a2d56b
fb17358fe31e
77b3d6a2d56b


fb17358fe31e

ff81fbbe321c
fb17358fe31e
ff81fbbe321c
fb17358fe31e
ff81fbbe321c
fb17358fe31e






















d28d4870279c
fb17358fe31e






793b883ed12a

































1b537565a85c
793b883ed12a
1b537565a85c


793b883ed12a



793b883ed12a

6e4cbb34d4ca
793b883ed12a



3ead5db7bcd3
793b883ed12a




793b883ed12a
295b54c4902c
793b883ed12a

793b883ed12a
295b54c4902c











3ead5db7bcd3
295b54c4902c




































3ead5db7bcd3
295b54c4902c


793b883ed12a
cd28ab6a4e50
b628ed986d68







69161611025b
b628ed986d68


















f4331a6d24f2


b32f40c4853c
f4331a6d24f2

b32f40c4853c
f4331a6d24f2


1413235c1430
f4331a6d24f2
1413235c1430
f4331a6d24f2
1413235c1430







167f53d05fcc
1413235c1430

167f53d05fcc
1413235c1430





















f4331a6d24f2

1413235c1430

f4331a6d24f2
1413235c1430













f4331a6d24f2






f4331a6d24f2





1413235c1430
f4331a6d24f2






f4331a6d24f2






1413235c1430


f4331a6d24f2
1413235c1430
f4331a6d24f2


7282d491ecae
f4331a6d24f2













f4331a6d24f2
f4331a6d24f2
f4331a6d24f2







cd28ab6a4e50

f4331a6d24f2
b9f2c0440d80
cd28ab6a4e50


3cf267539f1f



e4c2abe29e1e















































































3cf267539f1f



bea3348eef27
3cf267539f1f



e4c2abe29e1e
3cf267539f1f
e4c2abe29e1e
3cf267539f1f



e4c2abe29e1e




bea3348eef27
3cf267539f1f




































































d1d08d126581
bea3348eef27
3cf267539f1f























5b296bc9e1e5
3cf267539f1f
1436b301ec2b
5b296bc9e1e5
3cf267539f1f
5b296bc9e1e5






3cf267539f1f
5b296bc9e1e5





3cf267539f1f
5b296bc9e1e5







3cf267539f1f



































1436b301ec2b





008298231abb
1436b301ec2b















008298231abb
1436b301ec2b










3cf267539f1f
cd28ab6a4e50

e3173832d7be
be63a21c9573
cd28ab6a4e50




898eb71cb176
cd28ab6a4e50


cd28ab6a4e50
ef743d335981
cd28ab6a4e50
cd28ab6a4e50
1436b301ec2b
cd28ab6a4e50





cd28ab6a4e50

16ad91e1c686

cd28ab6a4e50


8b31cfbcd1b5
be63a21c9573
75d070c56fa7
e07b1aa8b3eb
793b883ed12a
290d4de5b71f
cd28ab6a4e50




4a50a876ac32
cd28ab6a4e50

cd28ab6a4e50
d1f1370863f7
d6c9bc1ed430



d6c9bc1ed430
d1f1370863f7

cd28ab6a4e50
793b883ed12a
2995bfb7855a
cd28ab6a4e50
cd28ab6a4e50


28bd181a8e4a
cd28ab6a4e50



e174961ca1a0

cd28ab6a4e50

fb2690a9bfa3
7d12e780e003
fb2690a9bfa3







ea76e63598eb
fb2690a9bfa3













bb507fe11ffd

fb2690a9bfa3

b0a20ded562c
fb2690a9bfa3
b02a92586dca
fb2690a9bfa3


fb2690a9bfa3
bb507fe11ffd
fb2690a9bfa3
ea76e63598eb
fb2690a9bfa3
ea76e63598eb
fb2690a9bfa3
b02a92586dca

fb2690a9bfa3





2bffc23a01a4
fb2690a9bfa3





c7127a347be8










0ce8b98d5586
c7127a347be8

0ce8b98d5586
c7127a347be8





cd28ab6a4e50


7f60c64bd0e7
cd28ab6a4e50
be63a21c9573
3834507d0c54
c7127a347be8
cd28ab6a4e50
793b883ed12a

b02a92586dca
cd28ab6a4e50


793b883ed12a

b02a92586dca
44a1d2e5c5c9
cd28ab6a4e50



d1f3d4ddddc3
6a35528a8346
d1f3d4ddddc3
6a35528a8346
d1f3d4ddddc3
b02a92586dca

d1f3d4ddddc3

d1f3d4ddddc3
284901a90a9e
cd28ab6a4e50
b02a92586dca
cd28ab6a4e50


d1f3d4ddddc3
3834507d0c54



























9d731d77c979
be63a21c9573
cd28ab6a4e50
6aad85d6730d
cd28ab6a4e50
b02a92586dca
cd28ab6a4e50


cd28ab6a4e50
cd28ab6a4e50


b02a92586dca
cd28ab6a4e50


08c06d8a9063
167f53d05fcc
08c06d8a9063


e3173832d7be
cd28ab6a4e50
793b883ed12a
cd28ab6a4e50
c844d483004d

cd28ab6a4e50
e3173832d7be

be63a21c9573
7f60c64bd0e7

cd28ab6a4e50
7f60c64bd0e7
cd28ab6a4e50
9fa1b1f33c4c







793b883ed12a

b02a92586dca
cd28ab6a4e50


6de16237c78a

ea76e63598eb

b0a20ded562c
9fa1b1f33c4c
b02a92586dca
9fa1b1f33c4c


6de16237c78a
9fa1b1f33c4c
cd28ab6a4e50

7f60c64bd0e7


be63a21c9573
b02a92586dca




cd28ab6a4e50

b02a92586dca

cd28ab6a4e50

32c2c3008532
819067916d78

793b883ed12a

cd28ab6a4e50

793b883ed12a
ea76e63598eb
b0a20ded562c
793b883ed12a
cd28ab6a4e50

cd28ab6a4e50
793b883ed12a
167f53d05fcc
cd28ab6a4e50





44a1d2e5c5c9
cd28ab6a4e50
cd28ab6a4e50
549a68c3fe2c
cd28ab6a4e50




793b883ed12a
6de16237c78a
cd28ab6a4e50
793b883ed12a
cd28ab6a4e50

32c2c3008532
6de16237c78a
d27ed38765d6
b877fe288a32
6de16237c78a
819067916d78
d27ed38765d6
cd28ab6a4e50
ae306cca3ada

cd28ab6a4e50
793b883ed12a
5afa0a9cfb79
cd28ab6a4e50

ea76e63598eb
b0a20ded562c
793b883ed12a
cd28ab6a4e50

793b883ed12a
b877fe288a32
6de16237c78a

cd28ab6a4e50

5afa0a9cfb79
cd28ab6a4e50





793b883ed12a
e3173832d7be
cd28ab6a4e50
549a68c3fe2c


063a0b38a7e4


f05267e7dee5
cd28ab6a4e50
e3173832d7be
cd28ab6a4e50
063a0b38a7e4
e3173832d7be
5afa0a9cfb79
e3173832d7be




cd28ab6a4e50

8ab8fca2071c
6de16237c78a
ae306cca3ada
e3173832d7be
d374c1c1281d
e3173832d7be
f71eb1a24a8c
ae306cca3ada
2ccc99b7b719
cd28ab6a4e50



793b883ed12a
08c06d8a9063
cd28ab6a4e50
549a68c3fe2c


f71eb1a24a8c


ae306cca3ada




cd28ab6a4e50
1ad5b4a5c224

05745c4ab1c5


b32f40c4853c
1ad5b4a5c224
e3173832d7be
8ab8fca2071c
6de16237c78a
8ab8fca2071c
f05267e7dee5
cd28ab6a4e50
063a0b38a7e4

6a5706b99c98
08c06d8a9063



68c288983460
08c06d8a9063
68c288983460
eb35cf60e462
5afa0a9cfb79
cd28ab6a4e50

eb35cf60e462
ae306cca3ada
08c06d8a9063
b02a92586dca
ae306cca3ada
08c06d8a9063
cd28ab6a4e50


e3173832d7be




549a68c3fe2c


5c0d6b34d6ee
e3173832d7be

















f71eb1a24a8c
e3173832d7be

cd28ab6a4e50
793b883ed12a



cd28ab6a4e50
793b883ed12a

cd28ab6a4e50
e3173832d7be
cd28ab6a4e50



c844d483004d

3cf267539f1f
50241c4c5945
cd28ab6a4e50




3cf267539f1f
cd28ab6a4e50





65ebe63420ea
cd28ab6a4e50
5f4f9dc113a7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720











                                                                            
                                                                 


                                                                  
                                                               






                                                                    
                        
                         

                            
                              



                              
                   


                        
                            
                          
                           
                          
                      


                    



                                                                   


                                      
                                      




                                                                            
                     

   
                                    
                                                                      
                                                  
                                              



                                                  
                                                                                    
 
                                                                   
                                                                                



                                        


                                          

                                           
                              

                                                           
                                        
 
                                                    


                                                           
                                         


                                                      



                                                                          
                                                 

                                                                       
                                                                      
                                                                       
                                                                       
                                                                      











                                                                    
                                                                    
                                                                     
                                                                    
                                                                    
                                                                    




                                                                    
                                                                    


                                                                    

                                                                    
                                                                    
                                                                    

                                                                    
                                                                    

             
 




                                                   
                                                                
 

                                                       
                                           
                                                                            







                                                                             




                                                             
                                 

                           
         
 
                                                                                
                          



                                                                            

 
                                                                              


              
                                                                          


                                                               




                                                             



                                                                 
                           

         
                                                                                
                          


                                                                            

 
                                                                         

              
                                         
                 

 
 




                                                                        
 

                                                         
 







                                                                       
 
                                                
                        
 
                                                      
 
                                                        

                                                                
                                                        
 
                                                        

                                                           
                                                        
 
                                                       




                                                                              

                                          
         
 
 















                                                                       

 
                                                              




                                                       
 









                                                                           









                                                         
                                       

                                      
                                      










                                                          


                                                            
                                                         
 

                                               


                                                                     
                                               

                                                           
                                                                                 
                                                    
                                                                              

                                                                         

                                                                        




                                                                 
                                 
                                                     

                                                                           









                                                                                 






                                                                      
                                                                             
                                                           
                                                                 
                                                                                      



                                                                              




                                                                 
         
 


                                                        
                                                                                 
                                                             
 







                                                                               

                                                                     



                                                                        
                                                                        
                 

                                                             

         
                            

                          
                

                                              
                                         











                                                                          
 
                                                              




                                                                               
 
                                                             
                 






                                                   

                                                                           



                                              
                                                  


                                             
                                                 


                              


                                                  

                                                    
 
 
                                                      

                                                    
                                            


                                                                                

         

                                               
                                        






















                                                                       
















                                                                     
                              
                                                             




                                                                  




                                                                               


                                                         





                                                        

                                           
                                                             
                      
 
                                
                              
                                

















                                                                       



                                                                               
 
                                                  
                                                       

         
                                                                                     
                                            

                                                              
                                                                        

                                                     
 




                                                                             

                                            
                                                            




                                                                           

                                                      
                                           
                                                                   
 

                                                                                   
                                                               
                 
 



                                                                           
 
                                                                            





                                                                             



                                                                      

                 
 
                                                        
                                                 
                                 
 
                                                                

                                        
                                                 

                                                         




                                                                      
 
 


                                                                  


























                                                                              

                                                                          
 
                                                                        


                                                                        


                                                                    




                                                                      


                                                        
                                                                                    

                                                         

 


                                                   
                                      
                                            
                                        

 























                                                                                    




                                        





























                                                                                 
                                                 
                                  
                                                 





                                                                  

                                                                

                                               





                                                                  
 


                                                                     
 









                                                                                   
 




                                                                                        


         



                                                            
                   


                                                 

                                                              


                                                              
                                                                                










                                                                                
                                                    
 


                                                                  
                                      
                                    
                                
                                        




                                                                 

                                                              






                                                                  
                                                                         












                                                       
                                                              
 
                                              



                                                   


                                                     



                                                     





                                                                  
                                              

                                              
                                         
 
                                                              
 






                                                                              
 
                                                                          





                                                           



                                                                   
 
                                                                          
                                                
                                                                    
                                                                     
 
                                            

         






                                                               

 

                                                                        
 





                                                                 
 






                                                         
                                         
 





                                                                  
 


                                                                  







                                                                   
                                            

 
                                
                                                



                                                           
                                                           

 


                                                               
                                                             

                                                         





                                                                             

                                                         

 



                                                                  
                                                               
                     

                  
 










                                           

 





                                                                   

                                                                        
 
                                                                                  
              



                                                                       

 
 


                                                                     
                                                           
                     


                  


                                                           


                              
                                               
                                        
                                                           

                                                  
 
                                

                                          
                                   

 












                                                                          
                                                                         





                                                                                  


                                                                 







                                                                                      
                 














                                                                            
 



                                                                       
                                                   
 
                                                   
 


                                                            
 


                                                                            

 






























                                                                           
                 
 
 
                                                                      




                                                 
                                                
                                                            

                              
                                                              





                                           










                                                                         
                      





                                             
 
                                              
                                                                                
                                                
 







                                            
                                              

                                                                        
                                                




                      
                         
                                                                        
 
                    









                                                             












                                                                                 
 
                                       
                               
                                


      
  

                                                            
   
                                                            

                            
              
 
                                                   


















                                                                             






                                                               


                   



                       

 




                                                                       
  
                                           





                                                              
   
                                                
 
                                      
                                
                                           
                                 
 
                                         
                           
 





                                                                            
                                                

                                                     
                                                                      
 

                                                                     

                                          

                                                              
                                                                    



                                                    
                                             

                                                            

                                              
 




                                                          
 


                                  
                                                
                                       
 
                                              


                                   





                                                                        
                                         

         





                                                                        






                                                                                  
                                               
                                  











                                                  
                           
                               
                                                            
 


                                                                    
           

                                                                     

                        
                                                           
                                            

                                                           
         
 

                               

                                                    

                                                                     



                                                             
                                                                          


                                            

                      






                                                                 
                                                                              





                                            


                                                                     
                            
 
                                                
                                                                         



                                                           
 






                                                                            
 
                                     
 



                                                                                   
                                        

                                                   
                                                                            
 

                                                              
 



                                                          
                                  
                

                             
                                                     
                                         
                                   

                                         
                                


                                                                            


                 
                          

                                                                  


                                   


                                                                             



                                   
 

                             


                   


                                                       
                                                  
 
 

                                                        
 
                                                                        

 
                                                           
                                                    
 




                                                   
                            

                        
                                               


                        

 





                                                                    



                                                                       
                                     
                                
                                    
                           


                

                                                      
 

                                                                             
 







                                                                     

                                               
                                     
                                                               
                                                  
         

                                                
                                        
                       

                                                  




                                                                           

                                                       


                                                                  

                                                

         
                 




                                                             
                                     
                                                      







                                                               
                                                 
                                                                  
                                                    




















                                                                               
                 


                             
                                              

                                      
                                                                              
 
                                
                      
                                                 
                                           

                                                         
                                                                    


                                                                               
 


                                                             
                                                       
                                             
                                                                       

                                                          


                                     
                                                      

                                                     
                                                  
 



                                                          
         
 

                        

                                            
 
                                                             
 

                                   



























                                                                                  

 
  


                                                                       
                                                     
   
                                                              
 
                                              
                                              
                     
 
                                     
 











                                                                     
                              


                                                                         
                                                         






                                                                     
 

                                                            
 
                                                   
                                                                     
                 
         
 
                            

                 
                                               
                                      


                                                                       
                                                 
 


                                                  
                                              
                                








                                                  
                  
 



                                       


                                                                             




                                         

                                       
                                  
 




                                                                 
                                                

                                                
                                                   

                                                


                                              


                                                              

                                                                       










                                                                      

                                                      






                                                                      
                           



                                                                  
                                      
 
                            

                                                 
                           










                                                                     





                             




                                                            
                                          

                                  





                                             















                                                





                                         
 
                          
                                               

                                               



                                                                 
 
                                                    
 
                              
                                                  



                                                                           
                                                                                 

                                                                     
                                                   












                                                     
 
                                        





                                                                                
 


                                







                                                  



                                                             
                        
 
                                                          
                                                      




                                                                            





                                                                
                                              
                                                                             
 


                                                                        
                                            












                                                                      
 









                                                                    
 
                                                                   
                                                                                       
                                            
 
                                      





                                                                        
 

                                                            
 

                                                  

                             


                                



                                                           



                                                                            
                                                                               



                                                          
 

                                                          
 


                                                                              
 

                                               
                                           

                                             
         
    
                                     

 
                                                                   

                                  


                                                   
                                      



                                                                   
                                                                               


                                                                                  
 

                                                



                                                               

                                                  
                                   

                      
                  



                                                          


                                                

                               




                                   
                                         

                                     

                                                                
                                
 

                                       
                                              
                                            


                                                                 

                            

                           
 





                                                              
                                                    
 
                                                                       
 
                                  
                                         
 
                                       

                               


                               
                                                       
 


                                      


                   











                                                                          
                                                                      




                                                                             
                                     












































                                                                      









                                                       




                                                             



                                                      
                                     


                   

                      
                                      
   
                                                           

                                                           
                                                  
                                                                
                                   






                                                  


                                                                            
                                                                 
 
                                                               
                                                
 








                                                                         
                                    

                           


                                     

                                                                                
                               
 
     



                                                     
         
                                 
 

                   
          

                                                       
                                      
                                                      

                                                                          
                      
 
      
                               
                                       
                                            

                              
 
                                                      
                                                                             
                                                  

                                                        
                                              
                                     
                                             
                                    
                                           
 
                      

 

                                                                 
 
                                                  
 
                                 
                                   
                                             
                                     
         

 
                                  
                                                                   
 
                          
                                  
 
              
            
                                       
                                                                    
                              
                                       
                                    

                           



                                         
 
                                                                     
 
                                              
                                    
                                        

                                                 
 

                                             
                               
                                   
                                                                
                                             
                                                        
                                      
                         
 
                                                                           
                                                         







                                                                              
                                                                 

                                                        

                                               






                                                                                    
                                                       
 
                                                        

                                                 

                              








                                              
                               


                                           





                                                                               
                                      
                         
 














                                                                                 
                                                                          

                                                                


                                  
                                                                    

                                                                 



                                                                         

                              

                                            
                                                       
                                                                               
                 
                                    
 


                                                      
          

                                                              
 

                                                              
 
                         





                                                                        


                                                                            

                                     


                                                                               




                                                                               


                                                                                




                                                                               

                                                                                 



                                                                            

                                                                                



                                                                                


                                                                           





                                                                                
                                        
                                                  


                                                 
 
                                   
                                                                 

                                                        

                            
                                                                
                                                          
                                    
                                                                          
                                         
 
                                                
                                                                       
                                                                 


                                     
                                                              
                        
 
                                                                


                                                                         
                                    
                                                                               
 
                                                                   
                                                                 


















                                                                       





                                                    
                                      
                                            



                                                                            
                                            

                                                                            

 


                                                            


                                                  


                                                            
 



                                                                                
 
                                                            
 
 































                                                                             
                                            
 
                                                    
 
                                              
                                       
                                         



                                                 
                                                            




                                                                    
                                                               









                                                                           
         
 
                                                                    

 

                                                         
 

                                                                                 
 

                                  
 

                                     
 

                                     
 
                                   
                                                       
 
                                   
                                                       
 
                                    
                                                          
 
                                    


                                                          
                                                              
 
                                                                      
                                                    
                          
                








                                           
 

                                                                               

                                            

                                  
 


                                       
 
                         

 
                                                   

                                    





                                                         
 
                                         

                                 
 







                                                  
                                       



                                                    
                                             
 
                              
                              
                                
                              
                                
                                

                           
                              









                                


         
                                                               
 
                                 

 
                                                                
 
                                  

 
 
                                                  
 
              
 
                                                            
                                              
 
                                             
 
                                                 



                                                                          
                                                                
























                                                                                          
                                            


                              

                      





                                                








                                                




                                                
                

                                                                       


                                   


                                                                              
 











                                                                            
                                        
                   

                                       
 
                         







                                                                      




                                             


                                                        
                                      
                                                 
                                        
                                                 


                                              

                                                        

                                                                   



                                                                                  
                    

                                                  
 
                          
                                                         



                                                                         
 

                                                      


                                                                              

         

                                        



                                                 
 

                                               

                                                 


                                                      
                                                         






                                                                  
                                                                       














                                                                           
                                                
 
                                       
                                       
 






                                                        
                                                                    

                                     
                                                              
 

                                             
 




                                                                 
 
                                                                   

                                                                   
 
                                




                                                        

 





                                                                              
                    





                                         

                                     

                                              
                               












                                                                                  


                      
















                                                                             
 

                                                          



                                   


                                                


                                                             

                                                            

                                    


                 
                                                         
 





                                                           
 
                                                
                                                         

                                                           
              



                                                  

 
                                                                              






                                                   
                                 
                                     


                                          
                                        
         


                                              
















                                                                              
                                      






































                                                                   
                                 
                                      

                                        















                                                          

                                   










                                           
                                        

                                            
                                                
                                               
 
                                        
                                         






                                                         
                                            

                                               
                                             








                                                         

  











                                                             
 











                                                                   


                                                  
 
                                                                   

                               
                              
                                



                 
                                                                              





                                                                
                                                       
                                                                
                                                       
 
                                   


                                                                           





                                                                   
                                                                
 





                                              


                                                          
                                                                           


                                                  
                                                           

 
                                                                              











                                                                    


                                                                


                                        



                                                
                                                       
                                                   
                                             
                                                   
                                             
 




                                                              

                 

 







                                                                







                                                      

                                                                                     
 
                                                                                




                                               
                                                         
                                                            
                                           
                                                     
                                                 




                                        




                                                                              

         
                                            
                                                              
                                            
                                                              
                                            
                                                              
                                            
                                                              






                                                        
                                                                
 

                                      
 




                                                

                                                             
 




























                                                                 
 

                                                             
                                                         







                                                              





                                                         
                       
 

                                
 






                                              
         
                                    








                                                                













                                                       






                                                               

                                      
                                                                    
 

                                      
 
                 

 







































                                                                             
                                                    
 


                                               

                               
                                                            
                               
                                                           
                               
                                                              






















                                                                        
                                                    






                                                                             

































                                                               
                                 
                                   


                                       



                   

                                                    
                      



                                          
                                                                




                                                                            
                                                
                       

                          
 











                                                                         
 




































                                                                
 


                          
 
 







                                                                    
                                                                            


















                                                             


                                                      
                                      

                 
                                                 


                                                           
                                                                     
 
                                      
 







                                                                                     
 

                 
 





















                                                                 

 

                                                                        
 













                                                                                  






                                                                                 





                                          
                                                                               






                                                                                 






                                               


                                                      
 
                                                                                


 
                                                    













                                              
                                            
                                           







                                             

                                              
                                       
                                              


                                                    



                                 















































































                                                                                   



                                                         
                                      



                                   
                               
 
                                                            



                                                  




                                                         
                                




































































                                                                                      
                                       
                               























                                                                    
                                                  
 
                                                                
                                   
 






                                                                                 
 





                                                                     
                 







                                                                       



































                                                              





                                                                    
                                                  















                                                        
                                                  










                                                        
 

                                                                        
                                                                   
                                                                          




                                                               
                                                                   


                            
                                            
                                 
                                                
                                          
                                                 





                                                              

                                         

                                  


                                                     
                                                          
                        
 
                                        
                                          
                                          




                            
                                                                    

                                                 
 
                         



                                                                              
         

      
                                  
                                                                               
                                                             
 


                   
                                                            



                                                        

                                                      

 
                                                    
                                                                  







                                                     
                                             













                                                       

                                            

                                                
                                                                      
                  
                                                                         


                           
                                               
                                
 
                                                                               
 
                                             
                                                           

                                                                         





                                                       
                                 





                                










                                                          
                                          

          
                                                                      





                                                                  


                                                                
                               
                           
                                            
                
                      
 

                                      
                                                                  


                             

                                                  
                                                                     
                                     



                             
                                               
                                                                
                              
                                                                          
                              

                                                                          

                                                  
                
                                                               
                          
                                                                             


                                                  
 



























                                                                                  
                                                                     
 
                      
                                              
                  
                                                                         


                                          
                        


                                                                        
                                                                     


                                     
                                       
                                                                             


                                     
                            
                
                                     
 

                                                                           
 

                       
                                                              

                              
                                      
         
 







                                                        

                                   
                                                                    


                                         

                                                               

                                                                          
                                         
                  
                                                                         


                                              
                               
 

                            


                                        
                                                                       




                                                                                      

                                          

                                             

         
                                                                            

                                                   

                                  

                 
                   
                                        
                                      
                               

                         
                 
                                             
                                                                          





                                  
                
                                 
        
                                    




                                                       
                                                   
              
 
                

                       
                                            
                                            
 
                                          
                                              
 
                                     
 

                           
                                                 
                                             
                                

                                
                                        
                                      
                                                                          

                                  
 
                                          

                                        

                          
 





                                                                 
                                                   
                       
 


                         


                                            
                                         
                                                    
                                                          
 
                                         
                                       
                                       




                                            

         
                                     
                                
                           
 
                             
                                                                  
                                                                 
 
                 



                                            
                                                   
                   
 


                         


                                                




                                      
                                         

                                  


                                                
                                                      
 
                       
                                              
                               
 
                                         
                                                    

                                         
                                         



                                                                             
                                            
                                               
                                              
                                         
                         

                 
 
                 
    
                                                         
                                 
                   


      




                                                   


                       
                                            

















                                                          
                                             

 
                                        



                                           
                

                                
      
                                  



                                        

                                                        
                          
                                                 




                                            
                             





                                                              
                                                                     
                      
                            
/*
 * New driver for Marvell Yukon 2 chipset.
 * Based on earlier sk98lin, and skge driver.
 *
 * This driver intentionally does not support all the features
 * of the original driver such as link fail-over and link management because
 * those should be done at higher levels.
 *
 * Copyright (C) 2005 Stephen Hemminger <shemminger@osdl.org>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */

#include <linux/crc32.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/netdevice.h>
#include <linux/dma-mapping.h>
#include <linux/etherdevice.h>
#include <linux/ethtool.h>
#include <linux/pci.h>
#include <linux/ip.h>
#include <net/ip.h>
#include <linux/tcp.h>
#include <linux/in.h>
#include <linux/delay.h>
#include <linux/workqueue.h>
#include <linux/if_vlan.h>
#include <linux/prefetch.h>
#include <linux/debugfs.h>
#include <linux/mii.h>

#include <asm/irq.h>

#if defined(CONFIG_VLAN_8021Q) || defined(CONFIG_VLAN_8021Q_MODULE)
#define SKY2_VLAN_TAG_USED 1
#endif

#include "sky2.h"

#define DRV_NAME		"sky2"
#define DRV_VERSION		"1.22"
#define PFX			DRV_NAME " "

/*
 * The Yukon II chipset takes 64 bit command blocks (called list elements)
 * that are organized into three (receive, transmit, status) different rings
 * similar to Tigon3.
 */

#define RX_LE_SIZE	    	1024
#define RX_LE_BYTES		(RX_LE_SIZE*sizeof(struct sky2_rx_le))
#define RX_MAX_PENDING		(RX_LE_SIZE/6 - 2)
#define RX_DEF_PENDING		RX_MAX_PENDING

#define TX_RING_SIZE		512
#define TX_DEF_PENDING		(TX_RING_SIZE - 1)
#define TX_MIN_PENDING		64
#define MAX_SKB_TX_LE		(4 + (sizeof(dma_addr_t)/sizeof(u32))*MAX_SKB_FRAGS)

#define STATUS_RING_SIZE	2048	/* 2 ports * (TX + 2*RX) */
#define STATUS_LE_BYTES		(STATUS_RING_SIZE*sizeof(struct sky2_status_le))
#define TX_WATCHDOG		(5 * HZ)
#define NAPI_WEIGHT		64
#define PHY_RETRIES		1000

#define SKY2_EEPROM_MAGIC	0x9955aabb


#define RING_NEXT(x,s)	(((x)+1) & ((s)-1))

static const u32 default_msg =
    NETIF_MSG_DRV | NETIF_MSG_PROBE | NETIF_MSG_LINK
    | NETIF_MSG_TIMER | NETIF_MSG_TX_ERR | NETIF_MSG_RX_ERR
    | NETIF_MSG_IFUP | NETIF_MSG_IFDOWN;

static int debug = -1;		/* defaults above */
module_param(debug, int, 0);
MODULE_PARM_DESC(debug, "Debug level (0=none,...,16=all)");

static int copybreak __read_mostly = 128;
module_param(copybreak, int, 0);
MODULE_PARM_DESC(copybreak, "Receive copy threshold");

static int disable_msi = 0;
module_param(disable_msi, int, 0);
MODULE_PARM_DESC(disable_msi, "Disable Message Signaled Interrupt (MSI)");

static DEFINE_PCI_DEVICE_TABLE(sky2_id_table) = {
	{ PCI_DEVICE(PCI_VENDOR_ID_SYSKONNECT, 0x9000) }, /* SK-9Sxx */
	{ PCI_DEVICE(PCI_VENDOR_ID_SYSKONNECT, 0x9E00) }, /* SK-9Exx */
	{ PCI_DEVICE(PCI_VENDOR_ID_DLINK, 0x4b00) },	/* DGE-560T */
	{ PCI_DEVICE(PCI_VENDOR_ID_DLINK, 0x4001) }, 	/* DGE-550SX */
	{ PCI_DEVICE(PCI_VENDOR_ID_DLINK, 0x4B02) },	/* DGE-560SX */
	{ PCI_DEVICE(PCI_VENDOR_ID_DLINK, 0x4B03) },	/* DGE-550T */
	{ PCI_DEVICE(PCI_VENDOR_ID_MARVELL, 0x4340) }, /* 88E8021 */
	{ PCI_DEVICE(PCI_VENDOR_ID_MARVELL, 0x4341) }, /* 88E8022 */
	{ PCI_DEVICE(PCI_VENDOR_ID_MARVELL, 0x4342) }, /* 88E8061 */
	{ PCI_DEVICE(PCI_VENDOR_ID_MARVELL, 0x4343) }, /* 88E8062 */
	{ PCI_DEVICE(PCI_VENDOR_ID_MARVELL, 0x4344) }, /* 88E8021 */
	{ PCI_DEVICE(PCI_VENDOR_ID_MARVELL, 0x4345) }, /* 88E8022 */
	{ PCI_DEVICE(PCI_VENDOR_ID_MARVELL, 0x4346) }, /* 88E8061 */
	{ PCI_DEVICE(PCI_VENDOR_ID_MARVELL, 0x4347) }, /* 88E8062 */
	{ PCI_DEVICE(PCI_VENDOR_ID_MARVELL, 0x4350) }, /* 88E8035 */
	{ PCI_DEVICE(PCI_VENDOR_ID_MARVELL, 0x4351) }, /* 88E8036 */
	{ PCI_DEVICE(PCI_VENDOR_ID_MARVELL, 0x4352) }, /* 88E8038 */
	{ PCI_DEVICE(PCI_VENDOR_ID_MARVELL, 0x4353) }, /* 88E8039 */
	{ PCI_DEVICE(PCI_VENDOR_ID_MARVELL, 0x4354) }, /* 88E8040 */
	{ PCI_DEVICE(PCI_VENDOR_ID_MARVELL, 0x4355) }, /* 88E8040T */
	{ PCI_DEVICE(PCI_VENDOR_ID_MARVELL, 0x4356) }, /* 88EC033 */
	{ PCI_DEVICE(PCI_VENDOR_ID_MARVELL, 0x4357) }, /* 88E8042 */
	{ PCI_DEVICE(PCI_VENDOR_ID_MARVELL, 0x435A) }, /* 88E8048 */
	{ PCI_DEVICE(PCI_VENDOR_ID_MARVELL, 0x4360) }, /* 88E8052 */
	{ PCI_DEVICE(PCI_VENDOR_ID_MARVELL, 0x4361) }, /* 88E8050 */
	{ PCI_DEVICE(PCI_VENDOR_ID_MARVELL, 0x4362) }, /* 88E8053 */
	{ PCI_DEVICE(PCI_VENDOR_ID_MARVELL, 0x4363) }, /* 88E8055 */
	{ PCI_DEVICE(PCI_VENDOR_ID_MARVELL, 0x4364) }, /* 88E8056 */
	{ PCI_DEVICE(PCI_VENDOR_ID_MARVELL, 0x4365) }, /* 88E8070 */
	{ PCI_DEVICE(PCI_VENDOR_ID_MARVELL, 0x4366) }, /* 88EC036 */
	{ PCI_DEVICE(PCI_VENDOR_ID_MARVELL, 0x4367) }, /* 88EC032 */
	{ PCI_DEVICE(PCI_VENDOR_ID_MARVELL, 0x4368) }, /* 88EC034 */
	{ PCI_DEVICE(PCI_VENDOR_ID_MARVELL, 0x4369) }, /* 88EC042 */
	{ PCI_DEVICE(PCI_VENDOR_ID_MARVELL, 0x436A) }, /* 88E8058 */
	{ PCI_DEVICE(PCI_VENDOR_ID_MARVELL, 0x436B) }, /* 88E8071 */
	{ PCI_DEVICE(PCI_VENDOR_ID_MARVELL, 0x436C) }, /* 88E8072 */
	{ PCI_DEVICE(PCI_VENDOR_ID_MARVELL, 0x436D) }, /* 88E8055 */
	{ PCI_DEVICE(PCI_VENDOR_ID_MARVELL, 0x4370) }, /* 88E8075 */
	{ PCI_DEVICE(PCI_VENDOR_ID_MARVELL, 0x4380) }, /* 88E8057 */
	{ 0 }
};

MODULE_DEVICE_TABLE(pci, sky2_id_table);

/* Avoid conditionals by using array */
static const unsigned txqaddr[] = { Q_XA1, Q_XA2 };
static const unsigned rxqaddr[] = { Q_R1, Q_R2 };
static const u32 portirq_msk[] = { Y2_IS_PORT_1, Y2_IS_PORT_2 };

static void sky2_set_multicast(struct net_device *dev);

/* Access to PHY via serial interconnect */
static int gm_phy_write(struct sky2_hw *hw, unsigned port, u16 reg, u16 val)
{
	int i;

	gma_write16(hw, port, GM_SMI_DATA, val);
	gma_write16(hw, port, GM_SMI_CTRL,
		    GM_SMI_CT_PHY_AD(PHY_ADDR_MARV) | GM_SMI_CT_REG_AD(reg));

	for (i = 0; i < PHY_RETRIES; i++) {
		u16 ctrl = gma_read16(hw, port, GM_SMI_CTRL);
		if (ctrl == 0xffff)
			goto io_error;

		if (!(ctrl & GM_SMI_CT_BUSY))
			return 0;

		udelay(10);
	}

	dev_warn(&hw->pdev->dev,"%s: phy write timeout\n", hw->dev[port]->name);
	return -ETIMEDOUT;

io_error:
	dev_err(&hw->pdev->dev, "%s: phy I/O error\n", hw->dev[port]->name);
	return -EIO;
}

static int __gm_phy_read(struct sky2_hw *hw, unsigned port, u16 reg, u16 *val)
{
	int i;

	gma_write16(hw, port, GM_SMI_CTRL, GM_SMI_CT_PHY_AD(PHY_ADDR_MARV)
		    | GM_SMI_CT_REG_AD(reg) | GM_SMI_CT_OP_RD);

	for (i = 0; i < PHY_RETRIES; i++) {
		u16 ctrl = gma_read16(hw, port, GM_SMI_CTRL);
		if (ctrl == 0xffff)
			goto io_error;

		if (ctrl & GM_SMI_CT_RD_VAL) {
			*val = gma_read16(hw, port, GM_SMI_DATA);
			return 0;
		}

		udelay(10);
	}

	dev_warn(&hw->pdev->dev, "%s: phy read timeout\n", hw->dev[port]->name);
	return -ETIMEDOUT;
io_error:
	dev_err(&hw->pdev->dev, "%s: phy I/O error\n", hw->dev[port]->name);
	return -EIO;
}

static inline u16 gm_phy_read(struct sky2_hw *hw, unsigned port, u16 reg)
{
	u16 v;
	__gm_phy_read(hw, port, reg, &v);
	return v;
}


static void sky2_power_on(struct sky2_hw *hw)
{
	/* switch power to VCC (WA for VAUX problem) */
	sky2_write8(hw, B0_POWER_CTRL,
		    PC_VAUX_ENA | PC_VCC_ENA | PC_VAUX_OFF | PC_VCC_ON);

	/* disable Core Clock Division, */
	sky2_write32(hw, B2_Y2_CLK_CTRL, Y2_CLK_DIV_DIS);

	if (hw->chip_id == CHIP_ID_YUKON_XL && hw->chip_rev > 1)
		/* enable bits are inverted */
		sky2_write8(hw, B2_Y2_CLK_GATE,
			    Y2_PCI_CLK_LNK1_DIS | Y2_COR_CLK_LNK1_DIS |
			    Y2_CLK_GAT_LNK1_DIS | Y2_PCI_CLK_LNK2_DIS |
			    Y2_COR_CLK_LNK2_DIS | Y2_CLK_GAT_LNK2_DIS);
	else
		sky2_write8(hw, B2_Y2_CLK_GATE, 0);

	if (hw->flags & SKY2_HW_ADV_POWER_CTL) {
		u32 reg;

		sky2_pci_write32(hw, PCI_DEV_REG3, 0);

		reg = sky2_pci_read32(hw, PCI_DEV_REG4);
		/* set all bits to 0 except bits 15..12 and 8 */
		reg &= P_ASPM_CONTROL_MSK;
		sky2_pci_write32(hw, PCI_DEV_REG4, reg);

		reg = sky2_pci_read32(hw, PCI_DEV_REG5);
		/* set all bits to 0 except bits 28 & 27 */
		reg &= P_CTL_TIM_VMAIN_AV_MSK;
		sky2_pci_write32(hw, PCI_DEV_REG5, reg);

		sky2_pci_write32(hw, PCI_CFG_REG_1, 0);

		/* Enable workaround for dev 4.107 on Yukon-Ultra & Extreme */
		reg = sky2_read32(hw, B2_GP_IO);
		reg |= GLB_GPIO_STAT_RACE_DIS;
		sky2_write32(hw, B2_GP_IO, reg);

		sky2_read32(hw, B2_GP_IO);
	}
}

static void sky2_power_aux(struct sky2_hw *hw)
{
	if (hw->chip_id == CHIP_ID_YUKON_XL && hw->chip_rev > 1)
		sky2_write8(hw, B2_Y2_CLK_GATE, 0);
	else
		/* enable bits are inverted */
		sky2_write8(hw, B2_Y2_CLK_GATE,
			    Y2_PCI_CLK_LNK1_DIS | Y2_COR_CLK_LNK1_DIS |
			    Y2_CLK_GAT_LNK1_DIS | Y2_PCI_CLK_LNK2_DIS |
			    Y2_COR_CLK_LNK2_DIS | Y2_CLK_GAT_LNK2_DIS);

	/* switch power to VAUX */
	if (sky2_read16(hw, B0_CTST) & Y2_VAUX_AVAIL)
		sky2_write8(hw, B0_POWER_CTRL,
			    (PC_VAUX_ENA | PC_VCC_ENA |
			     PC_VAUX_ON | PC_VCC_OFF));
}

static void sky2_gmac_reset(struct sky2_hw *hw, unsigned port)
{
	u16 reg;

	/* disable all GMAC IRQ's */
	sky2_write8(hw, SK_REG(port, GMAC_IRQ_MSK), 0);

	gma_write16(hw, port, GM_MC_ADDR_H1, 0);	/* clear MC hash */
	gma_write16(hw, port, GM_MC_ADDR_H2, 0);
	gma_write16(hw, port, GM_MC_ADDR_H3, 0);
	gma_write16(hw, port, GM_MC_ADDR_H4, 0);

	reg = gma_read16(hw, port, GM_RX_CTRL);
	reg |= GM_RXCR_UCF_ENA | GM_RXCR_MCF_ENA;
	gma_write16(hw, port, GM_RX_CTRL, reg);
}

/* flow control to advertise bits */
static const u16 copper_fc_adv[] = {
	[FC_NONE]	= 0,
	[FC_TX]		= PHY_M_AN_ASP,
	[FC_RX]		= PHY_M_AN_PC,
	[FC_BOTH]	= PHY_M_AN_PC | PHY_M_AN_ASP,
};

/* flow control to advertise bits when using 1000BaseX */
static const u16 fiber_fc_adv[] = {
	[FC_NONE] = PHY_M_P_NO_PAUSE_X,
	[FC_TX]   = PHY_M_P_ASYM_MD_X,
	[FC_RX]	  = PHY_M_P_SYM_MD_X,
	[FC_BOTH] = PHY_M_P_BOTH_MD_X,
};

/* flow control to GMA disable bits */
static const u16 gm_fc_disable[] = {
	[FC_NONE] = GM_GPCR_FC_RX_DIS | GM_GPCR_FC_TX_DIS,
	[FC_TX]	  = GM_GPCR_FC_RX_DIS,
	[FC_RX]	  = GM_GPCR_FC_TX_DIS,
	[FC_BOTH] = 0,
};


static void sky2_phy_init(struct sky2_hw *hw, unsigned port)
{
	struct sky2_port *sky2 = netdev_priv(hw->dev[port]);
	u16 ctrl, ct1000, adv, pg, ledctrl, ledover, reg;

	if (sky2->autoneg == AUTONEG_ENABLE &&
	    !(hw->flags & SKY2_HW_NEWER_PHY)) {
		u16 ectrl = gm_phy_read(hw, port, PHY_MARV_EXT_CTRL);

		ectrl &= ~(PHY_M_EC_M_DSC_MSK | PHY_M_EC_S_DSC_MSK |
			   PHY_M_EC_MAC_S_MSK);
		ectrl |= PHY_M_EC_MAC_S(MAC_TX_CLK_25_MHZ);

		/* on PHY 88E1040 Rev.D0 (and newer) downshift control changed */
		if (hw->chip_id == CHIP_ID_YUKON_EC)
			/* set downshift counter to 3x and enable downshift */
			ectrl |= PHY_M_EC_DSC_2(2) | PHY_M_EC_DOWN_S_ENA;
		else
			/* set master & slave downshift counter to 1x */
			ectrl |= PHY_M_EC_M_DSC(0) | PHY_M_EC_S_DSC(1);

		gm_phy_write(hw, port, PHY_MARV_EXT_CTRL, ectrl);
	}

	ctrl = gm_phy_read(hw, port, PHY_MARV_PHY_CTRL);
	if (sky2_is_copper(hw)) {
		if (!(hw->flags & SKY2_HW_GIGABIT)) {
			/* enable automatic crossover */
			ctrl |= PHY_M_PC_MDI_XMODE(PHY_M_PC_ENA_AUTO) >> 1;

			if (hw->chip_id == CHIP_ID_YUKON_FE_P &&
			    hw->chip_rev == CHIP_REV_YU_FE2_A0) {
				u16 spec;

				/* Enable Class A driver for FE+ A0 */
				spec = gm_phy_read(hw, port, PHY_MARV_FE_SPEC_2);
				spec |= PHY_M_FESC_SEL_CL_A;
				gm_phy_write(hw, port, PHY_MARV_FE_SPEC_2, spec);
			}
		} else {
			/* disable energy detect */
			ctrl &= ~PHY_M_PC_EN_DET_MSK;

			/* enable automatic crossover */
			ctrl |= PHY_M_PC_MDI_XMODE(PHY_M_PC_ENA_AUTO);

			/* downshift on PHY 88E1112 and 88E1149 is changed */
			if (sky2->autoneg == AUTONEG_ENABLE
			    && (hw->flags & SKY2_HW_NEWER_PHY)) {
				/* set downshift counter to 3x and enable downshift */
				ctrl &= ~PHY_M_PC_DSC_MSK;
				ctrl |= PHY_M_PC_DSC(2) | PHY_M_PC_DOWN_S_ENA;
			}
		}
	} else {
		/* workaround for deviation #4.88 (CRC errors) */
		/* disable Automatic Crossover */

		ctrl &= ~PHY_M_PC_MDIX_MSK;
	}

	gm_phy_write(hw, port, PHY_MARV_PHY_CTRL, ctrl);

	/* special setup for PHY 88E1112 Fiber */
	if (hw->chip_id == CHIP_ID_YUKON_XL && (hw->flags & SKY2_HW_FIBRE_PHY)) {
		pg = gm_phy_read(hw, port, PHY_MARV_EXT_ADR);

		/* Fiber: select 1000BASE-X only mode MAC Specific Ctrl Reg. */
		gm_phy_write(hw, port, PHY_MARV_EXT_ADR, 2);
		ctrl = gm_phy_read(hw, port, PHY_MARV_PHY_CTRL);
		ctrl &= ~PHY_M_MAC_MD_MSK;
		ctrl |= PHY_M_MAC_MODE_SEL(PHY_M_MAC_MD_1000BX);
		gm_phy_write(hw, port, PHY_MARV_PHY_CTRL, ctrl);

		if (hw->pmd_type  == 'P') {
			/* select page 1 to access Fiber registers */
			gm_phy_write(hw, port, PHY_MARV_EXT_ADR, 1);

			/* for SFP-module set SIGDET polarity to low */
			ctrl = gm_phy_read(hw, port, PHY_MARV_PHY_CTRL);
			ctrl |= PHY_M_FIB_SIGD_POL;
			gm_phy_write(hw, port, PHY_MARV_PHY_CTRL, ctrl);
		}

		gm_phy_write(hw, port, PHY_MARV_EXT_ADR, pg);
	}

	ctrl = PHY_CT_RESET;
	ct1000 = 0;
	adv = PHY_AN_CSMA;
	reg = 0;

	if (sky2->autoneg == AUTONEG_ENABLE) {
		if (sky2_is_copper(hw)) {
			if (sky2->advertising & ADVERTISED_1000baseT_Full)
				ct1000 |= PHY_M_1000C_AFD;
			if (sky2->advertising & ADVERTISED_1000baseT_Half)
				ct1000 |= PHY_M_1000C_AHD;
			if (sky2->advertising & ADVERTISED_100baseT_Full)
				adv |= PHY_M_AN_100_FD;
			if (sky2->advertising & ADVERTISED_100baseT_Half)
				adv |= PHY_M_AN_100_HD;
			if (sky2->advertising & ADVERTISED_10baseT_Full)
				adv |= PHY_M_AN_10_FD;
			if (sky2->advertising & ADVERTISED_10baseT_Half)
				adv |= PHY_M_AN_10_HD;

			adv |= copper_fc_adv[sky2->flow_mode];
		} else {	/* special defines for FIBER (88E1040S only) */
			if (sky2->advertising & ADVERTISED_1000baseT_Full)
				adv |= PHY_M_AN_1000X_AFD;
			if (sky2->advertising & ADVERTISED_1000baseT_Half)
				adv |= PHY_M_AN_1000X_AHD;

			adv |= fiber_fc_adv[sky2->flow_mode];
		}

		/* Restart Auto-negotiation */
		ctrl |= PHY_CT_ANE | PHY_CT_RE_CFG;
	} else {
		/* forced speed/duplex settings */
		ct1000 = PHY_M_1000C_MSE;

		/* Disable auto update for duplex flow control and speed */
		reg |= GM_GPCR_AU_ALL_DIS;

		switch (sky2->speed) {
		case SPEED_1000:
			ctrl |= PHY_CT_SP1000;
			reg |= GM_GPCR_SPEED_1000;
			break;
		case SPEED_100:
			ctrl |= PHY_CT_SP100;
			reg |= GM_GPCR_SPEED_100;
			break;
		}

		if (sky2->duplex == DUPLEX_FULL) {
			reg |= GM_GPCR_DUP_FULL;
			ctrl |= PHY_CT_DUP_MD;
		} else if (sky2->speed < SPEED_1000)
			sky2->flow_mode = FC_NONE;


 		reg |= gm_fc_disable[sky2->flow_mode];

		/* Forward pause packets to GMAC? */
		if (sky2->flow_mode & FC_RX)
			sky2_write8(hw, SK_REG(port, GMAC_CTRL), GMC_PAUSE_ON);
		else
			sky2_write8(hw, SK_REG(port, GMAC_CTRL), GMC_PAUSE_OFF);
	}

	gma_write16(hw, port, GM_GP_CTRL, reg);

	if (hw->flags & SKY2_HW_GIGABIT)
		gm_phy_write(hw, port, PHY_MARV_1000T_CTRL, ct1000);

	gm_phy_write(hw, port, PHY_MARV_AUNE_ADV, adv);
	gm_phy_write(hw, port, PHY_MARV_CTRL, ctrl);

	/* Setup Phy LED's */
	ledctrl = PHY_M_LED_PULS_DUR(PULS_170MS);
	ledover = 0;

	switch (hw->chip_id) {
	case CHIP_ID_YUKON_FE:
		/* on 88E3082 these bits are at 11..9 (shifted left) */
		ledctrl |= PHY_M_LED_BLINK_RT(BLINK_84MS) << 1;

		ctrl = gm_phy_read(hw, port, PHY_MARV_FE_LED_PAR);

		/* delete ACT LED control bits */
		ctrl &= ~PHY_M_FELP_LED1_MSK;
		/* change ACT LED control to blink mode */
		ctrl |= PHY_M_FELP_LED1_CTRL(LED_PAR_CTRL_ACT_BL);
		gm_phy_write(hw, port, PHY_MARV_FE_LED_PAR, ctrl);
		break;

	case CHIP_ID_YUKON_FE_P:
		/* Enable Link Partner Next Page */
		ctrl = gm_phy_read(hw, port, PHY_MARV_PHY_CTRL);
		ctrl |= PHY_M_PC_ENA_LIP_NP;

		/* disable Energy Detect and enable scrambler */
		ctrl &= ~(PHY_M_PC_ENA_ENE_DT | PHY_M_PC_DIS_SCRAMB);
		gm_phy_write(hw, port, PHY_MARV_PHY_CTRL, ctrl);

		/* set LED2 -> ACT, LED1 -> LINK, LED0 -> SPEED */
		ctrl = PHY_M_FELP_LED2_CTRL(LED_PAR_CTRL_ACT_BL) |
			PHY_M_FELP_LED1_CTRL(LED_PAR_CTRL_LINK) |
			PHY_M_FELP_LED0_CTRL(LED_PAR_CTRL_SPEED);

		gm_phy_write(hw, port, PHY_MARV_FE_LED_PAR, ctrl);
		break;

	case CHIP_ID_YUKON_XL:
		pg = gm_phy_read(hw, port, PHY_MARV_EXT_ADR);

		/* select page 3 to access LED control register */
		gm_phy_write(hw, port, PHY_MARV_EXT_ADR, 3);

		/* set LED Function Control register */
		gm_phy_write(hw, port, PHY_MARV_PHY_CTRL,
			     (PHY_M_LEDC_LOS_CTRL(1) |	/* LINK/ACT */
			      PHY_M_LEDC_INIT_CTRL(7) |	/* 10 Mbps */
			      PHY_M_LEDC_STA1_CTRL(7) |	/* 100 Mbps */
			      PHY_M_LEDC_STA0_CTRL(7)));	/* 1000 Mbps */

		/* set Polarity Control register */
		gm_phy_write(hw, port, PHY_MARV_PHY_STAT,
			     (PHY_M_POLC_LS1_P_MIX(4) |
			      PHY_M_POLC_IS0_P_MIX(4) |
			      PHY_M_POLC_LOS_CTRL(2) |
			      PHY_M_POLC_INIT_CTRL(2) |
			      PHY_M_POLC_STA1_CTRL(2) |
			      PHY_M_POLC_STA0_CTRL(2)));

		/* restore page register */
		gm_phy_write(hw, port, PHY_MARV_EXT_ADR, pg);
		break;

	case CHIP_ID_YUKON_EC_U:
	case CHIP_ID_YUKON_EX:
	case CHIP_ID_YUKON_SUPR:
		pg = gm_phy_read(hw, port, PHY_MARV_EXT_ADR);

		/* select page 3 to access LED control register */
		gm_phy_write(hw, port, PHY_MARV_EXT_ADR, 3);

		/* set LED Function Control register */
		gm_phy_write(hw, port, PHY_MARV_PHY_CTRL,
			     (PHY_M_LEDC_LOS_CTRL(1) |	/* LINK/ACT */
			      PHY_M_LEDC_INIT_CTRL(8) |	/* 10 Mbps */
			      PHY_M_LEDC_STA1_CTRL(7) |	/* 100 Mbps */
			      PHY_M_LEDC_STA0_CTRL(7)));/* 1000 Mbps */

		/* set Blink Rate in LED Timer Control Register */
		gm_phy_write(hw, port, PHY_MARV_INT_MASK,
			     ledctrl | PHY_M_LED_BLINK_RT(BLINK_84MS));
		/* restore page register */
		gm_phy_write(hw, port, PHY_MARV_EXT_ADR, pg);
		break;

	default:
		/* set Tx LED (LED_TX) to blink mode on Rx OR Tx activity */
		ledctrl |= PHY_M_LED_BLINK_RT(BLINK_84MS) | PHY_M_LEDC_TX_CTRL;

		/* turn off the Rx LED (LED_RX) */
		ledover |= PHY_M_LED_MO_RX(MO_LED_OFF);
	}

	if (hw->chip_id == CHIP_ID_YUKON_EC_U || hw->chip_id == CHIP_ID_YUKON_UL_2) {
		/* apply fixes in PHY AFE */
		gm_phy_write(hw, port, PHY_MARV_EXT_ADR, 255);

		/* increase differential signal amplitude in 10BASE-T */
		gm_phy_write(hw, port, 0x18, 0xaa99);
		gm_phy_write(hw, port, 0x17, 0x2011);

		if (hw->chip_id == CHIP_ID_YUKON_EC_U) {
			/* fix for IEEE A/B Symmetry failure in 1000BASE-T */
			gm_phy_write(hw, port, 0x18, 0xa204);
			gm_phy_write(hw, port, 0x17, 0x2002);
		}

		/* set page register to 0 */
		gm_phy_write(hw, port, PHY_MARV_EXT_ADR, 0);
	} else if (hw->chip_id == CHIP_ID_YUKON_FE_P &&
		   hw->chip_rev == CHIP_REV_YU_FE2_A0) {
		/* apply workaround for integrated resistors calibration */
		gm_phy_write(hw, port, PHY_MARV_PAGE_ADDR, 17);
		gm_phy_write(hw, port, PHY_MARV_PAGE_DATA, 0x3f60);
	} else if (hw->chip_id != CHIP_ID_YUKON_EX &&
		   hw->chip_id < CHIP_ID_YUKON_SUPR) {
		/* no effect on Yukon-XL */
		gm_phy_write(hw, port, PHY_MARV_LED_CTRL, ledctrl);

		if (sky2->autoneg == AUTONEG_DISABLE || sky2->speed == SPEED_100) {
			/* turn on 100 Mbps LED (LED_LINK100) */
			ledover |= PHY_M_LED_MO_100(MO_LED_ON);
		}

		if (ledover)
			gm_phy_write(hw, port, PHY_MARV_LED_OVER, ledover);

	}

	/* Enable phy interrupt on auto-negotiation complete (or link up) */
	if (sky2->autoneg == AUTONEG_ENABLE)
		gm_phy_write(hw, port, PHY_MARV_INT_MASK, PHY_M_IS_AN_COMPL);
	else
		gm_phy_write(hw, port, PHY_MARV_INT_MASK, PHY_M_DEF_MSK);
}

static const u32 phy_power[] = { PCI_Y2_PHY1_POWD, PCI_Y2_PHY2_POWD };
static const u32 coma_mode[] = { PCI_Y2_PHY1_COMA, PCI_Y2_PHY2_COMA };

static void sky2_phy_power_up(struct sky2_hw *hw, unsigned port)
{
	u32 reg1;

	sky2_write8(hw, B2_TST_CTRL1, TST_CFG_WRITE_ON);
	reg1 = sky2_pci_read32(hw, PCI_DEV_REG1);
	reg1 &= ~phy_power[port];

	if (hw->chip_id == CHIP_ID_YUKON_XL && hw->chip_rev > 1)
		reg1 |= coma_mode[port];

	sky2_pci_write32(hw, PCI_DEV_REG1, reg1);
	sky2_write8(hw, B2_TST_CTRL1, TST_CFG_WRITE_OFF);
	sky2_pci_read32(hw, PCI_DEV_REG1);

	if (hw->chip_id == CHIP_ID_YUKON_FE)
		gm_phy_write(hw, port, PHY_MARV_CTRL, PHY_CT_ANE);
	else if (hw->flags & SKY2_HW_ADV_POWER_CTL)
		sky2_write8(hw, SK_REG(port, GPHY_CTRL), GPC_RST_CLR);
}

static void sky2_phy_power_down(struct sky2_hw *hw, unsigned port)
{
	u32 reg1;
	u16 ctrl;

	/* release GPHY Control reset */
	sky2_write8(hw, SK_REG(port, GPHY_CTRL), GPC_RST_CLR);

	/* release GMAC reset */
	sky2_write8(hw, SK_REG(port, GMAC_CTRL), GMC_RST_CLR);

	if (hw->flags & SKY2_HW_NEWER_PHY) {
		/* select page 2 to access MAC control register */
		gm_phy_write(hw, port, PHY_MARV_EXT_ADR, 2);

		ctrl = gm_phy_read(hw, port, PHY_MARV_PHY_CTRL);
		/* allow GMII Power Down */
		ctrl &= ~PHY_M_MAC_GMIF_PUP;
		gm_phy_write(hw, port, PHY_MARV_PHY_CTRL, ctrl);

		/* set page register back to 0 */
		gm_phy_write(hw, port, PHY_MARV_EXT_ADR, 0);
	}

	/* setup General Purpose Control Register */
	gma_write16(hw, port, GM_GP_CTRL,
		    GM_GPCR_FL_PASS | GM_GPCR_SPEED_100 | GM_GPCR_AU_ALL_DIS);

	if (hw->chip_id != CHIP_ID_YUKON_EC) {
		if (hw->chip_id == CHIP_ID_YUKON_EC_U) {
			/* select page 2 to access MAC control register */
			gm_phy_write(hw, port, PHY_MARV_EXT_ADR, 2);

			ctrl = gm_phy_read(hw, port, PHY_MARV_PHY_CTRL);
			/* enable Power Down */
			ctrl |= PHY_M_PC_POW_D_ENA;
			gm_phy_write(hw, port, PHY_MARV_PHY_CTRL, ctrl);

			/* set page register back to 0 */
			gm_phy_write(hw, port, PHY_MARV_EXT_ADR, 0);
		}

		/* set IEEE compatible Power Down Mode (dev. #4.99) */
		gm_phy_write(hw, port, PHY_MARV_CTRL, PHY_CT_PDOWN);
	}

	sky2_write8(hw, B2_TST_CTRL1, TST_CFG_WRITE_ON);
	reg1 = sky2_pci_read32(hw, PCI_DEV_REG1);
	reg1 |= phy_power[port];		/* set PHY to PowerDown/COMA Mode */
	sky2_pci_write32(hw, PCI_DEV_REG1, reg1);
	sky2_write8(hw, B2_TST_CTRL1, TST_CFG_WRITE_OFF);
}

/* Force a renegotiation */
static void sky2_phy_reinit(struct sky2_port *sky2)
{
	spin_lock_bh(&sky2->phy_lock);
	sky2_phy_init(sky2->hw, sky2->port);
	spin_unlock_bh(&sky2->phy_lock);
}

/* Put device in state to listen for Wake On Lan */
static void sky2_wol_init(struct sky2_port *sky2)
{
	struct sky2_hw *hw = sky2->hw;
	unsigned port = sky2->port;
	enum flow_control save_mode;
	u16 ctrl;
	u32 reg1;

	/* Bring hardware out of reset */
	sky2_write16(hw, B0_CTST, CS_RST_CLR);
	sky2_write16(hw, SK_REG(port, GMAC_LINK_CTRL), GMLC_RST_CLR);

	sky2_write8(hw, SK_REG(port, GPHY_CTRL), GPC_RST_CLR);
	sky2_write8(hw, SK_REG(port, GMAC_CTRL), GMC_RST_CLR);

	/* Force to 10/100
	 * sky2_reset will re-enable on resume
	 */
	save_mode = sky2->flow_mode;
	ctrl = sky2->advertising;

	sky2->advertising &= ~(ADVERTISED_1000baseT_Half|ADVERTISED_1000baseT_Full);
	sky2->flow_mode = FC_NONE;

	spin_lock_bh(&sky2->phy_lock);
	sky2_phy_power_up(hw, port);
	sky2_phy_init(hw, port);
	spin_unlock_bh(&sky2->phy_lock);

	sky2->flow_mode = save_mode;
	sky2->advertising = ctrl;

	/* Set GMAC to no flow control and auto update for speed/duplex */
	gma_write16(hw, port, GM_GP_CTRL,
		    GM_GPCR_FC_TX_DIS|GM_GPCR_TX_ENA|GM_GPCR_RX_ENA|
		    GM_GPCR_DUP_FULL|GM_GPCR_FC_RX_DIS|GM_GPCR_AU_FCT_DIS);

	/* Set WOL address */
	memcpy_toio(hw->regs + WOL_REGS(port, WOL_MAC_ADDR),
		    sky2->netdev->dev_addr, ETH_ALEN);

	/* Turn on appropriate WOL control bits */
	sky2_write16(hw, WOL_REGS(port, WOL_CTRL_STAT), WOL_CTL_CLEAR_RESULT);
	ctrl = 0;
	if (sky2->wol & WAKE_PHY)
		ctrl |= WOL_CTL_ENA_PME_ON_LINK_CHG|WOL_CTL_ENA_LINK_CHG_UNIT;
	else
		ctrl |= WOL_CTL_DIS_PME_ON_LINK_CHG|WOL_CTL_DIS_LINK_CHG_UNIT;

	if (sky2->wol & WAKE_MAGIC)
		ctrl |= WOL_CTL_ENA_PME_ON_MAGIC_PKT|WOL_CTL_ENA_MAGIC_PKT_UNIT;
	else
		ctrl |= WOL_CTL_DIS_PME_ON_MAGIC_PKT|WOL_CTL_DIS_MAGIC_PKT_UNIT;;

	ctrl |= WOL_CTL_DIS_PME_ON_PATTERN|WOL_CTL_DIS_PATTERN_UNIT;
	sky2_write16(hw, WOL_REGS(port, WOL_CTRL_STAT), ctrl);

	/* Turn on legacy PCI-Express PME mode */
	reg1 = sky2_pci_read32(hw, PCI_DEV_REG1);
	reg1 |= PCI_Y2_PME_LEGACY;
	sky2_pci_write32(hw, PCI_DEV_REG1, reg1);

	/* block receiver */
	sky2_write8(hw, SK_REG(port, RX_GMF_CTRL_T), GMF_RST_SET);

}

static void sky2_set_tx_stfwd(struct sky2_hw *hw, unsigned port)
{
	struct net_device *dev = hw->dev[port];

	if ( (hw->chip_id == CHIP_ID_YUKON_EX &&
	      hw->chip_rev != CHIP_REV_YU_EX_A0) ||
	     hw->chip_id == CHIP_ID_YUKON_FE_P ||
	     hw->chip_id == CHIP_ID_YUKON_SUPR) {
		/* Yukon-Extreme B0 and further Extreme devices */
		/* enable Store & Forward mode for TX */

		if (dev->mtu <= ETH_DATA_LEN)
			sky2_write32(hw, SK_REG(port, TX_GMF_CTRL_T),
				     TX_JUMBO_DIS | TX_STFW_ENA);

		else
			sky2_write32(hw, SK_REG(port, TX_GMF_CTRL_T),
				     TX_JUMBO_ENA| TX_STFW_ENA);
	} else {
		if (dev->mtu <= ETH_DATA_LEN)
			sky2_write32(hw, SK_REG(port, TX_GMF_CTRL_T), TX_STFW_ENA);
		else {
			/* set Tx GMAC FIFO Almost Empty Threshold */
			sky2_write32(hw, SK_REG(port, TX_GMF_AE_THR),
				     (ECU_JUMBO_WM << 16) | ECU_AE_THR);

			sky2_write32(hw, SK_REG(port, TX_GMF_CTRL_T), TX_STFW_DIS);

			/* Can't do offload because of lack of store/forward */
			dev->features &= ~(NETIF_F_TSO | NETIF_F_SG | NETIF_F_ALL_CSUM);
		}
	}
}

static void sky2_mac_init(struct sky2_hw *hw, unsigned port)
{
	struct sky2_port *sky2 = netdev_priv(hw->dev[port]);
	u16 reg;
	u32 rx_reg;
	int i;
	const u8 *addr = hw->dev[port]->dev_addr;

	sky2_write8(hw, SK_REG(port, GPHY_CTRL), GPC_RST_SET);
	sky2_write8(hw, SK_REG(port, GPHY_CTRL), GPC_RST_CLR);

	sky2_write8(hw, SK_REG(port, GMAC_CTRL), GMC_RST_CLR);

	if (hw->chip_id == CHIP_ID_YUKON_XL && hw->chip_rev == 0 && port == 1) {
		/* WA DEV_472 -- looks like crossed wires on port 2 */
		/* clear GMAC 1 Control reset */
		sky2_write8(hw, SK_REG(0, GMAC_CTRL), GMC_RST_CLR);
		do {
			sky2_write8(hw, SK_REG(1, GMAC_CTRL), GMC_RST_SET);
			sky2_write8(hw, SK_REG(1, GMAC_CTRL), GMC_RST_CLR);
		} while (gm_phy_read(hw, 1, PHY_MARV_ID0) != PHY_MARV_ID0_VAL ||
			 gm_phy_read(hw, 1, PHY_MARV_ID1) != PHY_MARV_ID1_Y2 ||
			 gm_phy_read(hw, 1, PHY_MARV_INT_MASK) != 0);
	}

	sky2_read16(hw, SK_REG(port, GMAC_IRQ_SRC));

	/* Enable Transmit FIFO Underrun */
	sky2_write8(hw, SK_REG(port, GMAC_IRQ_MSK), GMAC_DEF_MSK);

	spin_lock_bh(&sky2->phy_lock);
	sky2_phy_power_up(hw, port);
	sky2_phy_init(hw, port);
	spin_unlock_bh(&sky2->phy_lock);

	/* MIB clear */
	reg = gma_read16(hw, port, GM_PHY_ADDR);
	gma_write16(hw, port, GM_PHY_ADDR, reg | GM_PAR_MIB_CLR);

	for (i = GM_MIB_CNT_BASE; i <= GM_MIB_CNT_END; i += 4)
		gma_read16(hw, port, i);
	gma_write16(hw, port, GM_PHY_ADDR, reg);

	/* transmit control */
	gma_write16(hw, port, GM_TX_CTRL, TX_COL_THR(TX_COL_DEF));

	/* receive control reg: unicast + multicast + no FCS  */
	gma_write16(hw, port, GM_RX_CTRL,
		    GM_RXCR_UCF_ENA | GM_RXCR_CRC_DIS | GM_RXCR_MCF_ENA);

	/* transmit flow control */
	gma_write16(hw, port, GM_TX_FLOW_CTRL, 0xffff);

	/* transmit parameter */
	gma_write16(hw, port, GM_TX_PARAM,
		    TX_JAM_LEN_VAL(TX_JAM_LEN_DEF) |
		    TX_JAM_IPG_VAL(TX_JAM_IPG_DEF) |
		    TX_IPG_JAM_DATA(TX_IPG_JAM_DEF) |
		    TX_BACK_OFF_LIM(TX_BOF_LIM_DEF));

	/* serial mode register */
	reg = DATA_BLIND_VAL(DATA_BLIND_DEF) |
		GM_SMOD_VLAN_ENA | IPG_DATA_VAL(IPG_DATA_DEF);

	if (hw->dev[port]->mtu > ETH_DATA_LEN)
		reg |= GM_SMOD_JUMBO_ENA;

	gma_write16(hw, port, GM_SERIAL_MODE, reg);

	/* virtual address for data */
	gma_set_addr(hw, port, GM_SRC_ADDR_2L, addr);

	/* physical address: used for pause frames */
	gma_set_addr(hw, port, GM_SRC_ADDR_1L, addr);

	/* ignore counter overflows */
	gma_write16(hw, port, GM_TX_IRQ_MSK, 0);
	gma_write16(hw, port, GM_RX_IRQ_MSK, 0);
	gma_write16(hw, port, GM_TR_IRQ_MSK, 0);

	/* Configure Rx MAC FIFO */
	sky2_write8(hw, SK_REG(port, RX_GMF_CTRL_T), GMF_RST_CLR);
	rx_reg = GMF_OPER_ON | GMF_RX_F_FL_ON;
	if (hw->chip_id == CHIP_ID_YUKON_EX ||
	    hw->chip_id == CHIP_ID_YUKON_FE_P)
		rx_reg |= GMF_RX_OVER_ON;

	sky2_write32(hw, SK_REG(port, RX_GMF_CTRL_T), rx_reg);

	if (hw->chip_id == CHIP_ID_YUKON_XL) {
		/* Hardware errata - clear flush mask */
		sky2_write16(hw, SK_REG(port, RX_GMF_FL_MSK), 0);
	} else {
		/* Flush Rx MAC FIFO on any flow control or error */
		sky2_write16(hw, SK_REG(port, RX_GMF_FL_MSK), GMR_FS_ANY_ERR);
	}

	/* Set threshold to 0xa (64 bytes) + 1 to workaround pause bug  */
	reg = RX_GMF_FL_THR_DEF + 1;
	/* Another magic mystery workaround from sk98lin */
	if (hw->chip_id == CHIP_ID_YUKON_FE_P &&
	    hw->chip_rev == CHIP_REV_YU_FE2_A0)
		reg = 0x178;
	sky2_write16(hw, SK_REG(port, RX_GMF_FL_THR), reg);

	/* Configure Tx MAC FIFO */
	sky2_write8(hw, SK_REG(port, TX_GMF_CTRL_T), GMF_RST_CLR);
	sky2_write16(hw, SK_REG(port, TX_GMF_CTRL_T), GMF_OPER_ON);

	/* On chips without ram buffer, pause is controled by MAC level */
	if (!(hw->flags & SKY2_HW_RAM_BUFFER)) {
		sky2_write8(hw, SK_REG(port, RX_GMF_LP_THR), 768/8);
		sky2_write8(hw, SK_REG(port, RX_GMF_UP_THR), 1024/8);

		sky2_set_tx_stfwd(hw, port);
	}

	if (hw->chip_id == CHIP_ID_YUKON_FE_P &&
	    hw->chip_rev == CHIP_REV_YU_FE2_A0) {
		/* disable dynamic watermark */
		reg = sky2_read16(hw, SK_REG(port, TX_GMF_EA));
		reg &= ~TX_DYN_WM_ENA;
		sky2_write16(hw, SK_REG(port, TX_GMF_EA), reg);
	}
}

/* Assign Ram Buffer allocation to queue */
static void sky2_ramset(struct sky2_hw *hw, u16 q, u32 start, u32 space)
{
	u32 end;

	/* convert from K bytes to qwords used for hw register */
	start *= 1024/8;
	space *= 1024/8;
	end = start + space - 1;

	sky2_write8(hw, RB_ADDR(q, RB_CTRL), RB_RST_CLR);
	sky2_write32(hw, RB_ADDR(q, RB_START), start);
	sky2_write32(hw, RB_ADDR(q, RB_END), end);
	sky2_write32(hw, RB_ADDR(q, RB_WP), start);
	sky2_write32(hw, RB_ADDR(q, RB_RP), start);

	if (q == Q_R1 || q == Q_R2) {
		u32 tp = space - space/4;

		/* On receive queue's set the thresholds
		 * give receiver priority when > 3/4 full