diff options
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/bnx2x_init_values.h | 533 | ||||
-rw-r--r-- | drivers/net/bnx2x_main.c | 100 |
2 files changed, 299 insertions, 334 deletions
diff --git a/drivers/net/bnx2x_init_values.h b/drivers/net/bnx2x_init_values.h index 63019055e4bb..9755bf6b08dd 100644 --- a/drivers/net/bnx2x_init_values.h +++ b/drivers/net/bnx2x_init_values.h | |||
@@ -901,31 +901,28 @@ static const struct raw_op init_ops[] = { | |||
901 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x3760, 0x4}, | 901 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x3760, 0x4}, |
902 | {OP_ZR_E1, USEM_REG_FAST_MEMORY + 0x1e20, 0x42}, | 902 | {OP_ZR_E1, USEM_REG_FAST_MEMORY + 0x1e20, 0x42}, |
903 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x3738, 0x9}, | 903 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x3738, 0x9}, |
904 | {OP_ZR_E1, USEM_REG_FAST_MEMORY + 0x3000, 0x400}, | 904 | {OP_ZR_E1, USEM_REG_FAST_MEMORY + 0x4b68, 0x2}, |
905 | {OP_SW_E1H, USEM_REG_FAST_MEMORY + 0x3738 + 0x24, 0x10293}, | 905 | {OP_SW_E1H, USEM_REG_FAST_MEMORY + 0x3738 + 0x24, 0x10293}, |
906 | {OP_ZR_E1, USEM_REG_FAST_MEMORY + 0x2c00, 0x2}, | 906 | {OP_SW_E1, USEM_REG_FAST_MEMORY + 0x4b68 + 0x8, 0x20278}, |
907 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x3180, 0x42}, | 907 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x3180, 0x42}, |
908 | {OP_SW_E1, USEM_REG_FAST_MEMORY + 0x2c00 + 0x8, 0x20278}, | 908 | {OP_ZR_E1, USEM_REG_FAST_MEMORY + 0x4b10, 0x2}, |
909 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x5000, 0x400}, | 909 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x5000, 0x400}, |
910 | {OP_ZR_E1, USEM_REG_FAST_MEMORY + 0x4b68, 0x2}, | 910 | {OP_SW_E1, USEM_REG_FAST_MEMORY + 0x2830, 0x2027a}, |
911 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x4000, 0x2}, | 911 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x4000, 0x2}, |
912 | {OP_SW_E1, USEM_REG_FAST_MEMORY + 0x4b68 + 0x8, 0x2027a}, | ||
913 | {OP_SW_E1H, USEM_REG_FAST_MEMORY + 0x4000 + 0x8, 0x20294}, | 912 | {OP_SW_E1H, USEM_REG_FAST_MEMORY + 0x4000 + 0x8, 0x20294}, |
914 | {OP_ZR_E1, USEM_REG_FAST_MEMORY + 0x4b10, 0x2}, | ||
915 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x6b68, 0x2}, | 913 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x6b68, 0x2}, |
916 | {OP_SW_E1, USEM_REG_FAST_MEMORY + 0x2830, 0x2027c}, | ||
917 | {OP_SW_E1H, USEM_REG_FAST_MEMORY + 0x6b68 + 0x8, 0x20296}, | 914 | {OP_SW_E1H, USEM_REG_FAST_MEMORY + 0x6b68 + 0x8, 0x20296}, |
918 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x6b10, 0x2}, | 915 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x6b10, 0x2}, |
919 | {OP_SW_E1H, USEM_REG_FAST_MEMORY + 0x74c0, 0x20298}, | 916 | {OP_SW_E1H, USEM_REG_FAST_MEMORY + 0x74c0, 0x20298}, |
920 | {OP_WR, USEM_REG_FAST_MEMORY + 0x10800, 0x1000000}, | 917 | {OP_WR, USEM_REG_FAST_MEMORY + 0x10800, 0x1000000}, |
921 | {OP_SW_E1, USEM_REG_FAST_MEMORY + 0x10c00, 0x10027e}, | 918 | {OP_SW_E1, USEM_REG_FAST_MEMORY + 0x10c00, 0x10027c}, |
922 | {OP_SW_E1H, USEM_REG_FAST_MEMORY + 0x10c00, 0x10029a}, | 919 | {OP_SW_E1H, USEM_REG_FAST_MEMORY + 0x10c00, 0x10029a}, |
923 | {OP_WR, USEM_REG_FAST_MEMORY + 0x10800, 0x0}, | 920 | {OP_WR, USEM_REG_FAST_MEMORY + 0x10800, 0x0}, |
924 | {OP_SW_E1, USEM_REG_FAST_MEMORY + 0x10c40, 0x10028e}, | 921 | {OP_SW_E1, USEM_REG_FAST_MEMORY + 0x10c40, 0x10028c}, |
925 | {OP_SW_E1H, USEM_REG_FAST_MEMORY + 0x10c40, 0x1002aa}, | 922 | {OP_SW_E1H, USEM_REG_FAST_MEMORY + 0x10c40, 0x1002aa}, |
926 | {OP_ZP_E1, USEM_REG_INT_TABLE, 0xc20000}, | 923 | {OP_ZP_E1, USEM_REG_INT_TABLE, 0xc20000}, |
927 | {OP_ZP_E1H, USEM_REG_INT_TABLE, 0xc40000}, | 924 | {OP_ZP_E1H, USEM_REG_INT_TABLE, 0xc40000}, |
928 | {OP_WR_64_E1, USEM_REG_INT_TABLE + 0x368, 0x13029e}, | 925 | {OP_WR_64_E1, USEM_REG_INT_TABLE + 0x368, 0x13029c}, |
929 | {OP_WR_64_E1H, USEM_REG_INT_TABLE + 0x368, 0x1302ba}, | 926 | {OP_WR_64_E1H, USEM_REG_INT_TABLE + 0x368, 0x1302ba}, |
930 | {OP_ZP_E1, USEM_REG_PRAM, 0x311c0000}, | 927 | {OP_ZP_E1, USEM_REG_PRAM, 0x311c0000}, |
931 | {OP_ZP_E1H, USEM_REG_PRAM, 0x31070000}, | 928 | {OP_ZP_E1H, USEM_REG_PRAM, 0x31070000}, |
@@ -933,11 +930,11 @@ static const struct raw_op init_ops[] = { | |||
933 | {OP_ZP_E1H, USEM_REG_PRAM + 0x8000, 0x330e0c42}, | 930 | {OP_ZP_E1H, USEM_REG_PRAM + 0x8000, 0x330e0c42}, |
934 | {OP_ZP_E1, USEM_REG_PRAM + 0x10000, 0x38561919}, | 931 | {OP_ZP_E1, USEM_REG_PRAM + 0x10000, 0x38561919}, |
935 | {OP_ZP_E1H, USEM_REG_PRAM + 0x10000, 0x389b1906}, | 932 | {OP_ZP_E1H, USEM_REG_PRAM + 0x10000, 0x389b1906}, |
936 | {OP_WR_64_E1, USEM_REG_PRAM + 0x17fe0, 0x500402a0}, | 933 | {OP_WR_64_E1, USEM_REG_PRAM + 0x17fe0, 0x5004029e}, |
937 | {OP_ZP_E1H, USEM_REG_PRAM + 0x18000, 0x132272d}, | 934 | {OP_ZP_E1H, USEM_REG_PRAM + 0x18000, 0x132272d}, |
938 | {OP_WR_64_E1H, USEM_REG_PRAM + 0x18250, 0x4fb602bc}, | 935 | {OP_WR_64_E1H, USEM_REG_PRAM + 0x18250, 0x4fb602bc}, |
939 | #define USEM_COMMON_END 790 | 936 | #define USEM_COMMON_END 787 |
940 | #define USEM_PORT0_START 790 | 937 | #define USEM_PORT0_START 787 |
941 | {OP_ZR_E1, USEM_REG_FAST_MEMORY + 0x1400, 0xa0}, | 938 | {OP_ZR_E1, USEM_REG_FAST_MEMORY + 0x1400, 0xa0}, |
942 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x9000, 0xa0}, | 939 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x9000, 0xa0}, |
943 | {OP_ZR_E1, USEM_REG_FAST_MEMORY + 0x1900, 0xa}, | 940 | {OP_ZR_E1, USEM_REG_FAST_MEMORY + 0x1900, 0xa}, |
@@ -950,44 +947,27 @@ static const struct raw_op init_ops[] = { | |||
950 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x3288, 0x96}, | 947 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x3288, 0x96}, |
951 | {OP_ZR_E1, USEM_REG_FAST_MEMORY + 0x5440, 0x72}, | 948 | {OP_ZR_E1, USEM_REG_FAST_MEMORY + 0x5440, 0x72}, |
952 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x5000, 0x20}, | 949 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x5000, 0x20}, |
953 | {OP_ZR_E1, USEM_REG_FAST_MEMORY + 0x3000, 0x20}, | 950 | {OP_ZR_E1, USEM_REG_FAST_MEMORY + 0x4b78, 0x52}, |
954 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x5100, 0x20}, | 951 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x5100, 0x20}, |
955 | {OP_ZR_E1, USEM_REG_FAST_MEMORY + 0x3100, 0x20}, | 952 | {OP_ZR_E1, USEM_REG_FAST_MEMORY + 0x4e08, 0xc}, |
956 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x5200, 0x20}, | 953 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x5200, 0x20}, |
957 | {OP_ZR_E1, USEM_REG_FAST_MEMORY + 0x3200, 0x20}, | ||
958 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x5300, 0x20}, | 954 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x5300, 0x20}, |
959 | {OP_ZR_E1, USEM_REG_FAST_MEMORY + 0x3300, 0x20}, | ||
960 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x5400, 0x20}, | 955 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x5400, 0x20}, |
961 | {OP_ZR_E1, USEM_REG_FAST_MEMORY + 0x3400, 0x20}, | ||
962 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x5500, 0x20}, | 956 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x5500, 0x20}, |
963 | {OP_ZR_E1, USEM_REG_FAST_MEMORY + 0x3500, 0x20}, | ||
964 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x5600, 0x20}, | 957 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x5600, 0x20}, |
965 | {OP_ZR_E1, USEM_REG_FAST_MEMORY + 0x3600, 0x20}, | ||
966 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x5700, 0x20}, | 958 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x5700, 0x20}, |
967 | {OP_ZR_E1, USEM_REG_FAST_MEMORY + 0x3700, 0x20}, | ||
968 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x5800, 0x20}, | 959 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x5800, 0x20}, |
969 | {OP_ZR_E1, USEM_REG_FAST_MEMORY + 0x3800, 0x20}, | ||
970 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x5900, 0x20}, | 960 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x5900, 0x20}, |
971 | {OP_ZR_E1, USEM_REG_FAST_MEMORY + 0x3900, 0x20}, | ||
972 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x5a00, 0x20}, | 961 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x5a00, 0x20}, |
973 | {OP_ZR_E1, USEM_REG_FAST_MEMORY + 0x3a00, 0x20}, | ||
974 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x5b00, 0x20}, | 962 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x5b00, 0x20}, |
975 | {OP_ZR_E1, USEM_REG_FAST_MEMORY + 0x3b00, 0x20}, | ||
976 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x5c00, 0x20}, | 963 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x5c00, 0x20}, |
977 | {OP_ZR_E1, USEM_REG_FAST_MEMORY + 0x3c00, 0x20}, | ||
978 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x5d00, 0x20}, | 964 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x5d00, 0x20}, |
979 | {OP_ZR_E1, USEM_REG_FAST_MEMORY + 0x3d00, 0x20}, | ||
980 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x5e00, 0x20}, | 965 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x5e00, 0x20}, |
981 | {OP_ZR_E1, USEM_REG_FAST_MEMORY + 0x3e00, 0x20}, | ||
982 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x5f00, 0x20}, | 966 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x5f00, 0x20}, |
983 | {OP_ZR_E1, USEM_REG_FAST_MEMORY + 0x3f00, 0x20}, | ||
984 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x6b78, 0x52}, | 967 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x6b78, 0x52}, |
985 | {OP_ZR_E1, USEM_REG_FAST_MEMORY + 0x2c10, 0x2}, | ||
986 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x6e08, 0xc}, | 968 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x6e08, 0xc}, |
987 | {OP_ZR_E1, USEM_REG_FAST_MEMORY + 0x4b78, 0x52}, | 969 | #define USEM_PORT0_END 818 |
988 | {OP_ZR_E1, USEM_REG_FAST_MEMORY + 0x4e08, 0xc}, | 970 | #define USEM_PORT1_START 818 |
989 | #define USEM_PORT0_END 838 | ||
990 | #define USEM_PORT1_START 838 | ||
991 | {OP_ZR_E1, USEM_REG_FAST_MEMORY + 0x1680, 0xa0}, | 971 | {OP_ZR_E1, USEM_REG_FAST_MEMORY + 0x1680, 0xa0}, |
992 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x9280, 0xa0}, | 972 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x9280, 0xa0}, |
993 | {OP_ZR_E1, USEM_REG_FAST_MEMORY + 0x1928, 0xa}, | 973 | {OP_ZR_E1, USEM_REG_FAST_MEMORY + 0x1928, 0xa}, |
@@ -1000,76 +980,59 @@ static const struct raw_op init_ops[] = { | |||
1000 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x34e0, 0x96}, | 980 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x34e0, 0x96}, |
1001 | {OP_ZR_E1, USEM_REG_FAST_MEMORY + 0x5608, 0x72}, | 981 | {OP_ZR_E1, USEM_REG_FAST_MEMORY + 0x5608, 0x72}, |
1002 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x5080, 0x20}, | 982 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x5080, 0x20}, |
1003 | {OP_ZR_E1, USEM_REG_FAST_MEMORY + 0x3080, 0x20}, | 983 | {OP_ZR_E1, USEM_REG_FAST_MEMORY + 0x4cc0, 0x52}, |
1004 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x5180, 0x20}, | 984 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x5180, 0x20}, |
1005 | {OP_ZR_E1, USEM_REG_FAST_MEMORY + 0x3180, 0x20}, | 985 | {OP_ZR_E1, USEM_REG_FAST_MEMORY + 0x4e38, 0xc}, |
1006 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x5280, 0x20}, | 986 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x5280, 0x20}, |
1007 | {OP_ZR_E1, USEM_REG_FAST_MEMORY + 0x3280, 0x20}, | ||
1008 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x5380, 0x20}, | 987 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x5380, 0x20}, |
1009 | {OP_ZR_E1, USEM_REG_FAST_MEMORY + 0x3380, 0x20}, | ||
1010 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x5480, 0x20}, | 988 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x5480, 0x20}, |
1011 | {OP_ZR_E1, USEM_REG_FAST_MEMORY + 0x3480, 0x20}, | ||
1012 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x5580, 0x20}, | 989 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x5580, 0x20}, |
1013 | {OP_ZR_E1, USEM_REG_FAST_MEMORY + 0x3580, 0x20}, | ||
1014 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x5680, 0x20}, | 990 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x5680, 0x20}, |
1015 | {OP_ZR_E1, USEM_REG_FAST_MEMORY + 0x3680, 0x20}, | ||
1016 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x5780, 0x20}, | 991 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x5780, 0x20}, |
1017 | {OP_ZR_E1, USEM_REG_FAST_MEMORY + 0x3780, 0x20}, | ||
1018 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x5880, 0x20}, | 992 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x5880, 0x20}, |
1019 | {OP_ZR_E1, USEM_REG_FAST_MEMORY + 0x3880, 0x20}, | ||
1020 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x5980, 0x20}, | 993 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x5980, 0x20}, |
1021 | {OP_ZR_E1, USEM_REG_FAST_MEMORY + 0x3980, 0x20}, | ||
1022 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x5a80, 0x20}, | 994 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x5a80, 0x20}, |
1023 | {OP_ZR_E1, USEM_REG_FAST_MEMORY + 0x3a80, 0x20}, | ||
1024 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x5b80, 0x20}, | 995 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x5b80, 0x20}, |
1025 | {OP_ZR_E1, USEM_REG_FAST_MEMORY + 0x3b80, 0x20}, | ||
1026 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x5c80, 0x20}, | 996 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x5c80, 0x20}, |
1027 | {OP_ZR_E1, USEM_REG_FAST_MEMORY + 0x3c80, 0x20}, | ||
1028 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x5d80, 0x20}, | 997 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x5d80, 0x20}, |
1029 | {OP_ZR_E1, USEM_REG_FAST_MEMORY + 0x3d80, 0x20}, | ||
1030 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x5e80, 0x20}, | 998 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x5e80, 0x20}, |
1031 | {OP_ZR_E1, USEM_REG_FAST_MEMORY + 0x3e80, 0x20}, | ||
1032 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x5f80, 0x20}, | 999 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x5f80, 0x20}, |
1033 | {OP_ZR_E1, USEM_REG_FAST_MEMORY + 0x3f80, 0x20}, | ||
1034 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x6cc0, 0x52}, | 1000 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x6cc0, 0x52}, |
1035 | {OP_ZR_E1, USEM_REG_FAST_MEMORY + 0x2c20, 0x2}, | ||
1036 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x6e38, 0xc}, | 1001 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x6e38, 0xc}, |
1037 | {OP_ZR_E1, USEM_REG_FAST_MEMORY + 0x4cc0, 0x52}, | 1002 | #define USEM_PORT1_END 849 |
1038 | {OP_ZR_E1, USEM_REG_FAST_MEMORY + 0x4e38, 0xc}, | 1003 | #define USEM_FUNC0_START 849 |
1039 | #define USEM_PORT1_END 886 | ||
1040 | #define USEM_FUNC0_START 886 | ||
1041 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x3000, 0x4}, | 1004 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x3000, 0x4}, |
1042 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x4010, 0x2}, | 1005 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x4010, 0x2}, |
1043 | #define USEM_FUNC0_END 888 | 1006 | #define USEM_FUNC0_END 851 |
1044 | #define USEM_FUNC1_START 888 | 1007 | #define USEM_FUNC1_START 851 |
1045 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x3010, 0x4}, | 1008 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x3010, 0x4}, |
1046 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x4020, 0x2}, | 1009 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x4020, 0x2}, |
1047 | #define USEM_FUNC1_END 890 | 1010 | #define USEM_FUNC1_END 853 |
1048 | #define USEM_FUNC2_START 890 | 1011 | #define USEM_FUNC2_START 853 |
1049 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x3020, 0x4}, | 1012 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x3020, 0x4}, |
1050 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x4030, 0x2}, | 1013 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x4030, 0x2}, |
1051 | #define USEM_FUNC2_END 892 | 1014 | #define USEM_FUNC2_END 855 |
1052 | #define USEM_FUNC3_START 892 | 1015 | #define USEM_FUNC3_START 855 |
1053 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x3030, 0x4}, | 1016 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x3030, 0x4}, |
1054 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x4040, 0x2}, | 1017 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x4040, 0x2}, |
1055 | #define USEM_FUNC3_END 894 | 1018 | #define USEM_FUNC3_END 857 |
1056 | #define USEM_FUNC4_START 894 | 1019 | #define USEM_FUNC4_START 857 |
1057 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x3040, 0x4}, | 1020 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x3040, 0x4}, |
1058 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x4050, 0x2}, | 1021 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x4050, 0x2}, |
1059 | #define USEM_FUNC4_END 896 | 1022 | #define USEM_FUNC4_END 859 |
1060 | #define USEM_FUNC5_START 896 | 1023 | #define USEM_FUNC5_START 859 |
1061 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x3050, 0x4}, | 1024 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x3050, 0x4}, |
1062 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x4060, 0x2}, | 1025 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x4060, 0x2}, |
1063 | #define USEM_FUNC5_END 898 | 1026 | #define USEM_FUNC5_END 861 |
1064 | #define USEM_FUNC6_START 898 | 1027 | #define USEM_FUNC6_START 861 |
1065 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x3060, 0x4}, | 1028 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x3060, 0x4}, |
1066 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x4070, 0x2}, | 1029 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x4070, 0x2}, |
1067 | #define USEM_FUNC6_END 900 | 1030 | #define USEM_FUNC6_END 863 |
1068 | #define USEM_FUNC7_START 900 | 1031 | #define USEM_FUNC7_START 863 |
1069 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x3070, 0x4}, | 1032 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x3070, 0x4}, |
1070 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x4080, 0x2}, | 1033 | {OP_ZR_E1H, USEM_REG_FAST_MEMORY + 0x4080, 0x2}, |
1071 | #define USEM_FUNC7_END 902 | 1034 | #define USEM_FUNC7_END 865 |
1072 | #define CSEM_COMMON_START 902 | 1035 | #define CSEM_COMMON_START 865 |
1073 | {OP_RD, CSEM_REG_MSG_NUM_FIC0, 0x0}, | 1036 | {OP_RD, CSEM_REG_MSG_NUM_FIC0, 0x0}, |
1074 | {OP_RD, CSEM_REG_MSG_NUM_FIC1, 0x0}, | 1037 | {OP_RD, CSEM_REG_MSG_NUM_FIC1, 0x0}, |
1075 | {OP_RD, CSEM_REG_MSG_NUM_FOC0, 0x0}, | 1038 | {OP_RD, CSEM_REG_MSG_NUM_FOC0, 0x0}, |
@@ -1128,29 +1091,29 @@ static const struct raw_op init_ops[] = { | |||
1128 | {OP_WR_E1H, CSEM_REG_FAST_MEMORY + 0x11e8, 0x0}, | 1091 | {OP_WR_E1H, CSEM_REG_FAST_MEMORY + 0x11e8, 0x0}, |
1129 | {OP_ZR_E1, CSEM_REG_FAST_MEMORY + 0x25c0, 0x240}, | 1092 | {OP_ZR_E1, CSEM_REG_FAST_MEMORY + 0x25c0, 0x240}, |
1130 | {OP_ZR_E1H, CSEM_REG_FAST_MEMORY + 0x3000, 0xc0}, | 1093 | {OP_ZR_E1H, CSEM_REG_FAST_MEMORY + 0x3000, 0xc0}, |
1131 | {OP_SW_E1, CSEM_REG_FAST_MEMORY + 0x2ec8, 0x802a2}, | 1094 | {OP_SW_E1, CSEM_REG_FAST_MEMORY + 0x2ec8, 0x802a0}, |
1132 | {OP_ZR_E1H, CSEM_REG_FAST_MEMORY + 0x4070, 0x80}, | 1095 | {OP_ZR_E1H, CSEM_REG_FAST_MEMORY + 0x4070, 0x80}, |
1133 | {OP_ZR_E1H, CSEM_REG_FAST_MEMORY + 0x5280, 0x4}, | 1096 | {OP_ZR_E1H, CSEM_REG_FAST_MEMORY + 0x5280, 0x4}, |
1134 | {OP_ZR_E1H, CSEM_REG_FAST_MEMORY + 0x6280, 0x240}, | 1097 | {OP_ZR_E1H, CSEM_REG_FAST_MEMORY + 0x6280, 0x240}, |
1135 | {OP_SW_E1H, CSEM_REG_FAST_MEMORY + 0x6b88, 0x2002be}, | 1098 | {OP_SW_E1H, CSEM_REG_FAST_MEMORY + 0x6b88, 0x2002be}, |
1136 | {OP_WR, CSEM_REG_FAST_MEMORY + 0x10800, 0x13fffff}, | 1099 | {OP_WR, CSEM_REG_FAST_MEMORY + 0x10800, 0x13fffff}, |
1137 | {OP_SW_E1, CSEM_REG_FAST_MEMORY + 0x10c00, 0x1002aa}, | 1100 | {OP_SW_E1, CSEM_REG_FAST_MEMORY + 0x10c00, 0x1002a8}, |
1138 | {OP_SW_E1H, CSEM_REG_FAST_MEMORY + 0x10c00, 0x1002de}, | 1101 | {OP_SW_E1H, CSEM_REG_FAST_MEMORY + 0x10c00, 0x1002de}, |
1139 | {OP_WR, CSEM_REG_FAST_MEMORY + 0x10800, 0x0}, | 1102 | {OP_WR, CSEM_REG_FAST_MEMORY + 0x10800, 0x0}, |
1140 | {OP_SW_E1, CSEM_REG_FAST_MEMORY + 0x10c40, 0x1002ba}, | 1103 | {OP_SW_E1, CSEM_REG_FAST_MEMORY + 0x10c40, 0x1002b8}, |
1141 | {OP_SW_E1H, CSEM_REG_FAST_MEMORY + 0x10c40, 0x1002ee}, | 1104 | {OP_SW_E1H, CSEM_REG_FAST_MEMORY + 0x10c40, 0x1002ee}, |
1142 | {OP_ZP_E1, CSEM_REG_INT_TABLE, 0x6e0000}, | 1105 | {OP_ZP_E1, CSEM_REG_INT_TABLE, 0x6e0000}, |
1143 | {OP_ZP_E1H, CSEM_REG_INT_TABLE, 0x6f0000}, | 1106 | {OP_ZP_E1H, CSEM_REG_INT_TABLE, 0x6f0000}, |
1144 | {OP_WR_64_E1, CSEM_REG_INT_TABLE + 0x380, 0x1002ca}, | 1107 | {OP_WR_64_E1, CSEM_REG_INT_TABLE + 0x380, 0x1002c8}, |
1145 | {OP_WR_64_E1H, CSEM_REG_INT_TABLE + 0x380, 0x1002fe}, | 1108 | {OP_WR_64_E1H, CSEM_REG_INT_TABLE + 0x380, 0x1002fe}, |
1146 | {OP_ZP_E1, CSEM_REG_PRAM, 0x32580000}, | 1109 | {OP_ZP_E1, CSEM_REG_PRAM, 0x32580000}, |
1147 | {OP_ZP_E1H, CSEM_REG_PRAM, 0x31fa0000}, | 1110 | {OP_ZP_E1H, CSEM_REG_PRAM, 0x31fa0000}, |
1148 | {OP_ZP_E1, CSEM_REG_PRAM + 0x8000, 0x18270c96}, | 1111 | {OP_ZP_E1, CSEM_REG_PRAM + 0x8000, 0x18270c96}, |
1149 | {OP_ZP_E1H, CSEM_REG_PRAM + 0x8000, 0x19040c7f}, | 1112 | {OP_ZP_E1H, CSEM_REG_PRAM + 0x8000, 0x19040c7f}, |
1150 | {OP_WR_64_E1, CSEM_REG_PRAM + 0xb210, 0x682402cc}, | 1113 | {OP_WR_64_E1, CSEM_REG_PRAM + 0xb210, 0x682402ca}, |
1151 | {OP_WR_64_E1H, CSEM_REG_PRAM + 0xb430, 0x67e00300}, | 1114 | {OP_WR_64_E1H, CSEM_REG_PRAM + 0xb430, 0x67e00300}, |
1152 | #define CSEM_COMMON_END 981 | 1115 | #define CSEM_COMMON_END 944 |
1153 | #define CSEM_PORT0_START 981 | 1116 | #define CSEM_PORT0_START 944 |
1154 | {OP_ZR_E1, CSEM_REG_FAST_MEMORY + 0x1400, 0xa0}, | 1117 | {OP_ZR_E1, CSEM_REG_FAST_MEMORY + 0x1400, 0xa0}, |
1155 | {OP_ZR_E1H, CSEM_REG_FAST_MEMORY + 0x8000, 0xa0}, | 1118 | {OP_ZR_E1H, CSEM_REG_FAST_MEMORY + 0x8000, 0xa0}, |
1156 | {OP_ZR_E1, CSEM_REG_FAST_MEMORY + 0x1900, 0x10}, | 1119 | {OP_ZR_E1, CSEM_REG_FAST_MEMORY + 0x1900, 0x10}, |
@@ -1163,8 +1126,8 @@ static const struct raw_op init_ops[] = { | |||
1163 | {OP_ZR_E1H, CSEM_REG_FAST_MEMORY + 0x6040, 0x30}, | 1126 | {OP_ZR_E1H, CSEM_REG_FAST_MEMORY + 0x6040, 0x30}, |
1164 | {OP_ZR_E1, CSEM_REG_FAST_MEMORY + 0x3040, 0x6}, | 1127 | {OP_ZR_E1, CSEM_REG_FAST_MEMORY + 0x3040, 0x6}, |
1165 | {OP_ZR_E1, CSEM_REG_FAST_MEMORY + 0x2410, 0x30}, | 1128 | {OP_ZR_E1, CSEM_REG_FAST_MEMORY + 0x2410, 0x30}, |
1166 | #define CSEM_PORT0_END 993 | 1129 | #define CSEM_PORT0_END 956 |
1167 | #define CSEM_PORT1_START 993 | 1130 | #define CSEM_PORT1_START 956 |
1168 | {OP_ZR_E1, CSEM_REG_FAST_MEMORY + 0x1680, 0xa0}, | 1131 | {OP_ZR_E1, CSEM_REG_FAST_MEMORY + 0x1680, 0xa0}, |
1169 | {OP_ZR_E1H, CSEM_REG_FAST_MEMORY + 0x8280, 0xa0}, | 1132 | {OP_ZR_E1H, CSEM_REG_FAST_MEMORY + 0x8280, 0xa0}, |
1170 | {OP_ZR_E1, CSEM_REG_FAST_MEMORY + 0x1940, 0x10}, | 1133 | {OP_ZR_E1, CSEM_REG_FAST_MEMORY + 0x1940, 0x10}, |
@@ -1177,43 +1140,43 @@ static const struct raw_op init_ops[] = { | |||
1177 | {OP_ZR_E1H, CSEM_REG_FAST_MEMORY + 0x6100, 0x30}, | 1140 | {OP_ZR_E1H, CSEM_REG_FAST_MEMORY + 0x6100, 0x30}, |
1178 | {OP_ZR_E1, CSEM_REG_FAST_MEMORY + 0x3058, 0x6}, | 1141 | {OP_ZR_E1, CSEM_REG_FAST_MEMORY + 0x3058, 0x6}, |
1179 | {OP_ZR_E1, CSEM_REG_FAST_MEMORY + 0x24d0, 0x30}, | 1142 | {OP_ZR_E1, CSEM_REG_FAST_MEMORY + 0x24d0, 0x30}, |
1180 | #define CSEM_PORT1_END 1005 | 1143 | #define CSEM_PORT1_END 968 |
1181 | #define CSEM_FUNC0_START 1005 | 1144 | #define CSEM_FUNC0_START 968 |
1182 | {OP_WR_E1H, CSEM_REG_FAST_MEMORY + 0x1148, 0x0}, | 1145 | {OP_WR_E1H, CSEM_REG_FAST_MEMORY + 0x1148, 0x0}, |
1183 | {OP_ZR_E1H, CSEM_REG_FAST_MEMORY + 0x3300, 0x2}, | 1146 | {OP_ZR_E1H, CSEM_REG_FAST_MEMORY + 0x3300, 0x2}, |
1184 | #define CSEM_FUNC0_END 1007 | 1147 | #define CSEM_FUNC0_END 970 |
1185 | #define CSEM_FUNC1_START 1007 | 1148 | #define CSEM_FUNC1_START 970 |
1186 | {OP_WR_E1H, CSEM_REG_FAST_MEMORY + 0x114c, 0x0}, | 1149 | {OP_WR_E1H, CSEM_REG_FAST_MEMORY + 0x114c, 0x0}, |
1187 | {OP_ZR_E1H, CSEM_REG_FAST_MEMORY + 0x3308, 0x2}, | 1150 | {OP_ZR_E1H, CSEM_REG_FAST_MEMORY + 0x3308, 0x2}, |
1188 | #define CSEM_FUNC1_END 1009 | 1151 | #define CSEM_FUNC1_END 972 |
1189 | #define CSEM_FUNC2_START 1009 | 1152 | #define CSEM_FUNC2_START 972 |
1190 | {OP_WR_E1H, CSEM_REG_FAST_MEMORY + 0x1150, 0x0}, | 1153 | {OP_WR_E1H, CSEM_REG_FAST_MEMORY + 0x1150, 0x0}, |
1191 | {OP_ZR_E1H, CSEM_REG_FAST_MEMORY + 0x3310, 0x2}, | 1154 | {OP_ZR_E1H, CSEM_REG_FAST_MEMORY + 0x3310, 0x2}, |
1192 | #define CSEM_FUNC2_END 1011 | 1155 | #define CSEM_FUNC2_END 974 |
1193 | #define CSEM_FUNC3_START 1011 | 1156 | #define CSEM_FUNC3_START 974 |
1194 | {OP_WR_E1H, CSEM_REG_FAST_MEMORY + 0x1154, 0x0}, | 1157 | {OP_WR_E1H, CSEM_REG_FAST_MEMORY + 0x1154, 0x0}, |
1195 | {OP_ZR_E1H, CSEM_REG_FAST_MEMORY + 0x3318, 0x2}, | 1158 | {OP_ZR_E1H, CSEM_REG_FAST_MEMORY + 0x3318, 0x2}, |
1196 | #define CSEM_FUNC3_END 1013 | 1159 | #define CSEM_FUNC3_END 976 |
1197 | #define CSEM_FUNC4_START 1013 | 1160 | #define CSEM_FUNC4_START 976 |
1198 | {OP_WR_E1H, CSEM_REG_FAST_MEMORY + 0x1158, 0x0}, | 1161 | {OP_WR_E1H, CSEM_REG_FAST_MEMORY + 0x1158, 0x0}, |
1199 | {OP_ZR_E1H, CSEM_REG_FAST_MEMORY + 0x3320, 0x2}, | 1162 | {OP_ZR_E1H, CSEM_REG_FAST_MEMORY + 0x3320, 0x2}, |
1200 | #define CSEM_FUNC4_END 1015 | 1163 | #define CSEM_FUNC4_END 978 |
1201 | #define CSEM_FUNC5_START 1015 | 1164 | #define CSEM_FUNC5_START 978 |
1202 | {OP_WR_E1H, CSEM_REG_FAST_MEMORY + 0x115c, 0x0}, | 1165 | {OP_WR_E1H, CSEM_REG_FAST_MEMORY + 0x115c, 0x0}, |
1203 | {OP_ZR_E1H, CSEM_REG_FAST_MEMORY + 0x3328, 0x2}, | 1166 | {OP_ZR_E1H, CSEM_REG_FAST_MEMORY + 0x3328, 0x2}, |
1204 | #define CSEM_FUNC5_END 1017 | 1167 | #define CSEM_FUNC5_END 980 |
1205 | #define CSEM_FUNC6_START 1017 | 1168 | #define CSEM_FUNC6_START 980 |
1206 | {OP_WR_E1H, CSEM_REG_FAST_MEMORY + 0x1160, 0x0}, | 1169 | {OP_WR_E1H, CSEM_REG_FAST_MEMORY + 0x1160, 0x0}, |
1207 | {OP_ZR_E1H, CSEM_REG_FAST_MEMORY + 0x3330, 0x2}, | 1170 | {OP_ZR_E1H, CSEM_REG_FAST_MEMORY + 0x3330, 0x2}, |
1208 | #define CSEM_FUNC6_END 1019 | 1171 | #define CSEM_FUNC6_END 982 |
1209 | #define CSEM_FUNC7_START 1019 | 1172 | #define CSEM_FUNC7_START 982 |
1210 | {OP_WR_E1H, CSEM_REG_FAST_MEMORY + 0x1164, 0x0}, | 1173 | {OP_WR_E1H, CSEM_REG_FAST_MEMORY + 0x1164, 0x0}, |
1211 | {OP_ZR_E1H, CSEM_REG_FAST_MEMORY + 0x3338, 0x2}, | 1174 | {OP_ZR_E1H, CSEM_REG_FAST_MEMORY + 0x3338, 0x2}, |
1212 | #define CSEM_FUNC7_END 1021 | 1175 | #define CSEM_FUNC7_END 984 |
1213 | #define XPB_COMMON_START 1021 | 1176 | #define XPB_COMMON_START 984 |
1214 | {OP_WR, GRCBASE_XPB + PB_REG_CONTROL, 0x20}, | 1177 | {OP_WR, GRCBASE_XPB + PB_REG_CONTROL, 0x20}, |
1215 | #define XPB_COMMON_END 1022 | 1178 | #define XPB_COMMON_END 985 |
1216 | #define DQ_COMMON_START 1022 | 1179 | #define DQ_COMMON_START 985 |
1217 | {OP_WR, DORQ_REG_MODE_ACT, 0x2}, | 1180 | {OP_WR, DORQ_REG_MODE_ACT, 0x2}, |
1218 | {OP_WR, DORQ_REG_NORM_CID_OFST, 0x3}, | 1181 | {OP_WR, DORQ_REG_NORM_CID_OFST, 0x3}, |
1219 | {OP_WR, DORQ_REG_OUTST_REQ, 0x4}, | 1182 | {OP_WR, DORQ_REG_OUTST_REQ, 0x4}, |
@@ -1232,8 +1195,8 @@ static const struct raw_op init_ops[] = { | |||
1232 | {OP_WR, DORQ_REG_DQ_FIFO_AFULL_TH, 0x76c}, | 1195 | {OP_WR, DORQ_REG_DQ_FIFO_AFULL_TH, 0x76c}, |
1233 | {OP_WR, DORQ_REG_REGN, 0x7c1004}, | 1196 | {OP_WR, DORQ_REG_REGN, 0x7c1004}, |
1234 | {OP_WR, DORQ_REG_IF_EN, 0xf}, | 1197 | {OP_WR, DORQ_REG_IF_EN, 0xf}, |
1235 | #define DQ_COMMON_END 1040 | 1198 | #define DQ_COMMON_END 1003 |
1236 | #define TIMERS_COMMON_START 1040 | 1199 | #define TIMERS_COMMON_START 1003 |
1237 | {OP_ZR, TM_REG_CLIN_PRIOR0_CLIENT, 0x2}, | 1200 | {OP_ZR, TM_REG_CLIN_PRIOR0_CLIENT, 0x2}, |
1238 | {OP_WR, TM_REG_LIN_SETCLR_FIFO_ALFULL_THR, 0x1c}, | 1201 | {OP_WR, TM_REG_LIN_SETCLR_FIFO_ALFULL_THR, 0x1c}, |
1239 | {OP_WR, TM_REG_CFC_AC_CRDCNT_VAL, 0x1}, | 1202 | {OP_WR, TM_REG_CFC_AC_CRDCNT_VAL, 0x1}, |
@@ -1256,14 +1219,14 @@ static const struct raw_op init_ops[] = { | |||
1256 | {OP_WR, TM_REG_EN_CL0_INPUT, 0x1}, | 1219 | {OP_WR, TM_REG_EN_CL0_INPUT, 0x1}, |
1257 | {OP_WR, TM_REG_EN_CL1_INPUT, 0x1}, | 1220 | {OP_WR, TM_REG_EN_CL1_INPUT, 0x1}, |
1258 | {OP_WR, TM_REG_EN_CL2_INPUT, 0x1}, | 1221 | {OP_WR, TM_REG_EN_CL2_INPUT, 0x1}, |
1259 | #define TIMERS_COMMON_END 1062 | 1222 | #define TIMERS_COMMON_END 1025 |
1260 | #define TIMERS_PORT0_START 1062 | 1223 | #define TIMERS_PORT0_START 1025 |
1261 | {OP_ZR, TM_REG_LIN0_PHY_ADDR, 0x2}, | 1224 | {OP_ZR, TM_REG_LIN0_PHY_ADDR, 0x2}, |
1262 | #define TIMERS_PORT0_END 1063 | 1225 | #define TIMERS_PORT0_END 1026 |
1263 | #define TIMERS_PORT1_START 1063 | 1226 | #define TIMERS_PORT1_START 1026 |
1264 | {OP_ZR, TM_REG_LIN1_PHY_ADDR, 0x2}, | 1227 | {OP_ZR, TM_REG_LIN1_PHY_ADDR, 0x2}, |
1265 | #define TIMERS_PORT1_END 1064 | 1228 | #define TIMERS_PORT1_END 1027 |
1266 | #define XSDM_COMMON_START 1064 | 1229 | #define XSDM_COMMON_START 1027 |
1267 | {OP_WR_E1, XSDM_REG_CFC_RSP_START_ADDR, 0x614}, | 1230 | {OP_WR_E1, XSDM_REG_CFC_RSP_START_ADDR, 0x614}, |
1268 | {OP_WR_E1H, XSDM_REG_CFC_RSP_START_ADDR, 0x424}, | 1231 | {OP_WR_E1H, XSDM_REG_CFC_RSP_START_ADDR, 0x424}, |
1269 | {OP_WR_E1, XSDM_REG_CMP_COUNTER_START_ADDR, 0x600}, | 1232 | {OP_WR_E1, XSDM_REG_CMP_COUNTER_START_ADDR, 0x600}, |
@@ -1311,8 +1274,8 @@ static const struct raw_op init_ops[] = { | |||
1311 | {OP_WR_ASIC, XSDM_REG_TIMER_TICK, 0x3e8}, | 1274 | {OP_WR_ASIC, XSDM_REG_TIMER_TICK, 0x3e8}, |
1312 | {OP_WR_EMUL, XSDM_REG_TIMER_TICK, 0x1}, | 1275 | {OP_WR_EMUL, XSDM_REG_TIMER_TICK, 0x1}, |
1313 | {OP_WR_FPGA, XSDM_REG_TIMER_TICK, 0xa}, | 1276 | {OP_WR_FPGA, XSDM_REG_TIMER_TICK, 0xa}, |
1314 | #define XSDM_COMMON_END 1111 | 1277 | #define XSDM_COMMON_END 1074 |
1315 | #define QM_COMMON_START 1111 | 1278 | #define QM_COMMON_START 1074 |
1316 | {OP_WR, QM_REG_ACTCTRINITVAL_0, 0x6}, | 1279 | {OP_WR, QM_REG_ACTCTRINITVAL_0, 0x6}, |
1317 | {OP_WR, QM_REG_ACTCTRINITVAL_1, 0x5}, | 1280 | {OP_WR, QM_REG_ACTCTRINITVAL_1, 0x5}, |
1318 | {OP_WR, QM_REG_ACTCTRINITVAL_2, 0xa}, | 1281 | {OP_WR, QM_REG_ACTCTRINITVAL_2, 0xa}, |
@@ -1613,8 +1576,8 @@ static const struct raw_op init_ops[] = { | |||
1613 | {OP_WR_E1H, QM_REG_PQ2PCIFUNC_6, 0x5}, | 1576 | {OP_WR_E1H, QM_REG_PQ2PCIFUNC_6, 0x5}, |
1614 | {OP_WR_E1H, QM_REG_PQ2PCIFUNC_7, 0x7}, | 1577 | {OP_WR_E1H, QM_REG_PQ2PCIFUNC_7, 0x7}, |
1615 | {OP_WR, QM_REG_CMINTEN, 0xff}, | 1578 | {OP_WR, QM_REG_CMINTEN, 0xff}, |
1616 | #define QM_COMMON_END 1411 | 1579 | #define QM_COMMON_END 1374 |
1617 | #define PBF_COMMON_START 1411 | 1580 | #define PBF_COMMON_START 1374 |
1618 | {OP_WR, PBF_REG_INIT, 0x1}, | 1581 | {OP_WR, PBF_REG_INIT, 0x1}, |
1619 | {OP_WR, PBF_REG_INIT_P4, 0x1}, | 1582 | {OP_WR, PBF_REG_INIT_P4, 0x1}, |
1620 | {OP_WR, PBF_REG_MAC_LB_ENABLE, 0x1}, | 1583 | {OP_WR, PBF_REG_MAC_LB_ENABLE, 0x1}, |
@@ -1622,20 +1585,20 @@ static const struct raw_op init_ops[] = { | |||
1622 | {OP_WR, PBF_REG_INIT_P4, 0x0}, | 1585 | {OP_WR, PBF_REG_INIT_P4, 0x0}, |
1623 | {OP_WR, PBF_REG_INIT, 0x0}, | 1586 | {OP_WR, PBF_REG_INIT, 0x0}, |
1624 | {OP_WR, PBF_REG_DISABLE_NEW_TASK_PROC_P4, 0x0}, | 1587 | {OP_WR, PBF_REG_DISABLE_NEW_TASK_PROC_P4, 0x0}, |
1625 | #define PBF_COMMON_END 1418 | 1588 | #define PBF_COMMON_END 1381 |
1626 | #define PBF_PORT0_START 1418 | 1589 | #define PBF_PORT0_START 1381 |
1627 | {OP_WR, PBF_REG_INIT_P0, 0x1}, | 1590 | {OP_WR, PBF_REG_INIT_P0, 0x1}, |
1628 | {OP_WR, PBF_REG_MAC_IF0_ENABLE, 0x1}, | 1591 | {OP_WR, PBF_REG_MAC_IF0_ENABLE, 0x1}, |
1629 | {OP_WR, PBF_REG_INIT_P0, 0x0}, | 1592 | {OP_WR, PBF_REG_INIT_P0, 0x0}, |
1630 | {OP_WR, PBF_REG_DISABLE_NEW_TASK_PROC_P0, 0x0}, | 1593 | {OP_WR, PBF_REG_DISABLE_NEW_TASK_PROC_P0, 0x0}, |
1631 | #define PBF_PORT0_END 1422 | 1594 | #define PBF_PORT0_END 1385 |
1632 | #define PBF_PORT1_START 1422 | 1595 | #define PBF_PORT1_START 1385 |
1633 | {OP_WR, PBF_REG_INIT_P1, 0x1}, | 1596 | {OP_WR, PBF_REG_INIT_P1, 0x1}, |
1634 | {OP_WR, PBF_REG_MAC_IF1_ENABLE, 0x1}, | 1597 | {OP_WR, PBF_REG_MAC_IF1_ENABLE, 0x1}, |
1635 | {OP_WR, PBF_REG_INIT_P1, 0x0}, | 1598 | {OP_WR, PBF_REG_INIT_P1, 0x0}, |
1636 | {OP_WR, PBF_REG_DISABLE_NEW_TASK_PROC_P1, 0x0}, | 1599 | {OP_WR, PBF_REG_DISABLE_NEW_TASK_PROC_P1, 0x0}, |
1637 | #define PBF_PORT1_END 1426 | 1600 | #define PBF_PORT1_END 1389 |
1638 | #define XCM_COMMON_START 1426 | 1601 | #define XCM_COMMON_START 1389 |
1639 | {OP_WR, XCM_REG_XX_OVFL_EVNT_ID, 0x32}, | 1602 | {OP_WR, XCM_REG_XX_OVFL_EVNT_ID, 0x32}, |
1640 | {OP_WR, XCM_REG_XQM_XCM_HDR_P, 0x3150020}, | 1603 | {OP_WR, XCM_REG_XQM_XCM_HDR_P, 0x3150020}, |
1641 | {OP_WR, XCM_REG_XQM_XCM_HDR_S, 0x3150020}, | 1604 | {OP_WR, XCM_REG_XQM_XCM_HDR_S, 0x3150020}, |
@@ -1670,7 +1633,7 @@ static const struct raw_op init_ops[] = { | |||
1670 | {OP_WR_E1, XCM_REG_XX_MSG_NUM, 0x1f}, | 1633 | {OP_WR_E1, XCM_REG_XX_MSG_NUM, 0x1f}, |
1671 | {OP_WR_E1H, XCM_REG_XX_MSG_NUM, 0x20}, | 1634 | {OP_WR_E1H, XCM_REG_XX_MSG_NUM, 0x20}, |
1672 | {OP_ZR, XCM_REG_XX_TABLE, 0x12}, | 1635 | {OP_ZR, XCM_REG_XX_TABLE, 0x12}, |
1673 | {OP_SW_E1, XCM_REG_XX_DESCR_TABLE, 0x1f02ce}, | 1636 | {OP_SW_E1, XCM_REG_XX_DESCR_TABLE, 0x1f02cc}, |
1674 | {OP_SW_E1H, XCM_REG_XX_DESCR_TABLE, 0x1f0302}, | 1637 | {OP_SW_E1H, XCM_REG_XX_DESCR_TABLE, 0x1f0302}, |
1675 | {OP_WR, XCM_REG_N_SM_CTX_LD_0, 0xf}, | 1638 | {OP_WR, XCM_REG_N_SM_CTX_LD_0, 0xf}, |
1676 | {OP_WR, XCM_REG_N_SM_CTX_LD_1, 0x7}, | 1639 | {OP_WR, XCM_REG_N_SM_CTX_LD_1, 0x7}, |
@@ -1700,8 +1663,8 @@ static const struct raw_op init_ops[] = { | |||
1700 | {OP_WR, XCM_REG_CDU_SM_WR_IFEN, 0x1}, | 1663 | {OP_WR, XCM_REG_CDU_SM_WR_IFEN, 0x1}, |
1701 | {OP_WR, XCM_REG_CDU_SM_RD_IFEN, 0x1}, | 1664 | {OP_WR, XCM_REG_CDU_SM_RD_IFEN, 0x1}, |
1702 | {OP_WR, XCM_REG_XCM_CFC_IFEN, 0x1}, | 1665 | {OP_WR, XCM_REG_XCM_CFC_IFEN, 0x1}, |
1703 | #define XCM_COMMON_END 1490 | 1666 | #define XCM_COMMON_END 1453 |
1704 | #define XCM_PORT0_START 1490 | 1667 | #define XCM_PORT0_START 1453 |
1705 | {OP_WR_E1, XCM_REG_GLB_DEL_ACK_TMR_VAL_0, 0xc8}, | 1668 | {OP_WR_E1, XCM_REG_GLB_DEL_ACK_TMR_VAL_0, 0xc8}, |
1706 | {OP_WR_E1, XCM_REG_GLB_DEL_ACK_MAX_CNT_0, 0x2}, | 1669 | {OP_WR_E1, XCM_REG_GLB_DEL_ACK_MAX_CNT_0, 0x2}, |
1707 | {OP_WR_E1, XCM_REG_WU_DA_SET_TMR_CNT_FLG_CMD00, 0x0}, | 1670 | {OP_WR_E1, XCM_REG_WU_DA_SET_TMR_CNT_FLG_CMD00, 0x0}, |
@@ -1710,8 +1673,8 @@ static const struct raw_op init_ops[] = { | |||
1710 | {OP_WR_E1, XCM_REG_WU_DA_CNT_CMD10, 0x2}, | 1673 | {OP_WR_E1, XCM_REG_WU_DA_CNT_CMD10, 0x2}, |
1711 | {OP_WR_E1, XCM_REG_WU_DA_CNT_UPD_VAL00, 0xff}, | 1674 | {OP_WR_E1, XCM_REG_WU_DA_CNT_UPD_VAL00, 0xff}, |
1712 | {OP_WR_E1, XCM_REG_WU_DA_CNT_UPD_VAL10, 0xff}, | 1675 | {OP_WR_E1, XCM_REG_WU_DA_CNT_UPD_VAL10, 0xff}, |
1713 | #define XCM_PORT0_END 1498 | 1676 | #define XCM_PORT0_END 1461 |
1714 | #define XCM_PORT1_START 1498 | 1677 | #define XCM_PORT1_START 1461 |
1715 | {OP_WR_E1, XCM_REG_GLB_DEL_ACK_TMR_VAL_1, 0xc8}, | 1678 | {OP_WR_E1, XCM_REG_GLB_DEL_ACK_TMR_VAL_1, 0xc8}, |
1716 | {OP_WR_E1, XCM_REG_GLB_DEL_ACK_MAX_CNT_1, 0x2}, | 1679 | {OP_WR_E1, XCM_REG_GLB_DEL_ACK_MAX_CNT_1, 0x2}, |
1717 | {OP_WR_E1, XCM_REG_WU_DA_SET_TMR_CNT_FLG_CMD01, 0x0}, | 1680 | {OP_WR_E1, XCM_REG_WU_DA_SET_TMR_CNT_FLG_CMD01, 0x0}, |
@@ -1720,8 +1683,8 @@ static const struct raw_op init_ops[] = { | |||
1720 | {OP_WR_E1, XCM_REG_WU_DA_CNT_CMD11, 0x2}, | 1683 | {OP_WR_E1, XCM_REG_WU_DA_CNT_CMD11, 0x2}, |
1721 | {OP_WR_E1, XCM_REG_WU_DA_CNT_UPD_VAL01, 0xff}, | 1684 | {OP_WR_E1, XCM_REG_WU_DA_CNT_UPD_VAL01, 0xff}, |
1722 | {OP_WR_E1, XCM_REG_WU_DA_CNT_UPD_VAL11, 0xff}, | 1685 | {OP_WR_E1, XCM_REG_WU_DA_CNT_UPD_VAL11, 0xff}, |
1723 | #define XCM_PORT1_END 1506 | 1686 | #define XCM_PORT1_END 1469 |
1724 | #define XCM_FUNC0_START 1506 | 1687 | #define XCM_FUNC0_START 1469 |
1725 | {OP_WR_E1H, XCM_REG_GLB_DEL_ACK_TMR_VAL_0, 0xc8}, | 1688 | {OP_WR_E1H, XCM_REG_GLB_DEL_ACK_TMR_VAL_0, 0xc8}, |
1726 | {OP_WR_E1H, XCM_REG_GLB_DEL_ACK_MAX_CNT_0, 0x2}, | 1689 | {OP_WR_E1H, XCM_REG_GLB_DEL_ACK_MAX_CNT_0, 0x2}, |
1727 | {OP_WR_E1H, XCM_REG_WU_DA_SET_TMR_CNT_FLG_CMD00, 0x0}, | 1690 | {OP_WR_E1H, XCM_REG_WU_DA_SET_TMR_CNT_FLG_CMD00, 0x0}, |
@@ -1731,8 +1694,8 @@ static const struct raw_op init_ops[] = { | |||
1731 | {OP_WR_E1H, XCM_REG_WU_DA_CNT_UPD_VAL00, 0xff}, | 1694 | {OP_WR_E1H, XCM_REG_WU_DA_CNT_UPD_VAL00, 0xff}, |
1732 | {OP_WR_E1H, XCM_REG_WU_DA_CNT_UPD_VAL10, 0xff}, | 1695 | {OP_WR_E1H, XCM_REG_WU_DA_CNT_UPD_VAL10, 0xff}, |
1733 | {OP_WR_E1H, XCM_REG_PHYS_QNUM3_0, 0x0}, | 1696 | {OP_WR_E1H, XCM_REG_PHYS_QNUM3_0, 0x0}, |
1734 | #define XCM_FUNC0_END 1515 | 1697 | #define XCM_FUNC0_END 1478 |
1735 | #define XCM_FUNC1_START 1515 | 1698 | #define XCM_FUNC1_START 1478 |
1736 | {OP_WR_E1H, XCM_REG_GLB_DEL_ACK_TMR_VAL_1, 0xc8}, | 1699 | {OP_WR_E1H, XCM_REG_GLB_DEL_ACK_TMR_VAL_1, 0xc8}, |
1737 | {OP_WR_E1H, XCM_REG_GLB_DEL_ACK_MAX_CNT_1, 0x2}, | 1700 | {OP_WR_E1H, XCM_REG_GLB_DEL_ACK_MAX_CNT_1, 0x2}, |
1738 | {OP_WR_E1H, XCM_REG_WU_DA_SET_TMR_CNT_FLG_CMD01, 0x0}, | 1701 | {OP_WR_E1H, XCM_REG_WU_DA_SET_TMR_CNT_FLG_CMD01, 0x0}, |
@@ -1742,8 +1705,8 @@ static const struct raw_op init_ops[] = { | |||
1742 | {OP_WR_E1H, XCM_REG_WU_DA_CNT_UPD_VAL01, 0xff}, | 1705 | {OP_WR_E1H, XCM_REG_WU_DA_CNT_UPD_VAL01, 0xff}, |
1743 | {OP_WR_E1H, XCM_REG_WU_DA_CNT_UPD_VAL11, 0xff}, | 1706 | {OP_WR_E1H, XCM_REG_WU_DA_CNT_UPD_VAL11, 0xff}, |
1744 | {OP_WR_E1H, XCM_REG_PHYS_QNUM3_1, 0x0}, | 1707 | {OP_WR_E1H, XCM_REG_PHYS_QNUM3_1, 0x0}, |
1745 | #define XCM_FUNC1_END 1524 | 1708 | #define XCM_FUNC1_END 1487 |
1746 | #define XCM_FUNC2_START 1524 | 1709 | #define XCM_FUNC2_START 1487 |
1747 | {OP_WR_E1H, XCM_REG_GLB_DEL_ACK_TMR_VAL_0, 0xc8}, | 1710 | {OP_WR_E1H, XCM_REG_GLB_DEL_ACK_TMR_VAL_0, 0xc8}, |
1748 | {OP_WR_E1H, XCM_REG_GLB_DEL_ACK_MAX_CNT_0, 0x2}, | 1711 | {OP_WR_E1H, XCM_REG_GLB_DEL_ACK_MAX_CNT_0, 0x2}, |
1749 | {OP_WR_E1H, XCM_REG_WU_DA_SET_TMR_CNT_FLG_CMD00, 0x0}, | 1712 | {OP_WR_E1H, XCM_REG_WU_DA_SET_TMR_CNT_FLG_CMD00, 0x0}, |
@@ -1753,8 +1716,8 @@ static const struct raw_op init_ops[] = { | |||
1753 | {OP_WR_E1H, XCM_REG_WU_DA_CNT_UPD_VAL00, 0xff}, | 1716 | {OP_WR_E1H, XCM_REG_WU_DA_CNT_UPD_VAL00, 0xff}, |
1754 | {OP_WR_E1H, XCM_REG_WU_DA_CNT_UPD_VAL10, 0xff}, | 1717 | {OP_WR_E1H, XCM_REG_WU_DA_CNT_UPD_VAL10, 0xff}, |
1755 | {OP_WR_E1H, XCM_REG_PHYS_QNUM3_0, 0x0}, | 1718 | {OP_WR_E1H, XCM_REG_PHYS_QNUM3_0, 0x0}, |
1756 | #define XCM_FUNC2_END 1533 | 1719 | #define XCM_FUNC2_END 1496 |
1757 | #define XCM_FUNC3_START 1533 | 1720 | #define XCM_FUNC3_START 1496 |
1758 | {OP_WR_E1H, XCM_REG_GLB_DEL_ACK_TMR_VAL_1, 0xc8}, | 1721 | {OP_WR_E1H, XCM_REG_GLB_DEL_ACK_TMR_VAL_1, 0xc8}, |
1759 | {OP_WR_E1H, XCM_REG_GLB_DEL_ACK_MAX_CNT_1, 0x2}, | 1722 | {OP_WR_E1H, XCM_REG_GLB_DEL_ACK_MAX_CNT_1, 0x2}, |
1760 | {OP_WR_E1H, XCM_REG_WU_DA_SET_TMR_CNT_FLG_CMD01, 0x0}, | 1723 | {OP_WR_E1H, XCM_REG_WU_DA_SET_TMR_CNT_FLG_CMD01, 0x0}, |
@@ -1764,8 +1727,8 @@ static const struct raw_op init_ops[] = { | |||
1764 | {OP_WR_E1H, XCM_REG_WU_DA_CNT_UPD_VAL01, 0xff}, | 1727 | {OP_WR_E1H, XCM_REG_WU_DA_CNT_UPD_VAL01, 0xff}, |
1765 | {OP_WR_E1H, XCM_REG_WU_DA_CNT_UPD_VAL11, 0xff}, | 1728 | {OP_WR_E1H, XCM_REG_WU_DA_CNT_UPD_VAL11, 0xff}, |
1766 | {OP_WR_E1H, XCM_REG_PHYS_QNUM3_1, 0x0}, | 1729 | {OP_WR_E1H, XCM_REG_PHYS_QNUM3_1, 0x0}, |
1767 | #define XCM_FUNC3_END 1542 | 1730 | #define XCM_FUNC3_END 1505 |
1768 | #define XCM_FUNC4_START 1542 | 1731 | #define XCM_FUNC4_START 1505 |
1769 | {OP_WR_E1H, XCM_REG_GLB_DEL_ACK_TMR_VAL_0, 0xc8}, | 1732 | {OP_WR_E1H, XCM_REG_GLB_DEL_ACK_TMR_VAL_0, 0xc8}, |
1770 | {OP_WR_E1H, XCM_REG_GLB_DEL_ACK_MAX_CNT_0, 0x2}, | 1733 | {OP_WR_E1H, XCM_REG_GLB_DEL_ACK_MAX_CNT_0, 0x2}, |
1771 | {OP_WR_E1H, XCM_REG_WU_DA_SET_TMR_CNT_FLG_CMD00, 0x0}, | 1734 | {OP_WR_E1H, XCM_REG_WU_DA_SET_TMR_CNT_FLG_CMD00, 0x0}, |
@@ -1775,8 +1738,8 @@ static const struct raw_op init_ops[] = { | |||
1775 | {OP_WR_E1H, XCM_REG_WU_DA_CNT_UPD_VAL00, 0xff}, | 1738 | {OP_WR_E1H, XCM_REG_WU_DA_CNT_UPD_VAL00, 0xff}, |
1776 | {OP_WR_E1H, XCM_REG_WU_DA_CNT_UPD_VAL10, 0xff}, | 1739 | {OP_WR_E1H, XCM_REG_WU_DA_CNT_UPD_VAL10, 0xff}, |
1777 | {OP_WR_E1H, XCM_REG_PHYS_QNUM3_0, 0x0}, | 1740 | {OP_WR_E1H, XCM_REG_PHYS_QNUM3_0, 0x0}, |
1778 | #define XCM_FUNC4_END 1551 | 1741 | #define XCM_FUNC4_END 1514 |
1779 | #define XCM_FUNC5_START 1551 | 1742 | #define XCM_FUNC5_START 1514 |
1780 | {OP_WR_E1H, XCM_REG_GLB_DEL_ACK_TMR_VAL_1, 0xc8}, | 1743 | {OP_WR_E1H, XCM_REG_GLB_DEL_ACK_TMR_VAL_1, 0xc8}, |
1781 | {OP_WR_E1H, XCM_REG_GLB_DEL_ACK_MAX_CNT_1, 0x2}, | 1744 | {OP_WR_E1H, XCM_REG_GLB_DEL_ACK_MAX_CNT_1, 0x2}, |
1782 | {OP_WR_E1H, XCM_REG_WU_DA_SET_TMR_CNT_FLG_CMD01, 0x0}, | 1745 | {OP_WR_E1H, XCM_REG_WU_DA_SET_TMR_CNT_FLG_CMD01, 0x0}, |
@@ -1786,8 +1749,8 @@ static const struct raw_op init_ops[] = { | |||
1786 | {OP_WR_E1H, XCM_REG_WU_DA_CNT_UPD_VAL01, 0xff}, | 1749 | {OP_WR_E1H, XCM_REG_WU_DA_CNT_UPD_VAL01, 0xff}, |
1787 | {OP_WR_E1H, XCM_REG_WU_DA_CNT_UPD_VAL11, 0xff}, | 1750 | {OP_WR_E1H, XCM_REG_WU_DA_CNT_UPD_VAL11, 0xff}, |
1788 | {OP_WR_E1H, XCM_REG_PHYS_QNUM3_1, 0x0}, | 1751 | {OP_WR_E1H, XCM_REG_PHYS_QNUM3_1, 0x0}, |
1789 | #define XCM_FUNC5_END 1560 | 1752 | #define XCM_FUNC5_END 1523 |
1790 | #define XCM_FUNC6_START 1560 | 1753 | #define XCM_FUNC6_START 1523 |
1791 | {OP_WR_E1H, XCM_REG_GLB_DEL_ACK_TMR_VAL_0, 0xc8}, | 1754 | {OP_WR_E1H, XCM_REG_GLB_DEL_ACK_TMR_VAL_0, 0xc8}, |
1792 | {OP_WR_E1H, XCM_REG_GLB_DEL_ACK_MAX_CNT_0, 0x2}, | 1755 | {OP_WR_E1H, XCM_REG_GLB_DEL_ACK_MAX_CNT_0, 0x2}, |
1793 | {OP_WR_E1H, XCM_REG_WU_DA_SET_TMR_CNT_FLG_CMD00, 0x0}, | 1756 | {OP_WR_E1H, XCM_REG_WU_DA_SET_TMR_CNT_FLG_CMD00, 0x0}, |
@@ -1797,8 +1760,8 @@ static const struct raw_op init_ops[] = { | |||
1797 | {OP_WR_E1H, XCM_REG_WU_DA_CNT_UPD_VAL00, 0xff}, | 1760 | {OP_WR_E1H, XCM_REG_WU_DA_CNT_UPD_VAL00, 0xff}, |
1798 | {OP_WR_E1H, XCM_REG_WU_DA_CNT_UPD_VAL10, 0xff}, | 1761 | {OP_WR_E1H, XCM_REG_WU_DA_CNT_UPD_VAL10, 0xff}, |
1799 | {OP_WR_E1H, XCM_REG_PHYS_QNUM3_0, 0x0}, | 1762 | {OP_WR_E1H, XCM_REG_PHYS_QNUM3_0, 0x0}, |
1800 | #define XCM_FUNC6_END 1569 | 1763 | #define XCM_FUNC6_END 1532 |
1801 | #define XCM_FUNC7_START 1569 | 1764 | #define XCM_FUNC7_START 1532 |
1802 | {OP_WR_E1H, XCM_REG_GLB_DEL_ACK_TMR_VAL_1, 0xc8}, | 1765 | {OP_WR_E1H, XCM_REG_GLB_DEL_ACK_TMR_VAL_1, 0xc8}, |
1803 | {OP_WR_E1H, XCM_REG_GLB_DEL_ACK_MAX_CNT_1, 0x2}, | 1766 | {OP_WR_E1H, XCM_REG_GLB_DEL_ACK_MAX_CNT_1, 0x2}, |
1804 | {OP_WR_E1H, XCM_REG_WU_DA_SET_TMR_CNT_FLG_CMD01, 0x0}, | 1767 | {OP_WR_E1H, XCM_REG_WU_DA_SET_TMR_CNT_FLG_CMD01, 0x0}, |
@@ -1808,8 +1771,8 @@ static const struct raw_op init_ops[] = { | |||
1808 | {OP_WR_E1H, XCM_REG_WU_DA_CNT_UPD_VAL01, 0xff}, | 1771 | {OP_WR_E1H, XCM_REG_WU_DA_CNT_UPD_VAL01, 0xff}, |
1809 | {OP_WR_E1H, XCM_REG_WU_DA_CNT_UPD_VAL11, 0xff}, | 1772 | {OP_WR_E1H, XCM_REG_WU_DA_CNT_UPD_VAL11, 0xff}, |
1810 | {OP_WR_E1H, XCM_REG_PHYS_QNUM3_1, 0x0}, | 1773 | {OP_WR_E1H, XCM_REG_PHYS_QNUM3_1, 0x0}, |
1811 | #define XCM_FUNC7_END 1578 | 1774 | #define XCM_FUNC7_END 1541 |
1812 | #define XSEM_COMMON_START 1578 | 1775 | #define XSEM_COMMON_START 1541 |
1813 | {OP_RD, XSEM_REG_MSG_NUM_FIC0, 0x0}, | 1776 | {OP_RD, XSEM_REG_MSG_NUM_FIC0, 0x0}, |
1814 | {OP_RD, XSEM_REG_MSG_NUM_FIC1, 0x0}, | 1777 | {OP_RD, XSEM_REG_MSG_NUM_FIC1, 0x0}, |
1815 | {OP_RD, XSEM_REG_MSG_NUM_FOC0, 0x0}, | 1778 | {OP_RD, XSEM_REG_MSG_NUM_FOC0, 0x0}, |
@@ -1876,9 +1839,9 @@ static const struct raw_op init_ops[] = { | |||
1876 | {OP_ZR_E1H, XSEM_REG_FAST_MEMORY + 0x9000, 0x2}, | 1839 | {OP_ZR_E1H, XSEM_REG_FAST_MEMORY + 0x9000, 0x2}, |
1877 | {OP_WR_E1, XSEM_REG_FAST_MEMORY + 0x3368, 0x0}, | 1840 | {OP_WR_E1, XSEM_REG_FAST_MEMORY + 0x3368, 0x0}, |
1878 | {OP_ZR_E1H, XSEM_REG_FAST_MEMORY + 0x21a8, 0x86}, | 1841 | {OP_ZR_E1H, XSEM_REG_FAST_MEMORY + 0x21a8, 0x86}, |
1879 | {OP_SW_E1, XSEM_REG_FAST_MEMORY + 0x3370, 0x202ed}, | 1842 | {OP_SW_E1, XSEM_REG_FAST_MEMORY + 0x3370, 0x202eb}, |
1880 | {OP_ZR_E1H, XSEM_REG_FAST_MEMORY + 0x2000, 0x20}, | 1843 | {OP_ZR_E1H, XSEM_REG_FAST_MEMORY + 0x2000, 0x20}, |
1881 | {OP_SW_E1, XSEM_REG_FAST_MEMORY + 0x3b90, 0x402ef}, | 1844 | {OP_SW_E1, XSEM_REG_FAST_MEMORY + 0x3b90, 0x402ed}, |
1882 | {OP_WR_E1H, XSEM_REG_FAST_MEMORY + 0x23c8, 0x0}, | 1845 | {OP_WR_E1H, XSEM_REG_FAST_MEMORY + 0x23c8, 0x0}, |
1883 | {OP_WR_E1, XSEM_REG_FAST_MEMORY + 0x1518, 0x1}, | 1846 | {OP_WR_E1, XSEM_REG_FAST_MEMORY + 0x1518, 0x1}, |
1884 | {OP_SW_E1H, XSEM_REG_FAST_MEMORY + 0x23d0, 0x20321}, | 1847 | {OP_SW_E1H, XSEM_REG_FAST_MEMORY + 0x23d0, 0x20321}, |
@@ -1886,29 +1849,29 @@ static const struct raw_op init_ops[] = { | |||
1886 | {OP_SW_E1H, XSEM_REG_FAST_MEMORY + 0x2498, 0x40323}, | 1849 | {OP_SW_E1H, XSEM_REG_FAST_MEMORY + 0x2498, 0x40323}, |
1887 | {OP_WR_E1, XSEM_REG_FAST_MEMORY + 0x1838, 0x0}, | 1850 | {OP_WR_E1, XSEM_REG_FAST_MEMORY + 0x1838, 0x0}, |
1888 | {OP_WR_E1H, XSEM_REG_FAST_MEMORY + 0x2ac8, 0x0}, | 1851 | {OP_WR_E1H, XSEM_REG_FAST_MEMORY + 0x2ac8, 0x0}, |
1889 | {OP_SW_E1, XSEM_REG_FAST_MEMORY + 0x1820, 0x202f3}, | 1852 | {OP_SW_E1, XSEM_REG_FAST_MEMORY + 0x1820, 0x202f1}, |
1890 | {OP_WR_E1H, XSEM_REG_FAST_MEMORY + 0x2ab8, 0x0}, | 1853 | {OP_WR_E1H, XSEM_REG_FAST_MEMORY + 0x2ab8, 0x0}, |
1891 | {OP_ZR_E1, XSEM_REG_FAST_MEMORY + 0x4ac0, 0x2}, | 1854 | {OP_ZR_E1, XSEM_REG_FAST_MEMORY + 0x4ac0, 0x2}, |
1892 | {OP_WR_E1H, XSEM_REG_FAST_MEMORY + 0x3010, 0x1}, | 1855 | {OP_WR_E1H, XSEM_REG_FAST_MEMORY + 0x3010, 0x1}, |
1893 | {OP_ZR_E1, XSEM_REG_FAST_MEMORY + 0x4b00, 0x4}, | 1856 | {OP_ZR_E1, XSEM_REG_FAST_MEMORY + 0x4b00, 0x4}, |
1894 | {OP_ZR_E1H, XSEM_REG_FAST_MEMORY + 0x4040, 0x10}, | 1857 | {OP_ZR_E1H, XSEM_REG_FAST_MEMORY + 0x4040, 0x10}, |
1895 | {OP_SW_E1, XSEM_REG_FAST_MEMORY + 0x1f50, 0x202f5}, | 1858 | {OP_SW_E1, XSEM_REG_FAST_MEMORY + 0x1f50, 0x202f3}, |
1896 | {OP_SW_E1H, XSEM_REG_FAST_MEMORY + 0x4000, 0x100327}, | 1859 | {OP_SW_E1H, XSEM_REG_FAST_MEMORY + 0x4000, 0x100327}, |
1897 | {OP_ZR_E1H, XSEM_REG_FAST_MEMORY + 0x6ac0, 0x2}, | 1860 | {OP_ZR_E1H, XSEM_REG_FAST_MEMORY + 0x6ac0, 0x2}, |
1898 | {OP_ZR_E1H, XSEM_REG_FAST_MEMORY + 0x6b00, 0x4}, | 1861 | {OP_ZR_E1H, XSEM_REG_FAST_MEMORY + 0x6b00, 0x4}, |
1899 | {OP_SW_E1H, XSEM_REG_FAST_MEMORY + 0x83b0, 0x20337}, | 1862 | {OP_SW_E1H, XSEM_REG_FAST_MEMORY + 0x83b0, 0x20337}, |
1900 | {OP_WR, XSEM_REG_FAST_MEMORY + 0x10800, 0x0}, | 1863 | {OP_WR, XSEM_REG_FAST_MEMORY + 0x10800, 0x0}, |
1901 | {OP_SW_E1, XSEM_REG_FAST_MEMORY + 0x10c00, 0x1002f7}, | 1864 | {OP_SW_E1, XSEM_REG_FAST_MEMORY + 0x10c00, 0x1002f5}, |
1902 | {OP_SW_E1H, XSEM_REG_FAST_MEMORY + 0x10c00, 0x100339}, | 1865 | {OP_SW_E1H, XSEM_REG_FAST_MEMORY + 0x10c00, 0x100339}, |
1903 | {OP_WR, XSEM_REG_FAST_MEMORY + 0x10800, 0x1000000}, | 1866 | {OP_WR, XSEM_REG_FAST_MEMORY + 0x10800, 0x1000000}, |
1904 | {OP_SW_E1, XSEM_REG_FAST_MEMORY + 0x10c40, 0x80307}, | 1867 | {OP_SW_E1, XSEM_REG_FAST_MEMORY + 0x10c40, 0x80305}, |
1905 | {OP_SW_E1H, XSEM_REG_FAST_MEMORY + 0x10c40, 0x80349}, | 1868 | {OP_SW_E1H, XSEM_REG_FAST_MEMORY + 0x10c40, 0x80349}, |
1906 | {OP_WR, XSEM_REG_FAST_MEMORY + 0x10800, 0x2000000}, | 1869 | {OP_WR, XSEM_REG_FAST_MEMORY + 0x10800, 0x2000000}, |
1907 | {OP_SW_E1, XSEM_REG_FAST_MEMORY + 0x10c60, 0x8030f}, | 1870 | {OP_SW_E1, XSEM_REG_FAST_MEMORY + 0x10c60, 0x8030d}, |
1908 | {OP_SW_E1H, XSEM_REG_FAST_MEMORY + 0x10c60, 0x80351}, | 1871 | {OP_SW_E1H, XSEM_REG_FAST_MEMORY + 0x10c60, 0x80351}, |
1909 | {OP_ZP_E1, XSEM_REG_INT_TABLE, 0xa90000}, | 1872 | {OP_ZP_E1, XSEM_REG_INT_TABLE, 0xa90000}, |
1910 | {OP_ZP_E1H, XSEM_REG_INT_TABLE, 0xac0000}, | 1873 | {OP_ZP_E1H, XSEM_REG_INT_TABLE, 0xac0000}, |
1911 | {OP_WR_64_E1, XSEM_REG_INT_TABLE + 0x368, 0x130317}, | 1874 | {OP_WR_64_E1, XSEM_REG_INT_TABLE + 0x368, 0x130315}, |
1912 | {OP_WR_64_E1H, XSEM_REG_INT_TABLE + 0x368, 0x130359}, | 1875 | {OP_WR_64_E1H, XSEM_REG_INT_TABLE + 0x368, 0x130359}, |
1913 | {OP_ZP_E1, XSEM_REG_PRAM, 0x344e0000}, | 1876 | {OP_ZP_E1, XSEM_REG_PRAM, 0x344e0000}, |
1914 | {OP_ZP_E1H, XSEM_REG_PRAM, 0x34620000}, | 1877 | {OP_ZP_E1H, XSEM_REG_PRAM, 0x34620000}, |
@@ -1918,10 +1881,10 @@ static const struct raw_op init_ops[] = { | |||
1918 | {OP_ZP_E1H, XSEM_REG_PRAM + 0x10000, 0x3e971b22}, | 1881 | {OP_ZP_E1H, XSEM_REG_PRAM + 0x10000, 0x3e971b22}, |
1919 | {OP_ZP_E1, XSEM_REG_PRAM + 0x18000, 0x1dd02ad2}, | 1882 | {OP_ZP_E1, XSEM_REG_PRAM + 0x18000, 0x1dd02ad2}, |
1920 | {OP_ZP_E1H, XSEM_REG_PRAM + 0x18000, 0x21542ac8}, | 1883 | {OP_ZP_E1H, XSEM_REG_PRAM + 0x18000, 0x21542ac8}, |
1921 | {OP_WR_64_E1, XSEM_REG_PRAM + 0x1c0d0, 0x47e60319}, | 1884 | {OP_WR_64_E1, XSEM_REG_PRAM + 0x1c0d0, 0x47e60317}, |
1922 | {OP_WR_64_E1H, XSEM_REG_PRAM + 0x1c8d0, 0x46e6035b}, | 1885 | {OP_WR_64_E1H, XSEM_REG_PRAM + 0x1c8d0, 0x46e6035b}, |
1923 | #define XSEM_COMMON_END 1688 | 1886 | #define XSEM_COMMON_END 1651 |
1924 | #define XSEM_PORT0_START 1688 | 1887 | #define XSEM_PORT0_START 1651 |
1925 | {OP_ZR_E1, XSEM_REG_FAST_MEMORY + 0x3ba0, 0x10}, | 1888 | {OP_ZR_E1, XSEM_REG_FAST_MEMORY + 0x3ba0, 0x10}, |
1926 | {OP_ZR_E1H, XSEM_REG_FAST_MEMORY + 0xc000, 0xfc}, | 1889 | {OP_ZR_E1H, XSEM_REG_FAST_MEMORY + 0xc000, 0xfc}, |
1927 | {OP_ZR_E1, XSEM_REG_FAST_MEMORY + 0x3c20, 0x1c}, | 1890 | {OP_ZR_E1, XSEM_REG_FAST_MEMORY + 0x3c20, 0x1c}, |
@@ -1934,7 +1897,7 @@ static const struct raw_op init_ops[] = { | |||
1934 | {OP_ZR_E1H, XSEM_REG_FAST_MEMORY + 0x26e8, 0x1c}, | 1897 | {OP_ZR_E1H, XSEM_REG_FAST_MEMORY + 0x26e8, 0x1c}, |
1935 | {OP_WR_E1, XSEM_REG_FAST_MEMORY + 0x3b58, 0x0}, | 1898 | {OP_WR_E1, XSEM_REG_FAST_MEMORY + 0x3b58, 0x0}, |
1936 | {OP_ZR_E1H, XSEM_REG_FAST_MEMORY + 0x27c8, 0x1c}, | 1899 | {OP_ZR_E1H, XSEM_REG_FAST_MEMORY + 0x27c8, 0x1c}, |
1937 | {OP_SW_E1, XSEM_REG_FAST_MEMORY + 0x3d10, 0x10031b}, | 1900 | {OP_SW_E1, XSEM_REG_FAST_MEMORY + 0x3d10, 0x100319}, |
1938 | {OP_ZR_E1H, XSEM_REG_FAST_MEMORY + 0xa000, 0x28}, | 1901 | {OP_ZR_E1H, XSEM_REG_FAST_MEMORY + 0xa000, 0x28}, |
1939 | {OP_WR_E1, XSEM_REG_FAST_MEMORY + 0x1500, 0x0}, | 1902 | {OP_WR_E1, XSEM_REG_FAST_MEMORY + 0x1500, 0x0}, |
1940 | {OP_ZR_E1H, XSEM_REG_FAST_MEMORY + 0xa140, 0xc}, | 1903 | {OP_ZR_E1H, XSEM_REG_FAST_MEMORY + 0xa140, 0xc}, |
@@ -1950,12 +1913,12 @@ static const struct raw_op init_ops[] = { | |||
1950 | {OP_SW_E1H, XSEM_REG_FAST_MEMORY + 0x6ac8, 0x2035d}, | 1913 | {OP_SW_E1H, XSEM_REG_FAST_MEMORY + 0x6ac8, 0x2035d}, |
1951 | {OP_WR_E1, XSEM_REG_FAST_MEMORY + 0x50b8, 0x1}, | 1914 | {OP_WR_E1, XSEM_REG_FAST_MEMORY + 0x50b8, 0x1}, |
1952 | {OP_ZR_E1H, XSEM_REG_FAST_MEMORY + 0x6b10, 0x42}, | 1915 | {OP_ZR_E1H, XSEM_REG_FAST_MEMORY + 0x6b10, 0x42}, |
1953 | {OP_SW_E1, XSEM_REG_FAST_MEMORY + 0x4ac8, 0x2032b}, | 1916 | {OP_SW_E1, XSEM_REG_FAST_MEMORY + 0x4ac8, 0x20329}, |
1954 | {OP_ZR_E1H, XSEM_REG_FAST_MEMORY + 0x6d20, 0x4}, | 1917 | {OP_ZR_E1H, XSEM_REG_FAST_MEMORY + 0x6d20, 0x4}, |
1955 | {OP_ZR_E1, XSEM_REG_FAST_MEMORY + 0x4b10, 0x42}, | 1918 | {OP_ZR_E1, XSEM_REG_FAST_MEMORY + 0x4b10, 0x42}, |
1956 | {OP_ZR_E1, XSEM_REG_FAST_MEMORY + 0x4d20, 0x4}, | 1919 | {OP_ZR_E1, XSEM_REG_FAST_MEMORY + 0x4d20, 0x4}, |
1957 | #define XSEM_PORT0_END 1720 | 1920 | #define XSEM_PORT0_END 1683 |
1958 | #define XSEM_PORT1_START 1720 | 1921 | #define XSEM_PORT1_START 1683 |
1959 | {OP_ZR_E1, XSEM_REG_FAST_MEMORY + 0x3be0, 0x10}, | 1922 | {OP_ZR_E1, XSEM_REG_FAST_MEMORY + 0x3be0, 0x10}, |
1960 | {OP_ZR_E1H, XSEM_REG_FAST_MEMORY + 0xc3f0, 0xfc}, | 1923 | {OP_ZR_E1H, XSEM_REG_FAST_MEMORY + 0xc3f0, 0xfc}, |
1961 | {OP_ZR_E1, XSEM_REG_FAST_MEMORY + 0x3c90, 0x1c}, | 1924 | {OP_ZR_E1, XSEM_REG_FAST_MEMORY + 0x3c90, 0x1c}, |
@@ -1968,7 +1931,7 @@ static const struct raw_op init_ops[] = { | |||
1968 | {OP_ZR_E1H, XSEM_REG_FAST_MEMORY + 0x2758, 0x1c}, | 1931 | {OP_ZR_E1H, XSEM_REG_FAST_MEMORY + 0x2758, 0x1c}, |
1969 | {OP_WR_E1, XSEM_REG_FAST_MEMORY + 0x3b5c, 0x0}, | 1932 | {OP_WR_E1, XSEM_REG_FAST_MEMORY + 0x3b5c, 0x0}, |
1970 | {OP_ZR_E1H, XSEM_REG_FAST_MEMORY + 0x2838, 0x1c}, | 1933 | {OP_ZR_E1H, XSEM_REG_FAST_MEMORY + 0x2838, 0x1c}, |
1971 | {OP_SW_E1, XSEM_REG_FAST_MEMORY + 0x3d50, 0x10032d}, | 1934 | {OP_SW_E1, XSEM_REG_FAST_MEMORY + 0x3d50, 0x10032b}, |
1972 | {OP_ZR_E1H, XSEM_REG_FAST_MEMORY + 0xa0a0, 0x28}, | 1935 | {OP_ZR_E1H, XSEM_REG_FAST_MEMORY + 0xa0a0, 0x28}, |
1973 | {OP_WR_E1, XSEM_REG_FAST_MEMORY + 0x1504, 0x0}, | 1936 | {OP_WR_E1, XSEM_REG_FAST_MEMORY + 0x1504, 0x0}, |
1974 | {OP_ZR_E1H, XSEM_REG_FAST_MEMORY + 0xa170, 0xc}, | 1937 | {OP_ZR_E1H, XSEM_REG_FAST_MEMORY + 0xa170, 0xc}, |
@@ -1984,65 +1947,65 @@ static const struct raw_op init_ops[] = { | |||
1984 | {OP_SW_E1H, XSEM_REG_FAST_MEMORY + 0x6ad0, 0x2035f}, | 1947 | {OP_SW_E1H, XSEM_REG_FAST_MEMORY + 0x6ad0, 0x2035f}, |
1985 | {OP_WR_E1, XSEM_REG_FAST_MEMORY + 0x50bc, 0x1}, | 1948 | {OP_WR_E1, XSEM_REG_FAST_MEMORY + 0x50bc, 0x1}, |
1986 | {OP_ZR_E1H, XSEM_REG_FAST_MEMORY + 0x6c18, 0x42}, | 1949 | {OP_ZR_E1H, XSEM_REG_FAST_MEMORY + 0x6c18, 0x42}, |
1987 | {OP_SW_E1, XSEM_REG_FAST_MEMORY + 0x4ad0, 0x2033d}, | 1950 | {OP_SW_E1, XSEM_REG_FAST_MEMORY + 0x4ad0, 0x2033b}, |
1988 | {OP_ZR_E1H, XSEM_REG_FAST_MEMORY + 0x6d30, 0x4}, | 1951 | {OP_ZR_E1H, XSEM_REG_FAST_MEMORY + 0x6d30, 0x4}, |
1989 | {OP_ZR_E1, XSEM_REG_FAST_MEMORY + 0x4c18, 0x42}, | 1952 | {OP_ZR_E1, XSEM_REG_FAST_MEMORY + 0x4c18, 0x42}, |
1990 | {OP_ZR_E1, XSEM_REG_FAST_MEMORY + 0x4d30, 0x4}, | 1953 | {OP_ZR_E1, XSEM_REG_FAST_MEMORY + 0x4d30, 0x4}, |
1991 | #define XSEM_PORT1_END 1752 | 1954 | #define XSEM_PORT1_END 1715 |
1992 | #define XSEM_FUNC0_START 1752 | 1955 | #define XSEM_FUNC0_START 1715 |
1993 | {OP_WR_E1H, XSEM_REG_FAST_MEMORY + 0xc7e0, 0x0}, | 1956 | {OP_WR_E1H, XSEM_REG_FAST_MEMORY + 0xc7e0, 0x0}, |
1994 | {OP_SW_E1H, XSEM_REG_FAST_MEMORY + 0x28b8, 0x100361}, | 1957 | {OP_SW_E1H, XSEM_REG_FAST_MEMORY + 0x28b8, 0x100361}, |
1995 | {OP_ZR_E1H, XSEM_REG_FAST_MEMORY + 0x5048, 0xe}, | 1958 | {OP_ZR_E1H, XSEM_REG_FAST_MEMORY + 0x5048, 0xe}, |
1996 | #define XSEM_FUNC0_END 1755 | 1959 | #define XSEM_FUNC0_END 1718 |
1997 | #define XSEM_FUNC1_START 1755 | 1960 | #define XSEM_FUNC1_START 1718 |
1998 | {OP_WR_E1H, XSEM_REG_FAST_MEMORY + 0xc7e4, 0x0}, | 1961 | {OP_WR_E1H, XSEM_REG_FAST_MEMORY + 0xc7e4, 0x0}, |
1999 | {OP_SW_E1H, XSEM_REG_FAST_MEMORY + 0x28f8, 0x100371}, | 1962 | {OP_SW_E1H, XSEM_REG_FAST_MEMORY + 0x28f8, 0x100371}, |
2000 | {OP_ZR_E1H, XSEM_REG_FAST_MEMORY + 0x5080, 0xe}, | 1963 | {OP_ZR_E1H, XSEM_REG_FAST_MEMORY + 0x5080, 0xe}, |
2001 | #define XSEM_FUNC1_END 1758 | 1964 | #define XSEM_FUNC1_END 1721 |
2002 | #define XSEM_FUNC2_START 1758 | 1965 | #define XSEM_FUNC2_START 1721 |
2003 | {OP_WR_E1H, XSEM_REG_FAST_MEMORY + 0xc7e8, 0x0}, | 1966 | {OP_WR_E1H, XSEM_REG_FAST_MEMORY + 0xc7e8, 0x0}, |
2004 | {OP_SW_E1H, XSEM_REG_FAST_MEMORY + 0x2938, 0x100381}, | 1967 | {OP_SW_E1H, XSEM_REG_FAST_MEMORY + 0x2938, 0x100381}, |
2005 | {OP_ZR_E1H, XSEM_REG_FAST_MEMORY + 0x50b8, 0xe}, | 1968 | {OP_ZR_E1H, XSEM_REG_FAST_MEMORY + 0x50b8, 0xe}, |
2006 | #define XSEM_FUNC2_END 1761 | 1969 | #define XSEM_FUNC2_END 1724 |
2007 | #define XSEM_FUNC3_START 1761 | 1970 | #define XSEM_FUNC3_START 1724 |
2008 | {OP_WR_E1H, XSEM_REG_FAST_MEMORY + 0xc7ec, 0x0}, | 1971 | {OP_WR_E1H, XSEM_REG_FAST_MEMORY + 0xc7ec, 0x0}, |
2009 | {OP_SW_E1H, XSEM_REG_FAST_MEMORY + 0x2978, 0x100391}, | 1972 | {OP_SW_E1H, XSEM_REG_FAST_MEMORY + 0x2978, 0x100391}, |
2010 | {OP_ZR_E1H, XSEM_REG_FAST_MEMORY + 0x50f0, 0xe}, | 1973 | {OP_ZR_E1H, XSEM_REG_FAST_MEMORY + 0x50f0, 0xe}, |
2011 | #define XSEM_FUNC3_END 1764 | 1974 | #define XSEM_FUNC3_END 1727 |
2012 | #define XSEM_FUNC4_START 1764 | 1975 | #define XSEM_FUNC4_START 1727 |
2013 | {OP_WR_E1H, XSEM_REG_FAST_MEMORY + 0xc7f0, 0x0}, | 1976 | {OP_WR_E1H, XSEM_REG_FAST_MEMORY + 0xc7f0, 0x0}, |
2014 | {OP_SW_E1H, XSEM_REG_FAST_MEMORY + 0x29b8, 0x1003a1}, | 1977 | {OP_SW_E1H, XSEM_REG_FAST_MEMORY + 0x29b8, 0x1003a1}, |
2015 | {OP_ZR_E1H, XSEM_REG_FAST_MEMORY + 0x5128, 0xe}, | 1978 | {OP_ZR_E1H, XSEM_REG_FAST_MEMORY + 0x5128, 0xe}, |
2016 | #define XSEM_FUNC4_END 1767 | 1979 | #define XSEM_FUNC4_END 1730 |
2017 | #define XSEM_FUNC5_START 1767 | 1980 | #define XSEM_FUNC5_START 1730 |
2018 | {OP_WR_E1H, XSEM_REG_FAST_MEMORY + 0xc7f4, 0x0}, | 1981 | {OP_WR_E1H, XSEM_REG_FAST_MEMORY + 0xc7f4, 0x0}, |
2019 | {OP_SW_E1H, XSEM_REG_FAST_MEMORY + 0x29f8, 0x1003b1}, | 1982 | {OP_SW_E1H, XSEM_REG_FAST_MEMORY + 0x29f8, 0x1003b1}, |
2020 | {OP_ZR_E1H, XSEM_REG_FAST_MEMORY + 0x5160, 0xe}, | 1983 | {OP_ZR_E1H, XSEM_REG_FAST_MEMORY + 0x5160, 0xe}, |
2021 | #define XSEM_FUNC5_END 1770 | 1984 | #define XSEM_FUNC5_END 1733 |
2022 | #define XSEM_FUNC6_START 1770 | 1985 | #define XSEM_FUNC6_START 1733 |
2023 | {OP_WR_E1H, XSEM_REG_FAST_MEMORY + 0xc7f8, 0x0}, | 1986 | {OP_WR_E1H, XSEM_REG_FAST_MEMORY + 0xc7f8, 0x0}, |
2024 | {OP_SW_E1H, XSEM_REG_FAST_MEMORY + 0x2a38, 0x1003c1}, | 1987 | {OP_SW_E1H, XSEM_REG_FAST_MEMORY + 0x2a38, 0x1003c1}, |
2025 | {OP_ZR_E1H, XSEM_REG_FAST_MEMORY + 0x5198, 0xe}, | 1988 | {OP_ZR_E1H, XSEM_REG_FAST_MEMORY + 0x5198, 0xe}, |
2026 | #define XSEM_FUNC6_END 1773 | 1989 | #define XSEM_FUNC6_END 1736 |
2027 | #define XSEM_FUNC7_START 1773 | 1990 | #define XSEM_FUNC7_START 1736 |
2028 | {OP_WR_E1H, XSEM_REG_FAST_MEMORY + 0xc7fc, 0x0}, | 1991 | {OP_WR_E1H, XSEM_REG_FAST_MEMORY + 0xc7fc, 0x0}, |
2029 | {OP_SW_E1H, XSEM_REG_FAST_MEMORY + 0x2a78, 0x1003d1}, | 1992 | {OP_SW_E1H, XSEM_REG_FAST_MEMORY + 0x2a78, 0x1003d1}, |
2030 | {OP_ZR_E1H, XSEM_REG_FAST_MEMORY + 0x51d0, 0xe}, | 1993 | {OP_ZR_E1H, XSEM_REG_FAST_MEMORY + 0x51d0, 0xe}, |
2031 | #define XSEM_FUNC7_END 1776 | 1994 | #define XSEM_FUNC7_END 1739 |
2032 | #define CDU_COMMON_START 1776 | 1995 | #define CDU_COMMON_START 1739 |
2033 | {OP_WR, CDU_REG_CDU_CONTROL0, 0x1}, | 1996 | {OP_WR, CDU_REG_CDU_CONTROL0, 0x1}, |
2034 | {OP_WR_E1H, CDU_REG_MF_MODE, 0x1}, | 1997 | {OP_WR_E1H, CDU_REG_MF_MODE, 0x1}, |
2035 | {OP_WR, CDU_REG_CDU_CHK_MASK0, 0x3d000}, | 1998 | {OP_WR, CDU_REG_CDU_CHK_MASK0, 0x3d000}, |
2036 | {OP_WR, CDU_REG_CDU_CHK_MASK1, 0x3d}, | 1999 | {OP_WR, CDU_REG_CDU_CHK_MASK1, 0x3d}, |
2037 | {OP_WB_E1, CDU_REG_L1TT, 0x200033f}, | 2000 | {OP_WB_E1, CDU_REG_L1TT, 0x200033d}, |
2038 | {OP_WB_E1H, CDU_REG_L1TT, 0x20003e1}, | 2001 | {OP_WB_E1H, CDU_REG_L1TT, 0x20003e1}, |
2039 | {OP_WB_E1, CDU_REG_MATT, 0x20053f}, | 2002 | {OP_WB_E1, CDU_REG_MATT, 0x20053d}, |
2040 | {OP_WB_E1H, CDU_REG_MATT, 0x2805e1}, | 2003 | {OP_WB_E1H, CDU_REG_MATT, 0x2805e1}, |
2041 | {OP_ZR_E1, CDU_REG_MATT + 0x80, 0x2}, | 2004 | {OP_ZR_E1, CDU_REG_MATT + 0x80, 0x2}, |
2042 | {OP_WB_E1, CDU_REG_MATT + 0x88, 0x6055f}, | 2005 | {OP_WB_E1, CDU_REG_MATT + 0x88, 0x6055d}, |
2043 | {OP_ZR, CDU_REG_MATT + 0xa0, 0x18}, | 2006 | {OP_ZR, CDU_REG_MATT + 0xa0, 0x18}, |
2044 | #define CDU_COMMON_END 1787 | 2007 | #define CDU_COMMON_END 1750 |
2045 | #define DMAE_COMMON_START 1787 | 2008 | #define DMAE_COMMON_START 1750 |
2046 | {OP_ZR, DMAE_REG_CMD_MEM, 0xe0}, | 2009 | {OP_ZR, DMAE_REG_CMD_MEM, 0xe0}, |
2047 | {OP_WR, DMAE_REG_CRC16C_INIT, 0x0}, | 2010 | {OP_WR, DMAE_REG_CRC16C_INIT, 0x0}, |
2048 | {OP_WR, DMAE_REG_CRC16T10_INIT, 0x1}, | 2011 | {OP_WR, DMAE_REG_CRC16T10_INIT, 0x1}, |
@@ -2050,24 +2013,24 @@ static const struct raw_op init_ops[] = { | |||
2050 | {OP_WR_E1H, DMAE_REG_PXP_REQ_INIT_CRD, 0x2}, | 2013 | {OP_WR_E1H, DMAE_REG_PXP_REQ_INIT_CRD, 0x2}, |
2051 | {OP_WR, DMAE_REG_PCI_IFEN, 0x1}, | 2014 | {OP_WR, DMAE_REG_PCI_IFEN, 0x1}, |
2052 | {OP_WR, DMAE_REG_GRC_IFEN, 0x1}, | 2015 | {OP_WR, DMAE_REG_GRC_IFEN, 0x1}, |
2053 | #define DMAE_COMMON_END 1794 | 2016 | #define DMAE_COMMON_END 1757 |
2054 | #define PXP_COMMON_START 1794 | 2017 | #define PXP_COMMON_START 1757 |
2055 | {OP_WB_E1, PXP_REG_HST_INBOUND_INT + 0x400, 0x50565}, | 2018 | {OP_WB_E1, PXP_REG_HST_INBOUND_INT + 0x400, 0x50563}, |
2056 | {OP_WB_E1H, PXP_REG_HST_INBOUND_INT + 0x400, 0x50609}, | 2019 | {OP_WB_E1H, PXP_REG_HST_INBOUND_INT + 0x400, 0x50609}, |
2057 | {OP_WB_E1, PXP_REG_HST_INBOUND_INT + 0x420, 0x5056a}, | 2020 | {OP_WB_E1, PXP_REG_HST_INBOUND_INT + 0x420, 0x50568}, |
2058 | {OP_WB_E1H, PXP_REG_HST_INBOUND_INT, 0x5060e}, | 2021 | {OP_WB_E1H, PXP_REG_HST_INBOUND_INT, 0x5060e}, |
2059 | {OP_WB_E1, PXP_REG_HST_INBOUND_INT, 0x5056f}, | 2022 | {OP_WB_E1, PXP_REG_HST_INBOUND_INT, 0x5056d}, |
2060 | #define PXP_COMMON_END 1799 | 2023 | #define PXP_COMMON_END 1762 |
2061 | #define CFC_COMMON_START 1799 | 2024 | #define CFC_COMMON_START 1762 |
2062 | {OP_ZR_E1H, CFC_REG_LINK_LIST, 0x100}, | 2025 | {OP_ZR_E1H, CFC_REG_LINK_LIST, 0x100}, |
2063 | {OP_WR, CFC_REG_CONTROL0, 0x10}, | 2026 | {OP_WR, CFC_REG_CONTROL0, 0x10}, |
2064 | {OP_WR, CFC_REG_DISABLE_ON_ERROR, 0x3fff}, | 2027 | {OP_WR, CFC_REG_DISABLE_ON_ERROR, 0x3fff}, |
2065 | {OP_WR, CFC_REG_LCREQ_WEIGHTS, 0x84924a}, | 2028 | {OP_WR, CFC_REG_LCREQ_WEIGHTS, 0x84924a}, |
2066 | #define CFC_COMMON_END 1803 | 2029 | #define CFC_COMMON_END 1766 |
2067 | #define HC_COMMON_START 1803 | 2030 | #define HC_COMMON_START 1766 |
2068 | {OP_ZR_E1, HC_REG_USTORM_ADDR_FOR_COALESCE, 0x4}, | 2031 | {OP_ZR_E1, HC_REG_USTORM_ADDR_FOR_COALESCE, 0x4}, |
2069 | #define HC_COMMON_END 1804 | 2032 | #define HC_COMMON_END 1767 |
2070 | #define HC_PORT0_START 1804 | 2033 | #define HC_PORT0_START 1767 |
2071 | {OP_WR_E1, HC_REG_CONFIG_0, 0x1080}, | 2034 | {OP_WR_E1, HC_REG_CONFIG_0, 0x1080}, |
2072 | {OP_ZR_E1, HC_REG_UC_RAM_ADDR_0, 0x2}, | 2035 | {OP_ZR_E1, HC_REG_UC_RAM_ADDR_0, 0x2}, |
2073 | {OP_WR_E1, HC_REG_ATTN_NUM_P0, 0x10}, | 2036 | {OP_WR_E1, HC_REG_ATTN_NUM_P0, 0x10}, |
@@ -2086,8 +2049,8 @@ static const struct raw_op init_ops[] = { | |||
2086 | {OP_ZR_E1, HC_REG_STATISTIC_COUNTERS + 0x120, 0x4a}, | 2049 | {OP_ZR_E1, HC_REG_STATISTIC_COUNTERS + 0x120, 0x4a}, |
2087 | {OP_ZR_E1, HC_REG_STATISTIC_COUNTERS + 0x370, 0x4a}, | 2050 | {OP_ZR_E1, HC_REG_STATISTIC_COUNTERS + 0x370, 0x4a}, |
2088 | {OP_ZR_E1, HC_REG_STATISTIC_COUNTERS + 0x5c0, 0x4a}, | 2051 | {OP_ZR_E1, HC_REG_STATISTIC_COUNTERS + 0x5c0, 0x4a}, |
2089 | #define HC_PORT0_END 1822 | 2052 | #define HC_PORT0_END 1785 |
2090 | #define HC_PORT1_START 1822 | 2053 | #define HC_PORT1_START 1785 |
2091 | {OP_WR_E1, HC_REG_CONFIG_1, 0x1080}, | 2054 | {OP_WR_E1, HC_REG_CONFIG_1, 0x1080}, |
2092 | {OP_ZR_E1, HC_REG_UC_RAM_ADDR_1, 0x2}, | 2055 | {OP_ZR_E1, HC_REG_UC_RAM_ADDR_1, 0x2}, |
2093 | {OP_WR_E1, HC_REG_ATTN_NUM_P1, 0x10}, | 2056 | {OP_WR_E1, HC_REG_ATTN_NUM_P1, 0x10}, |
@@ -2106,8 +2069,8 @@ static const struct raw_op init_ops[] = { | |||
2106 | {OP_ZR_E1, HC_REG_STATISTIC_COUNTERS + 0x248, 0x4a}, | 2069 | {OP_ZR_E1, HC_REG_STATISTIC_COUNTERS + 0x248, 0x4a}, |
2107 | {OP_ZR_E1, HC_REG_STATISTIC_COUNTERS + 0x498, 0x4a}, | 2070 | {OP_ZR_E1, HC_REG_STATISTIC_COUNTERS + 0x498, 0x4a}, |
2108 | {OP_ZR_E1, HC_REG_STATISTIC_COUNTERS + 0x6e8, 0x4a}, | 2071 | {OP_ZR_E1, HC_REG_STATISTIC_COUNTERS + 0x6e8, 0x4a}, |
2109 | #define HC_PORT1_END 1840 | 2072 | #define HC_PORT1_END 1803 |
2110 | #define HC_FUNC0_START 1840 | 2073 | #define HC_FUNC0_START 1803 |
2111 | {OP_WR_E1H, HC_REG_CONFIG_0, 0x1080}, | 2074 | {OP_WR_E1H, HC_REG_CONFIG_0, 0x1080}, |
2112 | {OP_WR_E1H, HC_REG_FUNC_NUM_P0, 0x0}, | 2075 | {OP_WR_E1H, HC_REG_FUNC_NUM_P0, 0x0}, |
2113 | {OP_WR_E1H, HC_REG_ATTN_NUM_P0, 0x10}, | 2076 | {OP_WR_E1H, HC_REG_ATTN_NUM_P0, 0x10}, |
@@ -2123,8 +2086,8 @@ static const struct raw_op init_ops[] = { | |||
2123 | {OP_ZR_E1H, HC_REG_STATISTIC_COUNTERS + 0x120, 0x4a}, | 2086 | {OP_ZR_E1H, HC_REG_STATISTIC_COUNTERS + 0x120, 0x4a}, |
2124 | {OP_ZR_E1H, HC_REG_STATISTIC_COUNTERS + 0x370, 0x4a}, | 2087 | {OP_ZR_E1H, HC_REG_STATISTIC_COUNTERS + 0x370, 0x4a}, |
2125 | {OP_ZR_E1H, HC_REG_STATISTIC_COUNTERS + 0x5c0, 0x4a}, | 2088 | {OP_ZR_E1H, HC_REG_STATISTIC_COUNTERS + 0x5c0, 0x4a}, |
2126 | #define HC_FUNC0_END 1855 | 2089 | #define HC_FUNC0_END 1818 |
2127 | #define HC_FUNC1_START 1855 | 2090 | #define HC_FUNC1_START 1818 |
2128 | {OP_WR_E1H, HC_REG_CONFIG_1, 0x1080}, | 2091 | {OP_WR_E1H, HC_REG_CONFIG_1, 0x1080}, |
2129 | {OP_WR_E1H, HC_REG_FUNC_NUM_P1, 0x1}, | 2092 | {OP_WR_E1H, HC_REG_FUNC_NUM_P1, 0x1}, |
2130 | {OP_WR_E1H, HC_REG_ATTN_NUM_P1, 0x10}, | 2093 | {OP_WR_E1H, HC_REG_ATTN_NUM_P1, 0x10}, |
@@ -2140,8 +2103,8 @@ static const struct raw_op init_ops[] = { | |||
2140 | {OP_ZR_E1H, HC_REG_STATISTIC_COUNTERS + 0x248, 0x4a}, | 2103 | {OP_ZR_E1H, HC_REG_STATISTIC_COUNTERS + 0x248, 0x4a}, |
2141 | {OP_ZR_E1H, HC_REG_STATISTIC_COUNTERS + 0x498, 0x4a}, | 2104 | {OP_ZR_E1H, HC_REG_STATISTIC_COUNTERS + 0x498, 0x4a}, |
2142 | {OP_ZR_E1H, HC_REG_STATISTIC_COUNTERS + 0x6e8, 0x4a}, | 2105 | {OP_ZR_E1H, HC_REG_STATISTIC_COUNTERS + 0x6e8, 0x4a}, |
2143 | #define HC_FUNC1_END 1870 | 2106 | #define HC_FUNC1_END 1833 |
2144 | #define HC_FUNC2_START 1870 | 2107 | #define HC_FUNC2_START 1833 |
2145 | {OP_WR_E1H, HC_REG_CONFIG_0, 0x1080}, | 2108 | {OP_WR_E1H, HC_REG_CONFIG_0, 0x1080}, |
2146 | {OP_WR_E1H, HC_REG_FUNC_NUM_P0, 0x2}, | 2109 | {OP_WR_E1H, HC_REG_FUNC_NUM_P0, 0x2}, |
2147 | {OP_WR_E1H, HC_REG_ATTN_NUM_P0, 0x10}, | 2110 | {OP_WR_E1H, HC_REG_ATTN_NUM_P0, 0x10}, |
@@ -2157,8 +2120,8 @@ static const struct raw_op init_ops[] = { | |||
2157 | {OP_ZR_E1H, HC_REG_STATISTIC_COUNTERS + 0x120, 0x4a}, | 2120 | {OP_ZR_E1H, HC_REG_STATISTIC_COUNTERS + 0x120, 0x4a}, |
2158 | {OP_ZR_E1H, HC_REG_STATISTIC_COUNTERS + 0x370, 0x4a}, | 2121 | {OP_ZR_E1H, HC_REG_STATISTIC_COUNTERS + 0x370, 0x4a}, |
2159 | {OP_ZR_E1H, HC_REG_STATISTIC_COUNTERS + 0x5c0, 0x4a}, | 2122 | {OP_ZR_E1H, HC_REG_STATISTIC_COUNTERS + 0x5c0, 0x4a}, |
2160 | #define HC_FUNC2_END 1885 | 2123 | #define HC_FUNC2_END 1848 |
2161 | #define HC_FUNC3_START 1885 | 2124 | #define HC_FUNC3_START 1848 |
2162 | {OP_WR_E1H, HC_REG_CONFIG_1, 0x1080}, | 2125 | {OP_WR_E1H, HC_REG_CONFIG_1, 0x1080}, |
2163 | {OP_WR_E1H, HC_REG_FUNC_NUM_P1, 0x3}, | 2126 | {OP_WR_E1H, HC_REG_FUNC_NUM_P1, 0x3}, |
2164 | {OP_WR_E1H, HC_REG_ATTN_NUM_P1, 0x10}, | 2127 | {OP_WR_E1H, HC_REG_ATTN_NUM_P1, 0x10}, |
@@ -2174,8 +2137,8 @@ static const struct raw_op init_ops[] = { | |||
2174 | {OP_ZR_E1H, HC_REG_STATISTIC_COUNTERS + 0x248, 0x4a}, | 2137 | {OP_ZR_E1H, HC_REG_STATISTIC_COUNTERS + 0x248, 0x4a}, |
2175 | {OP_ZR_E1H, HC_REG_STATISTIC_COUNTERS + 0x498, 0x4a}, | 2138 | {OP_ZR_E1H, HC_REG_STATISTIC_COUNTERS + 0x498, 0x4a}, |
2176 | {OP_ZR_E1H, HC_REG_STATISTIC_COUNTERS + 0x6e8, 0x4a}, | 2139 | {OP_ZR_E1H, HC_REG_STATISTIC_COUNTERS + 0x6e8, 0x4a}, |
2177 | #define HC_FUNC3_END 1900 | 2140 | #define HC_FUNC3_END 1863 |
2178 | #define HC_FUNC4_START 1900 | 2141 | #define HC_FUNC4_START 1863 |
2179 | {OP_WR_E1H, HC_REG_CONFIG_0, 0x1080}, | 2142 | {OP_WR_E1H, HC_REG_CONFIG_0, 0x1080}, |
2180 | {OP_WR_E1H, HC_REG_FUNC_NUM_P0, 0x4}, | 2143 | {OP_WR_E1H, HC_REG_FUNC_NUM_P0, 0x4}, |
2181 | {OP_WR_E1H, HC_REG_ATTN_NUM_P0, 0x10}, | 2144 | {OP_WR_E1H, HC_REG_ATTN_NUM_P0, 0x10}, |
@@ -2191,8 +2154,8 @@ static const struct raw_op init_ops[] = { | |||
2191 | {OP_ZR_E1H, HC_REG_STATISTIC_COUNTERS + 0x120, 0x4a}, | 2154 | {OP_ZR_E1H, HC_REG_STATISTIC_COUNTERS + 0x120, 0x4a}, |
2192 | {OP_ZR_E1H, HC_REG_STATISTIC_COUNTERS + 0x370, 0x4a}, | 2155 | {OP_ZR_E1H, HC_REG_STATISTIC_COUNTERS + 0x370, 0x4a}, |
2193 | {OP_ZR_E1H, HC_REG_STATISTIC_COUNTERS + 0x5c0, 0x4a}, | 2156 | {OP_ZR_E1H, HC_REG_STATISTIC_COUNTERS + 0x5c0, 0x4a}, |
2194 | #define HC_FUNC4_END 1915 | 2157 | #define HC_FUNC4_END 1878 |
2195 | #define HC_FUNC5_START 1915 | 2158 | #define HC_FUNC5_START 1878 |
2196 | {OP_WR_E1H, HC_REG_CONFIG_1, 0x1080}, | 2159 | {OP_WR_E1H, HC_REG_CONFIG_1, 0x1080}, |
2197 | {OP_WR_E1H, HC_REG_FUNC_NUM_P1, 0x5}, | 2160 | {OP_WR_E1H, HC_REG_FUNC_NUM_P1, 0x5}, |
2198 | {OP_WR_E1H, HC_REG_ATTN_NUM_P1, 0x10}, | 2161 | {OP_WR_E1H, HC_REG_ATTN_NUM_P1, 0x10}, |
@@ -2208,8 +2171,8 @@ static const struct raw_op init_ops[] = { | |||
2208 | {OP_ZR_E1H, HC_REG_STATISTIC_COUNTERS + 0x248, 0x4a}, | 2171 | {OP_ZR_E1H, HC_REG_STATISTIC_COUNTERS + 0x248, 0x4a}, |
2209 | {OP_ZR_E1H, HC_REG_STATISTIC_COUNTERS + 0x498, 0x4a}, | 2172 | {OP_ZR_E1H, HC_REG_STATISTIC_COUNTERS + 0x498, 0x4a}, |
2210 | {OP_ZR_E1H, HC_REG_STATISTIC_COUNTERS + 0x6e8, 0x4a}, | 2173 | {OP_ZR_E1H, HC_REG_STATISTIC_COUNTERS + 0x6e8, 0x4a}, |
2211 | #define HC_FUNC5_END 1930 | 2174 | #define HC_FUNC5_END 1893 |
2212 | #define HC_FUNC6_START 1930 | 2175 | #define HC_FUNC6_START 1893 |
2213 | {OP_WR_E1H, HC_REG_CONFIG_0, 0x1080}, | 2176 | {OP_WR_E1H, HC_REG_CONFIG_0, 0x1080}, |
2214 | {OP_WR_E1H, HC_REG_FUNC_NUM_P0, 0x6}, | 2177 | {OP_WR_E1H, HC_REG_FUNC_NUM_P0, 0x6}, |
2215 | {OP_WR_E1H, HC_REG_ATTN_NUM_P0, 0x10}, | 2178 | {OP_WR_E1H, HC_REG_ATTN_NUM_P0, 0x10}, |
@@ -2225,8 +2188,8 @@ static const struct raw_op init_ops[] = { | |||
2225 | {OP_ZR_E1H, HC_REG_STATISTIC_COUNTERS + 0x120, 0x4a}, | 2188 | {OP_ZR_E1H, HC_REG_STATISTIC_COUNTERS + 0x120, 0x4a}, |
2226 | {OP_ZR_E1H, HC_REG_STATISTIC_COUNTERS + 0x370, 0x4a}, | 2189 | {OP_ZR_E1H, HC_REG_STATISTIC_COUNTERS + 0x370, 0x4a}, |
2227 | {OP_ZR_E1H, HC_REG_STATISTIC_COUNTERS + 0x5c0, 0x4a}, | 2190 | {OP_ZR_E1H, HC_REG_STATISTIC_COUNTERS + 0x5c0, 0x4a}, |
2228 | #define HC_FUNC6_END 1945 | 2191 | #define HC_FUNC6_END 1908 |
2229 | #define HC_FUNC7_START 1945 | 2192 | #define HC_FUNC7_START 1908 |
2230 | {OP_WR_E1H, HC_REG_CONFIG_1, 0x1080}, | 2193 | {OP_WR_E1H, HC_REG_CONFIG_1, 0x1080}, |
2231 | {OP_WR_E1H, HC_REG_FUNC_NUM_P1, 0x7}, | 2194 | {OP_WR_E1H, HC_REG_FUNC_NUM_P1, 0x7}, |
2232 | {OP_WR_E1H, HC_REG_ATTN_NUM_P1, 0x10}, | 2195 | {OP_WR_E1H, HC_REG_ATTN_NUM_P1, 0x10}, |
@@ -2242,8 +2205,8 @@ static const struct raw_op init_ops[] = { | |||
2242 | {OP_ZR_E1H, HC_REG_STATISTIC_COUNTERS + 0x248, 0x4a}, | 2205 | {OP_ZR_E1H, HC_REG_STATISTIC_COUNTERS + 0x248, 0x4a}, |
2243 | {OP_ZR_E1H, HC_REG_STATISTIC_COUNTERS + 0x498, 0x4a}, | 2206 | {OP_ZR_E1H, HC_REG_STATISTIC_COUNTERS + 0x498, 0x4a}, |
2244 | {OP_ZR_E1H, HC_REG_STATISTIC_COUNTERS + 0x6e8, 0x4a}, | 2207 | {OP_ZR_E1H, HC_REG_STATISTIC_COUNTERS + 0x6e8, 0x4a}, |
2245 | #define HC_FUNC7_END 1960 | 2208 | #define HC_FUNC7_END 1923 |
2246 | #define PXP2_COMMON_START 1960 | 2209 | #define PXP2_COMMON_START 1923 |
2247 | {OP_WR_E1, PXP2_REG_PGL_CONTROL0, 0xe38340}, | 2210 | {OP_WR_E1, PXP2_REG_PGL_CONTROL0, 0xe38340}, |
2248 | {OP_WR_E1H, PXP2_REG_RQ_DRAM_ALIGN, 0x1}, | 2211 | {OP_WR_E1H, PXP2_REG_RQ_DRAM_ALIGN, 0x1}, |
2249 | {OP_WR, PXP2_REG_PGL_CONTROL1, 0x3c10}, | 2212 | {OP_WR, PXP2_REG_PGL_CONTROL1, 0x3c10}, |
@@ -2361,8 +2324,8 @@ static const struct raw_op init_ops[] = { | |||
2361 | {OP_WR_E1H, PXP2_REG_RQ_ILT_MODE, 0x1}, | 2324 | {OP_WR_E1H, PXP2_REG_RQ_ILT_MODE, 0x1}, |
2362 | {OP_WR, PXP2_REG_RQ_RBC_DONE, 0x1}, | 2325 | {OP_WR, PXP2_REG_RQ_RBC_DONE, 0x1}, |
2363 | {OP_WR_E1H, PXP2_REG_PGL_CONTROL0, 0xe38340}, | 2326 | {OP_WR_E1H, PXP2_REG_PGL_CONTROL0, 0xe38340}, |
2364 | #define PXP2_COMMON_END 2077 | 2327 | #define PXP2_COMMON_END 2040 |
2365 | #define MISC_AEU_COMMON_START 2077 | 2328 | #define MISC_AEU_COMMON_START 2040 |
2366 | {OP_ZR, MISC_REG_AEU_GENERAL_ATTN_0, 0x16}, | 2329 | {OP_ZR, MISC_REG_AEU_GENERAL_ATTN_0, 0x16}, |
2367 | {OP_WR_E1H, MISC_REG_AEU_ENABLE1_NIG_0, 0x55540000}, | 2330 | {OP_WR_E1H, MISC_REG_AEU_ENABLE1_NIG_0, 0x55540000}, |
2368 | {OP_WR_E1H, MISC_REG_AEU_ENABLE2_NIG_0, 0x55555555}, | 2331 | {OP_WR_E1H, MISC_REG_AEU_ENABLE2_NIG_0, 0x55555555}, |
@@ -2382,8 +2345,8 @@ static const struct raw_op init_ops[] = { | |||
2382 | {OP_WR_E1H, MISC_REG_AEU_ENABLE4_PXP_1, 0x0}, | 2345 | {OP_WR_E1H, MISC_REG_AEU_ENABLE4_PXP_1, 0x0}, |
2383 | {OP_WR_E1H, MISC_REG_AEU_CLR_LATCH_SIGNAL, 0xc00}, | 2346 | {OP_WR_E1H, MISC_REG_AEU_CLR_LATCH_SIGNAL, 0xc00}, |
2384 | {OP_WR_E1H, MISC_REG_AEU_GENERAL_MASK, 0x3}, | 2347 | {OP_WR_E1H, MISC_REG_AEU_GENERAL_MASK, 0x3}, |
2385 | #define MISC_AEU_COMMON_END 2096 | 2348 | #define MISC_AEU_COMMON_END 2059 |
2386 | #define MISC_AEU_PORT0_START 2096 | 2349 | #define MISC_AEU_PORT0_START 2059 |
2387 | {OP_WR_E1, MISC_REG_AEU_ENABLE1_FUNC_0_OUT_0, 0xbf5c0000}, | 2350 | {OP_WR_E1, MISC_REG_AEU_ENABLE1_FUNC_0_OUT_0, 0xbf5c0000}, |
2388 | {OP_WR_E1H, MISC_REG_AEU_ENABLE1_FUNC_0_OUT_0, 0xff5c0000}, | 2351 | {OP_WR_E1H, MISC_REG_AEU_ENABLE1_FUNC_0_OUT_0, 0xff5c0000}, |
2389 | {OP_WR_E1, MISC_REG_AEU_ENABLE2_FUNC_0_OUT_0, 0xfff51fef}, | 2352 | {OP_WR_E1, MISC_REG_AEU_ENABLE2_FUNC_0_OUT_0, 0xfff51fef}, |
@@ -2416,8 +2379,8 @@ static const struct raw_op init_ops[] = { | |||
2416 | {OP_WR_E1, MISC_REG_AEU_INVERTER_1_FUNC_0, 0x0}, | 2379 | {OP_WR_E1, MISC_REG_AEU_INVERTER_1_FUNC_0, 0x0}, |
2417 | {OP_ZR_E1, MISC_REG_AEU_INVERTER_2_FUNC_0, 0x3}, | 2380 | {OP_ZR_E1, MISC_REG_AEU_INVERTER_2_FUNC_0, 0x3}, |
2418 | {OP_WR_E1, MISC_REG_AEU_MASK_ATTN_FUNC_0, 0x7}, | 2381 | {OP_WR_E1, MISC_REG_AEU_MASK_ATTN_FUNC_0, 0x7}, |
2419 | #define MISC_AEU_PORT0_END 2128 | 2382 | #define MISC_AEU_PORT0_END 2091 |
2420 | #define MISC_AEU_PORT1_START 2128 | 2383 | #define MISC_AEU_PORT1_START 2091 |
2421 | {OP_WR_E1, MISC_REG_AEU_ENABLE1_FUNC_1_OUT_0, 0xbf5c0000}, | 2384 | {OP_WR_E1, MISC_REG_AEU_ENABLE1_FUNC_1_OUT_0, 0xbf5c0000}, |
2422 | {OP_WR_E1H, MISC_REG_AEU_ENABLE1_FUNC_1_OUT_0, 0xff5c0000}, | 2385 | {OP_WR_E1H, MISC_REG_AEU_ENABLE1_FUNC_1_OUT_0, 0xff5c0000}, |
2423 | {OP_WR_E1, MISC_REG_AEU_ENABLE2_FUNC_1_OUT_0, 0xfff51fef}, | 2386 | {OP_WR_E1, MISC_REG_AEU_ENABLE2_FUNC_1_OUT_0, 0xfff51fef}, |
@@ -2450,7 +2413,7 @@ static const struct raw_op init_ops[] = { | |||
2450 | {OP_WR_E1, MISC_REG_AEU_INVERTER_1_FUNC_1, 0x0}, | 2413 | {OP_WR_E1, MISC_REG_AEU_INVERTER_1_FUNC_1, 0x0}, |
2451 | {OP_ZR_E1, MISC_REG_AEU_INVERTER_2_FUNC_1, 0x3}, | 2414 | {OP_ZR_E1, MISC_REG_AEU_INVERTER_2_FUNC_1, 0x3}, |
2452 | {OP_WR_E1, MISC_REG_AEU_MASK_ATTN_FUNC_1, 0x7}, | 2415 | {OP_WR_E1, MISC_REG_AEU_MASK_ATTN_FUNC_1, 0x7}, |
2453 | #define MISC_AEU_PORT1_END 2160 | 2416 | #define MISC_AEU_PORT1_END 2123 |
2454 | 2417 | ||
2455 | }; | 2418 | }; |
2456 | 2419 | ||
@@ -2560,103 +2523,92 @@ static const u32 init_data_e1[] = { | |||
2560 | 0x00049c00, 0x00051f80, 0x0005a300, 0x00062680, 0x0006aa00, 0x00072d80, | 2523 | 0x00049c00, 0x00051f80, 0x0005a300, 0x00062680, 0x0006aa00, 0x00072d80, |
2561 | 0x0007b100, 0x00083480, 0x0008b800, 0x00093b80, 0x0009bf00, 0x000a4280, | 2524 | 0x0007b100, 0x00083480, 0x0008b800, 0x00093b80, 0x0009bf00, 0x000a4280, |
2562 | 0x000ac600, 0x000b4980, 0x000bcd00, 0x000c5080, 0x000cd400, 0x000d5780, | 2525 | 0x000ac600, 0x000b4980, 0x000bcd00, 0x000c5080, 0x000cd400, 0x000d5780, |
2563 | 0x000ddb00, 0x00001900, 0x00000028, 0x00000000, 0x00100000, 0x00000000, | 2526 | 0x000ddb00, 0x00001900, 0x00100000, 0x00000000, 0x00000000, 0xffffffff, |
2564 | 0x00000000, 0xffffffff, 0x40000000, 0x40000000, 0x40000000, 0x40000000, | ||
2565 | 0x40000000, 0x40000000, 0x40000000, 0x40000000, 0x40000000, 0x40000000, | 2527 | 0x40000000, 0x40000000, 0x40000000, 0x40000000, 0x40000000, 0x40000000, |
2566 | 0x40000000, 0x40000000, 0x40000000, 0x40000000, 0x40000000, 0x40000000, | 2528 | 0x40000000, 0x40000000, 0x40000000, 0x40000000, 0x40000000, 0x40000000, |
2567 | 0x40000000, 0x40000000, 0x40000000, 0x40000000, 0x40000000, 0x40000000, | 2529 | 0x40000000, 0x40000000, 0x40000000, 0x40000000, 0x40000000, 0x40000000, |
2568 | 0x40000000, 0x40000000, 0x40000000, 0x40000000, 0x40000000, 0x40000000, | 2530 | 0x40000000, 0x40000000, 0x40000000, 0x40000000, 0x40000000, 0x40000000, |
2569 | 0x40000000, 0x40000000, 0x40000000, 0x40000000, 0x00000000, 0x00007ff8, | ||
2570 | 0x00000000, 0x00001500, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, | ||
2571 | 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0x40000000, 0x40000000, | ||
2572 | 0x40000000, 0x40000000, 0x40000000, 0x40000000, 0x40000000, 0x40000000, | 2531 | 0x40000000, 0x40000000, 0x40000000, 0x40000000, 0x40000000, 0x40000000, |
2532 | 0x40000000, 0x40000000, 0x00000000, 0x00007ff8, 0x00000000, 0x00001500, | ||
2533 | 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, | ||
2534 | 0xffffffff, 0xffffffff, 0x40000000, 0x40000000, 0x40000000, 0x40000000, | ||
2573 | 0x40000000, 0x40000000, 0x40000000, 0x40000000, 0x40000000, 0x40000000, | 2535 | 0x40000000, 0x40000000, 0x40000000, 0x40000000, 0x40000000, 0x40000000, |
2574 | 0x40000000, 0x40000000, 0x40000000, 0x40000000, 0x40000000, 0x40000000, | 2536 | 0x40000000, 0x40000000, 0x40000000, 0x40000000, 0x40000000, 0x40000000, |
2575 | 0x40000000, 0x40000000, 0x40000000, 0x40000000, 0x40000000, 0x40000000, | 2537 | 0x40000000, 0x40000000, 0x40000000, 0x40000000, 0x40000000, 0x40000000, |
2576 | 0x40000000, 0x40000000, 0x40000000, 0x40000000, 0x40000000, 0x40000000, | 2538 | 0x40000000, 0x40000000, 0x40000000, 0x40000000, 0x40000000, 0x40000000, |
2577 | 0x00000000, 0x00007ff8, 0x00000000, 0x00003500, 0x00001000, 0x00002080, | 2539 | 0x40000000, 0x40000000, 0x40000000, 0x40000000, 0x00000000, 0x00007ff8, |
2578 | 0x00003100, 0x00004180, 0x00005200, 0x00006280, 0x00007300, 0x00008380, | 2540 | 0x00000000, 0x00003500, 0x00001000, 0x00002080, 0x00003100, 0x00004180, |
2579 | 0x00009400, 0x0000a480, 0x0000b500, 0x0000c580, 0x0000d600, 0x0000e680, | 2541 | 0x00005200, 0x00006280, 0x00007300, 0x00008380, 0x00009400, 0x0000a480, |
2580 | 0x0000f700, 0x00010780, 0x00011800, 0x00012880, 0x00013900, 0x00014980, | 2542 | 0x0000b500, 0x0000c580, 0x0000d600, 0x0000e680, 0x0000f700, 0x00010780, |
2581 | 0x00015a00, 0x00016a80, 0x00017b00, 0x00018b80, 0x00019c00, 0x0001ac80, | 2543 | 0x00011800, 0x00012880, 0x00013900, 0x00014980, 0x00015a00, 0x00016a80, |
2582 | 0x0001bd00, 0x0001cd80, 0x0001de00, 0x0001ee80, 0x0001ff00, 0x00000000, | 2544 | 0x00017b00, 0x00018b80, 0x00019c00, 0x0001ac80, 0x0001bd00, 0x0001cd80, |
2583 | 0x00010001, 0x00000604, 0xccccccc1, 0xffffffff, 0xffffffff, 0xcccc0201, | 2545 | 0x0001de00, 0x0001ee80, 0x0001ff00, 0x00000000, 0x00010001, 0x00000604, |
2584 | 0xcccccccc, 0x00000000, 0xffffffff, 0x40000000, 0x40000000, 0x40000000, | 2546 | 0xccccccc1, 0xffffffff, 0xffffffff, 0xcccc0201, 0xcccccccc, 0x00000000, |
2547 | 0xffffffff, 0x40000000, 0x40000000, 0x40000000, 0x40000000, 0x40000000, | ||
2585 | 0x40000000, 0x40000000, 0x40000000, 0x40000000, 0x40000000, 0x40000000, | 2548 | 0x40000000, 0x40000000, 0x40000000, 0x40000000, 0x40000000, 0x40000000, |
2586 | 0x40000000, 0x40000000, 0x40000000, 0x40000000, 0x40000000, 0x40000000, | 2549 | 0x40000000, 0x40000000, 0x40000000, 0x40000000, 0x40000000, 0x40000000, |
2587 | 0x40000000, 0x40000000, 0x40000000, 0x40000000, 0x40000000, 0x40000000, | 2550 | 0x40000000, 0x40000000, 0x40000000, 0x40000000, 0x40000000, 0x40000000, |
2588 | 0x40000000, 0x40000000, 0x40000000, 0x40000000, 0x40000000, 0x40000000, | 2551 | 0x40000000, 0x40000000, 0x40000000, 0x40000000, 0x40000000, 0x40000000, |
2589 | 0x40000000, 0x40000000, 0x40000000, 0x40000000, 0x40000000, 0x00000000, | 2552 | 0x40000000, 0x40000000, 0x40000000, 0x00000000, 0x00007ff8, 0x00000000, |
2590 | 0x00007ff8, 0x00000000, 0x00003500, 0x0000ffff, 0x00000000, 0x0000ffff, | 2553 | 0x00003500, 0x0000ffff, 0x00000000, 0x0000ffff, 0x00000000, 0x0000ffff, |
2591 | 0x00000000, 0x0000ffff, 0x00000000, 0x0000ffff, 0x00000000, 0x0000ffff, | 2554 | 0x00000000, 0x0000ffff, 0x00000000, 0x0000ffff, 0x00000000, 0x0000ffff, |
2555 | 0x00000000, 0x0000ffff, 0x00000000, 0x0000ffff, 0x00000000, 0x00100000, | ||
2592 | 0x00000000, 0x0000ffff, 0x00000000, 0x0000ffff, 0x00000000, 0x0000ffff, | 2556 | 0x00000000, 0x0000ffff, 0x00000000, 0x0000ffff, 0x00000000, 0x0000ffff, |
2593 | 0x00000000, 0x00100000, 0x00000000, 0x0000ffff, 0x00000000, 0x0000ffff, | ||
2594 | 0x00000000, 0x0000ffff, 0x00000000, 0x0000ffff, 0x00000000, 0x0000ffff, | 2557 | 0x00000000, 0x0000ffff, 0x00000000, 0x0000ffff, 0x00000000, 0x0000ffff, |
2595 | 0x00000000, 0x0000ffff, 0x00000000, 0x0000ffff, 0x00000000, 0x0000ffff, | 2558 | 0x00000000, 0x0000ffff, 0x00000000, 0x0000ffff, 0x00000000, 0x00100000, |
2596 | 0x00000000, 0x00100000, 0x00000000, 0xfffffff3, 0x320fffff, 0x0c30c30c, | 2559 | 0x00000000, 0xfffffff3, 0x320fffff, 0x0c30c30c, 0xc30c30c3, 0xcf3cf300, |
2597 | 0xc30c30c3, 0xcf3cf300, 0xf3cf3cf3, 0x0000cf3c, 0xcdcdcdcd, 0xfffffff1, | 2560 | 0xf3cf3cf3, 0x0000cf3c, 0xcdcdcdcd, 0xfffffff1, 0x30efffff, 0x0c30c30c, |
2598 | 0x30efffff, 0x0c30c30c, 0xc30c30c3, 0xcf3cf300, 0xf3cf3cf3, 0x0001cf3c, | ||
2599 | 0xcdcdcdcd, 0xfffffff6, 0x305fffff, 0x0c30c30c, 0xc30c30c3, 0xcf3cf300, | ||
2600 | 0xf3cf3cf3, 0x0002cf3c, 0xcdcdcdcd, 0xfffff406, 0x1cbfffff, 0x0c30c305, | ||
2601 | 0xc30c30c3, 0xcf300014, 0xf3cf3cf3, 0x0004cf3c, 0xcdcdcdcd, 0xfffffff2, | ||
2602 | 0x304fffff, 0x0c30c30c, 0xc30c30c3, 0xcf3cf300, 0xf3cf3cf3, 0x0008cf3c, | ||
2603 | 0xcdcdcdcd, 0xfffffffa, 0x302fffff, 0x0c30c30c, 0xc30c30c3, 0xcf3cf300, | ||
2604 | 0xf3cf3cf3, 0x0010cf3c, 0xcdcdcdcd, 0xfffffff7, 0x31efffff, 0x0c30c30c, | ||
2605 | 0xc30c30c3, 0xcf3cf300, 0xf3cf3cf3, 0x0020cf3c, 0xcdcdcdcd, 0xfffffff5, | ||
2606 | 0x302fffff, 0x0c30c30c, 0xc30c30c3, 0xcf3cf300, 0xf3cf3cf3, 0x0040cf3c, | ||
2607 | 0xcdcdcdcd, 0xfffffff3, 0x310fffff, 0x0c30c30c, 0xc30c30c3, 0xcf3cf300, | ||
2608 | 0xf3cf3cf3, 0x0000cf3c, 0xcdcdcdcd, 0xfffffff1, 0x310fffff, 0x0c30c30c, | ||
2609 | 0xc30c30c3, 0xcf3cf300, 0xf3cf3cf3, 0x0001cf3c, 0xcdcdcdcd, 0xfffffff6, | 2561 | 0xc30c30c3, 0xcf3cf300, 0xf3cf3cf3, 0x0001cf3c, 0xcdcdcdcd, 0xfffffff6, |
2610 | 0x305fffff, 0x0c30c30c, 0xc30c30c3, 0xcf3cf300, 0xf3cf3cf3, 0x0002cf3c, | 2562 | 0x305fffff, 0x0c30c30c, 0xc30c30c3, 0xcf3cf300, 0xf3cf3cf3, 0x0002cf3c, |
2611 | 0xcdcdcdcd, 0xfffff406, 0x1cbfffff, 0x0c30c305, 0xc30c30c3, 0xcf300014, | 2563 | 0xcdcdcdcd, 0xfffff406, 0x1cbfffff, 0x0c30c305, 0xc30c30c3, 0xcf300014, |
2612 | 0xf3cf3cf3, 0x0004cf3c, 0xcdcdcdcd, 0xfffffff2, 0x304fffff, 0x0c30c30c, | 2564 | 0xf3cf3cf3, 0x0004cf3c, 0xcdcdcdcd, 0xfffffff2, 0x304fffff, 0x0c30c30c, |
2613 | 0xc30c30c3, 0xcf3cf300, 0xf3cf3cf3, 0x0008cf3c, 0xcdcdcdcd, 0xfffffffa, | 2565 | 0xc30c30c3, 0xcf3cf300, 0xf3cf3cf3, 0x0008cf3c, 0xcdcdcdcd, 0xfffffffa, |
2614 | 0x302fffff, 0x0c30c30c, 0xc30c30c3, 0xcf3cf300, 0xf3cf3cf3, 0x0010cf3c, | 2566 | 0x302fffff, 0x0c30c30c, 0xc30c30c3, 0xcf3cf300, 0xf3cf3cf3, 0x0010cf3c, |
2615 | 0xcdcdcdcd, 0xfffffff7, 0x30efffff, 0x0c30c30c, 0xc30c30c3, 0xcf3cf300, | 2567 | 0xcdcdcdcd, 0xfffffff7, 0x31efffff, 0x0c30c30c, 0xc30c30c3, 0xcf3cf300, |
2616 | 0xf3cf3cf3, 0x0020cf3c, 0xcdcdcdcd, 0xfffffff5, 0x304fffff, 0x0c30c30c, | 2568 | 0xf3cf3cf3, 0x0020cf3c, 0xcdcdcdcd, 0xfffffff5, 0x302fffff, 0x0c30c30c, |
2617 | 0xc30c30c3, 0xcf3cf300, 0xf3cf3cf3, 0x0040cf3c, 0xcdcdcdcd, 0xfffffff3, | 2569 | 0xc30c30c3, 0xcf3cf300, 0xf3cf3cf3, 0x0040cf3c, 0xcdcdcdcd, 0xfffffff3, |
2618 | 0x31efffff, 0x0c30c30c, 0xc30c30c3, 0xcf3cf300, 0xf3cf3cf3, 0x0000cf3c, | 2570 | 0x310fffff, 0x0c30c30c, 0xc30c30c3, 0xcf3cf300, 0xf3cf3cf3, 0x0000cf3c, |
2619 | 0xcdcdcdcd, 0xfffffff1, 0x310fffff, 0x0c30c30c, 0xc30c30c3, 0xcf3cf300, | 2571 | 0xcdcdcdcd, 0xfffffff1, 0x310fffff, 0x0c30c30c, 0xc30c30c3, 0xcf3cf300, |
2620 | 0xf3cf3cf3, 0x0001cf3c, 0xcdcdcdcd, 0xfffffff6, 0x305fffff, 0x0c30c30c, | 2572 | 0xf3cf3cf3, 0x0001cf3c, 0xcdcdcdcd, 0xfffffff6, 0x305fffff, 0x0c30c30c, |
2621 | 0xc30c30c3, 0xcf3cf300, 0xf3cf3cf3, 0x0002cf3c, 0xcdcdcdcd, 0xfffff406, | 2573 | 0xc30c30c3, 0xcf3cf300, 0xf3cf3cf3, 0x0002cf3c, 0xcdcdcdcd, 0xfffff406, |
2622 | 0x1cbfffff, 0x0c30c305, 0xc30c30c3, 0xcf300014, 0xf3cf3cf3, 0x0004cf3c, | 2574 | 0x1cbfffff, 0x0c30c305, 0xc30c30c3, 0xcf300014, 0xf3cf3cf3, 0x0004cf3c, |
2623 | 0xcdcdcdcd, 0xfffffff2, 0x304fffff, 0x0c30c30c, 0xc30c30c3, 0xcf3cf300, | 2575 | 0xcdcdcdcd, 0xfffffff2, 0x304fffff, 0x0c30c30c, 0xc30c30c3, 0xcf3cf300, |
2624 | 0xf3cf3cf3, 0x0008cf3c, 0xcdcdcdcd, 0xfffffffa, 0x302fffff, 0x0c30c30c, | 2576 | 0xf3cf3cf3, 0x0008cf3c, 0xcdcdcdcd, 0xfffffffa, 0x302fffff, 0x0c30c30c, |
2625 | 0xc30c30c3, 0xcf3cf300, 0xf3cf3cf3, 0x0010cf3c, 0xcdcdcdcd, 0xffffff97, | 2577 | 0xc30c30c3, 0xcf3cf300, 0xf3cf3cf3, 0x0010cf3c, 0xcdcdcdcd, 0xfffffff7, |
2626 | 0x056fffff, 0x0c30c30c, 0xc30c30c3, 0xcf3cc000, 0xf3cf3cf3, 0x0020cf3c, | 2578 | 0x30efffff, 0x0c30c30c, 0xc30c30c3, 0xcf3cf300, 0xf3cf3cf3, 0x0020cf3c, |
2627 | 0xcdcdcdcd, 0xfffffff5, 0x310fffff, 0x0c30c30c, 0xc30c30c3, 0xcf3cf300, | 2579 | 0xcdcdcdcd, 0xfffffff5, 0x304fffff, 0x0c30c30c, 0xc30c30c3, 0xcf3cf300, |
2628 | 0xf3cf3cf3, 0x0040cf3c, 0xcdcdcdcd, 0xfffffff3, 0x320fffff, 0x0c30c30c, | 2580 | 0xf3cf3cf3, 0x0040cf3c, 0xcdcdcdcd, 0xfffffff3, 0x31efffff, 0x0c30c30c, |
2629 | 0xc30c30c3, 0xcf3cf300, 0xf3cf3cf3, 0x0000cf3c, 0xcdcdcdcd, 0xfffffff1, | 2581 | 0xc30c30c3, 0xcf3cf300, 0xf3cf3cf3, 0x0000cf3c, 0xcdcdcdcd, 0xfffffff1, |
2630 | 0x310fffff, 0x0c30c30c, 0xc30c30c3, 0xcf3cf300, 0xf3cf3cf3, 0x0001cf3c, | 2582 | 0x310fffff, 0x0c30c30c, 0xc30c30c3, 0xcf3cf300, 0xf3cf3cf3, 0x0001cf3c, |
2631 | 0xcdcdcdcd, 0xfffffff6, 0x305fffff, 0x0c30c30c, 0xc30c30c3, 0xcf3cf300, | 2583 | 0xcdcdcdcd, 0xfffffff6, 0x305fffff, 0x0c30c30c, 0xc30c30c3, 0xcf3cf300, |
2632 | 0xf3cf3cf3, 0x0002cf3c, 0xcdcdcdcd, 0xfffff406, 0x1cbfffff, 0x0c30c305, | 2584 | 0xf3cf3cf3, 0x0002cf3c, 0xcdcdcdcd, 0xfffff406, 0x1cbfffff, 0x0c30c305, |
2633 | 0xc30c30c3, 0xcf300014, 0xf3cf3cf3, 0x0004cf3c, 0xcdcdcdcd, 0xfffffff2, | 2585 | 0xc30c30c3, 0xcf300014, 0xf3cf3cf3, 0x0004cf3c, 0xcdcdcdcd, 0xfffffff2, |
2634 | 0x304fffff, 0x0c30c30c, 0xc30c30c3, 0xcf3cf300, 0xf3cf3cf3, 0x0008cf3c, | 2586 | 0x304fffff, 0x0c30c30c, 0xc30c30c3, 0xcf3cf300, 0xf3cf3cf3, 0x0008cf3c, |
2635 | 0xcdcdcdcd, 0xffffff8a, 0x042fffff, 0x0c30c30c, 0xc30c30c3, 0xcf3cc000, | 2587 | 0xcdcdcdcd, 0xfffffffa, 0x302fffff, 0x0c30c30c, 0xc30c30c3, 0xcf3cf300, |
2636 | 0xf3cf3cf3, 0x0010cf3c, 0xcdcdcdcd, 0xffffff97, 0x05cfffff, 0x0c30c30c, | 2588 | 0xf3cf3cf3, 0x0010cf3c, 0xcdcdcdcd, 0xffffff97, 0x056fffff, 0x0c30c30c, |
2637 | 0xc30c30c3, 0xcf3cc000, 0xf3cf3cf3, 0x0020cf3c, 0xcdcdcdcd, 0xfffffff5, | 2589 | 0xc30c30c3, 0xcf3cc000, 0xf3cf3cf3, 0x0020cf3c, 0xcdcdcdcd, 0xfffffff5, |
2638 | 0x310fffff, 0x0c30c30c, 0xc30c30c3, 0xcf3cf300, 0xf3cf3cf3, 0x0040cf3c, | 2590 | 0x310fffff, 0x0c30c30c, 0xc30c30c3, 0xcf3cf300, 0xf3cf3cf3, 0x0040cf3c, |
2639 | 0xcdcdcdcd, 0xfffffff3, 0x300fffff, 0x0c30c30c, 0xc30c30c3, 0xcf3cf300, | 2591 | 0xcdcdcdcd, 0xfffffff3, 0x320fffff, 0x0c30c30c, 0xc30c30c3, 0xcf3cf300, |
2640 | 0xf3cf3cf3, 0x0000cf3c, 0xcdcdcdcd, 0xfffffff1, 0x300fffff, 0x0c30c30c, | 2592 | 0xf3cf3cf3, 0x0000cf3c, 0xcdcdcdcd, 0xfffffff1, 0x310fffff, 0x0c30c30c, |
2641 | 0xc30c30c3, 0xcf3cf300, 0xf3cf3cf3, 0x0001cf3c, 0xcdcdcdcd, 0xfffffff6, | 2593 | 0xc30c30c3, 0xcf3cf300, 0xf3cf3cf3, 0x0001cf3c, 0xcdcdcdcd, 0xfffffff6, |
2642 | 0x305fffff, 0x0c30c30c, 0xc30c30c3, 0xcf3cf300, 0xf3cf3cf3, 0x0002cf3c, | 2594 | 0x305fffff, 0x0c30c30c, 0xc30c30c3, 0xcf3cf300, 0xf3cf3cf3, 0x0002cf3c, |
2643 | 0xcdcdcdcd, 0xfffff406, 0x1cbfffff, 0x0c30c305, 0xc30c30c3, 0xcf300014, | 2595 | 0xcdcdcdcd, 0xfffff406, 0x1cbfffff, 0x0c30c305, 0xc30c30c3, 0xcf300014, |
2644 | 0xf3cf3cf3, 0x0004cf3c, 0xcdcdcdcd, 0xfffffff2, 0x304fffff, 0x0c30c30c, | 2596 | 0xf3cf3cf3, 0x0004cf3c, 0xcdcdcdcd, 0xfffffff2, 0x304fffff, 0x0c30c30c, |
2645 | 0xc30c30c3, 0xcf3cf300, 0xf3cf3cf3, 0x0008cf3c, 0xcdcdcdcd, 0xfffffffa, | 2597 | 0xc30c30c3, 0xcf3cf300, 0xf3cf3cf3, 0x0008cf3c, 0xcdcdcdcd, 0xffffff8a, |
2646 | 0x302fffff, 0x0c30c30c, 0xc30c30c3, 0xcf3cf300, 0xf3cf3cf3, 0x0010cf3c, | 2598 | 0x042fffff, 0x0c30c30c, 0xc30c30c3, 0xcf3cc000, 0xf3cf3cf3, 0x0010cf3c, |
2647 | 0xcdcdcdcd, 0xffffff97, 0x040fffff, 0x0c30c30c, 0xc30c30c3, 0xcf3cc000, | 2599 | 0xcdcdcdcd, 0xffffff97, 0x05cfffff, 0x0c30c30c, 0xc30c30c3, 0xcf3cc000, |
2648 | 0xf3cf3cf3, 0x0020cf3c, 0xcdcdcdcd, 0xfffffff5, 0x300fffff, 0x0c30c30c, | 2600 | 0xf3cf3cf3, 0x0020cf3c, 0xcdcdcdcd, 0xfffffff5, 0x310fffff, 0x0c30c30c, |
2649 | 0xc30c30c3, 0xcf3cf300, 0xf3cf3cf3, 0x0040cf3c, 0xcdcdcdcd, 0xffffffff, | 2601 | 0xc30c30c3, 0xcf3cf300, 0xf3cf3cf3, 0x0040cf3c, 0xcdcdcdcd, 0xfffffff3, |
2650 | 0x30cfffff, 0x0c30c30c, 0xc30c30c3, 0xcf3cf3cc, 0xf3cf3cf3, 0x0000cf3c, | 2602 | 0x300fffff, 0x0c30c30c, 0xc30c30c3, 0xcf3cf300, 0xf3cf3cf3, 0x0000cf3c, |
2651 | 0xcdcdcdcd, 0xffffffff, 0x30cfffff, 0x0c30c30c, 0xc30c30c3, 0xcf3cf3cc, | 2603 | 0xcdcdcdcd, 0xfffffff1, 0x300fffff, 0x0c30c30c, 0xc30c30c3, 0xcf3cf300, |
2652 | 0xf3cf3cf3, 0x0001cf3c, 0xcdcdcdcd, 0xffffffff, 0x30cfffff, 0x0c30c30c, | 2604 | 0xf3cf3cf3, 0x0001cf3c, 0xcdcdcdcd, 0xfffffff6, 0x305fffff, 0x0c30c30c, |
2653 | 0xc30c30c3, 0xcf3cf3cc, 0xf3cf3cf3, 0x0002cf3c, 0xcdcdcdcd, 0xffffffff, | 2605 | 0xc30c30c3, 0xcf3cf300, 0xf3cf3cf3, 0x0002cf3c, 0xcdcdcdcd, 0xfffff406, |
2654 | 0x30cfffff, 0x0c30c30c, 0xc30c30c3, 0xcf3cf3cc, 0xf3cf3cf3, 0x0004cf3c, | 2606 | 0x1cbfffff, 0x0c30c305, 0xc30c30c3, 0xcf300014, 0xf3cf3cf3, 0x0004cf3c, |
2655 | 0xcdcdcdcd, 0xffffffff, 0x30cfffff, 0x0c30c30c, 0xc30c30c3, 0xcf3cf3cc, | 2607 | 0xcdcdcdcd, 0xfffffff2, 0x304fffff, 0x0c30c30c, 0xc30c30c3, 0xcf3cf300, |
2656 | 0xf3cf3cf3, 0x0008cf3c, 0xcdcdcdcd, 0xffffffff, 0x30cfffff, 0x0c30c30c, | 2608 | 0xf3cf3cf3, 0x0008cf3c, 0xcdcdcdcd, 0xfffffffa, 0x302fffff, 0x0c30c30c, |
2657 | 0xc30c30c3, 0xcf3cf3cc, 0xf3cf3cf3, 0x0010cf3c, 0xcdcdcdcd, 0xffffffff, | 2609 | 0xc30c30c3, 0xcf3cf300, 0xf3cf3cf3, 0x0010cf3c, 0xcdcdcdcd, 0xffffff97, |
2658 | 0x30cfffff, 0x0c30c30c, 0xc30c30c3, 0xcf3cf3cc, 0xf3cf3cf3, 0x0020cf3c, | 2610 | 0x040fffff, 0x0c30c30c, 0xc30c30c3, 0xcf3cc000, 0xf3cf3cf3, 0x0020cf3c, |
2659 | 0xcdcdcdcd, 0xffffffff, 0x30cfffff, 0x0c30c30c, 0xc30c30c3, 0xcf3cf3cc, | 2611 | 0xcdcdcdcd, 0xfffffff5, 0x300fffff, 0x0c30c30c, 0xc30c30c3, 0xcf3cf300, |
2660 | 0xf3cf3cf3, 0x0040cf3c, 0xcdcdcdcd, 0xffffffff, 0x30cfffff, 0x0c30c30c, | 2612 | 0xf3cf3cf3, 0x0040cf3c, 0xcdcdcdcd, 0xffffffff, 0x30cfffff, 0x0c30c30c, |
2661 | 0xc30c30c3, 0xcf3cf3cc, 0xf3cf3cf3, 0x0000cf3c, 0xcdcdcdcd, 0xffffffff, | 2613 | 0xc30c30c3, 0xcf3cf3cc, 0xf3cf3cf3, 0x0000cf3c, 0xcdcdcdcd, 0xffffffff, |
2662 | 0x30cfffff, 0x0c30c30c, 0xc30c30c3, 0xcf3cf3cc, 0xf3cf3cf3, 0x0001cf3c, | 2614 | 0x30cfffff, 0x0c30c30c, 0xc30c30c3, 0xcf3cf3cc, 0xf3cf3cf3, 0x0001cf3c, |
@@ -2678,16 +2630,27 @@ static const u32 init_data_e1[] = { | |||
2678 | 0x30cfffff, 0x0c30c30c, 0xc30c30c3, 0xcf3cf3cc, 0xf3cf3cf3, 0x0010cf3c, | 2630 | 0x30cfffff, 0x0c30c30c, 0xc30c30c3, 0xcf3cf3cc, 0xf3cf3cf3, 0x0010cf3c, |
2679 | 0xcdcdcdcd, 0xffffffff, 0x30cfffff, 0x0c30c30c, 0xc30c30c3, 0xcf3cf3cc, | 2631 | 0xcdcdcdcd, 0xffffffff, 0x30cfffff, 0x0c30c30c, 0xc30c30c3, 0xcf3cf3cc, |
2680 | 0xf3cf3cf3, 0x0020cf3c, 0xcdcdcdcd, 0xffffffff, 0x30cfffff, 0x0c30c30c, | 2632 | 0xf3cf3cf3, 0x0020cf3c, 0xcdcdcdcd, 0xffffffff, 0x30cfffff, 0x0c30c30c, |
2681 | 0xc30c30c3, 0xcf3cf3cc, 0xf3cf3cf3, 0x0040cf3c, 0xcdcdcdcd, 0x00100000, | 2633 | 0xc30c30c3, 0xcf3cf3cc, 0xf3cf3cf3, 0x0040cf3c, 0xcdcdcdcd, 0xffffffff, |
2682 | 0x00070100, 0x00028170, 0x000b8198, 0x00020250, 0x00010270, 0x000f0280, | 2634 | 0x30cfffff, 0x0c30c30c, 0xc30c30c3, 0xcf3cf3cc, 0xf3cf3cf3, 0x0000cf3c, |
2683 | 0x00010370, 0x00080000, 0x00080080, 0x00028100, 0x000b8128, 0x000201e0, | 2635 | 0xcdcdcdcd, 0xffffffff, 0x30cfffff, 0x0c30c30c, 0xc30c30c3, 0xcf3cf3cc, |
2684 | 0x00010200, 0x00070210, 0x00020280, 0x000f0000, 0x000800f0, 0x00028170, | 2636 | 0xf3cf3cf3, 0x0001cf3c, 0xcdcdcdcd, 0xffffffff, 0x30cfffff, 0x0c30c30c, |
2685 | 0x000b8198, 0x00020250, 0x00010270, 0x000b8280, 0x00080338, 0x00100000, | 2637 | 0xc30c30c3, 0xcf3cf3cc, 0xf3cf3cf3, 0x0002cf3c, 0xcdcdcdcd, 0xffffffff, |
2686 | 0x00080100, 0x00028180, 0x000b81a8, 0x00020260, 0x00018280, 0x000e8298, | 2638 | 0x30cfffff, 0x0c30c30c, 0xc30c30c3, 0xcf3cf3cc, 0xf3cf3cf3, 0x0004cf3c, |
2687 | 0x00080380, 0x00028000, 0x000b8028, 0x000200e0, 0x00010100, 0x00008110, | 2639 | 0xcdcdcdcd, 0xffffffff, 0x30cfffff, 0x0c30c30c, 0xc30c30c3, 0xcf3cf3cc, |
2688 | 0x00000118, 0xcccccccc, 0xcccccccc, 0xcccccccc, 0xcccccccc, 0x00002000, | 2640 | 0xf3cf3cf3, 0x0008cf3c, 0xcdcdcdcd, 0xffffffff, 0x30cfffff, 0x0c30c30c, |
2689 | 0xcccccccc, 0xcccccccc, 0xcccccccc, 0xcccccccc, 0x00002000, 0xcccccccc, | 2641 | 0xc30c30c3, 0xcf3cf3cc, 0xf3cf3cf3, 0x0010cf3c, 0xcdcdcdcd, 0xffffffff, |
2690 | 0xcccccccc, 0xcccccccc, 0xcccccccc, 0x00002000 | 2642 | 0x30cfffff, 0x0c30c30c, 0xc30c30c3, 0xcf3cf3cc, 0xf3cf3cf3, 0x0020cf3c, |
2643 | 0xcdcdcdcd, 0xffffffff, 0x30cfffff, 0x0c30c30c, 0xc30c30c3, 0xcf3cf3cc, | ||
2644 | 0xf3cf3cf3, 0x0040cf3c, 0xcdcdcdcd, 0x00100000, 0x00070100, 0x00028170, | ||
2645 | 0x000b8198, 0x00020250, 0x00010270, 0x000f0280, 0x00010370, 0x00080000, | ||
2646 | 0x00080080, 0x00028100, 0x000b8128, 0x000201e0, 0x00010200, 0x00070210, | ||
2647 | 0x00020280, 0x000f0000, 0x000800f0, 0x00028170, 0x000b8198, 0x00020250, | ||
2648 | 0x00010270, 0x000b8280, 0x00080338, 0x00100000, 0x00080100, 0x00028180, | ||
2649 | 0x000b81a8, 0x00020260, 0x00018280, 0x000e8298, 0x00080380, 0x00028000, | ||
2650 | 0x000b8028, 0x000200e0, 0x00010100, 0x00008110, 0x00000118, 0xcccccccc, | ||
2651 | 0xcccccccc, 0xcccccccc, 0xcccccccc, 0x00002000, 0xcccccccc, 0xcccccccc, | ||
2652 | 0xcccccccc, 0xcccccccc, 0x00002000, 0xcccccccc, 0xcccccccc, 0xcccccccc, | ||
2653 | 0xcccccccc, 0x00002000 | ||
2691 | }; | 2654 | }; |
2692 | 2655 | ||
2693 | static const u32 init_data_e1h[] = { | 2656 | static const u32 init_data_e1h[] = { |
diff --git a/drivers/net/bnx2x_main.c b/drivers/net/bnx2x_main.c index ac46228cc9d0..6115161334a7 100644 --- a/drivers/net/bnx2x_main.c +++ b/drivers/net/bnx2x_main.c | |||
@@ -2975,37 +2975,6 @@ static inline long bnx2x_hilo(u32 *hiref) | |||
2975 | * Init service functions | 2975 | * Init service functions |
2976 | */ | 2976 | */ |
2977 | 2977 | ||
2978 | static void bnx2x_storm_stats_init(struct bnx2x *bp) | ||
2979 | { | ||
2980 | int func = BP_FUNC(bp); | ||
2981 | |||
2982 | REG_WR(bp, BAR_XSTRORM_INTMEM + XSTORM_STATS_FLAGS_OFFSET(func), 1); | ||
2983 | REG_WR(bp, BAR_XSTRORM_INTMEM + | ||
2984 | XSTORM_STATS_FLAGS_OFFSET(func) + 4, 0); | ||
2985 | |||
2986 | REG_WR(bp, BAR_TSTRORM_INTMEM + TSTORM_STATS_FLAGS_OFFSET(func), 1); | ||
2987 | REG_WR(bp, BAR_TSTRORM_INTMEM + | ||
2988 | TSTORM_STATS_FLAGS_OFFSET(func) + 4, 0); | ||
2989 | |||
2990 | REG_WR(bp, BAR_CSTRORM_INTMEM + CSTORM_STATS_FLAGS_OFFSET(func), 0); | ||
2991 | REG_WR(bp, BAR_CSTRORM_INTMEM + | ||
2992 | CSTORM_STATS_FLAGS_OFFSET(func) + 4, 0); | ||
2993 | |||
2994 | REG_WR(bp, BAR_XSTRORM_INTMEM + | ||
2995 | XSTORM_ETH_STATS_QUERY_ADDR_OFFSET(func), | ||
2996 | U64_LO(bnx2x_sp_mapping(bp, fw_stats))); | ||
2997 | REG_WR(bp, BAR_XSTRORM_INTMEM + | ||
2998 | XSTORM_ETH_STATS_QUERY_ADDR_OFFSET(func) + 4, | ||
2999 | U64_HI(bnx2x_sp_mapping(bp, fw_stats))); | ||
3000 | |||
3001 | REG_WR(bp, BAR_TSTRORM_INTMEM + | ||
3002 | TSTORM_ETH_STATS_QUERY_ADDR_OFFSET(func), | ||
3003 | U64_LO(bnx2x_sp_mapping(bp, fw_stats))); | ||
3004 | REG_WR(bp, BAR_TSTRORM_INTMEM + | ||
3005 | TSTORM_ETH_STATS_QUERY_ADDR_OFFSET(func) + 4, | ||
3006 | U64_HI(bnx2x_sp_mapping(bp, fw_stats))); | ||
3007 | } | ||
3008 | |||
3009 | static void bnx2x_storm_stats_post(struct bnx2x *bp) | 2978 | static void bnx2x_storm_stats_post(struct bnx2x *bp) |
3010 | { | 2979 | { |
3011 | if (!bp->stats_pending) { | 2980 | if (!bp->stats_pending) { |
@@ -4632,13 +4601,35 @@ static void bnx2x_set_storm_rx_mode(struct bnx2x *bp) | |||
4632 | bnx2x_set_client_config(bp); | 4601 | bnx2x_set_client_config(bp); |
4633 | } | 4602 | } |
4634 | 4603 | ||
4635 | static void bnx2x_init_internal(struct bnx2x *bp) | 4604 | static void bnx2x_init_internal_common(struct bnx2x *bp) |
4605 | { | ||
4606 | int i; | ||
4607 | |||
4608 | /* Zero this manually as its initialization is | ||
4609 | currently missing in the initTool */ | ||
4610 | for (i = 0; i < (USTORM_AGG_DATA_SIZE >> 2); i++) | ||
4611 | REG_WR(bp, BAR_USTRORM_INTMEM + | ||
4612 | USTORM_AGG_DATA_OFFSET + i * 4, 0); | ||
4613 | } | ||
4614 | |||
4615 | static void bnx2x_init_internal_port(struct bnx2x *bp) | ||
4616 | { | ||
4617 | int port = BP_PORT(bp); | ||
4618 | |||
4619 | REG_WR(bp, BAR_USTRORM_INTMEM + USTORM_HC_BTR_OFFSET(port), BNX2X_BTR); | ||
4620 | REG_WR(bp, BAR_CSTRORM_INTMEM + CSTORM_HC_BTR_OFFSET(port), BNX2X_BTR); | ||
4621 | REG_WR(bp, BAR_TSTRORM_INTMEM + TSTORM_HC_BTR_OFFSET(port), BNX2X_BTR); | ||
4622 | REG_WR(bp, BAR_XSTRORM_INTMEM + XSTORM_HC_BTR_OFFSET(port), BNX2X_BTR); | ||
4623 | } | ||
4624 | |||
4625 | static void bnx2x_init_internal_func(struct bnx2x *bp) | ||
4636 | { | 4626 | { |
4637 | struct tstorm_eth_function_common_config tstorm_config = {0}; | 4627 | struct tstorm_eth_function_common_config tstorm_config = {0}; |
4638 | struct stats_indication_flags stats_flags = {0}; | 4628 | struct stats_indication_flags stats_flags = {0}; |
4639 | int port = BP_PORT(bp); | 4629 | int port = BP_PORT(bp); |
4640 | int func = BP_FUNC(bp); | 4630 | int func = BP_FUNC(bp); |
4641 | int i; | 4631 | int i; |
4632 | u16 max_agg_size; | ||
4642 | 4633 | ||
4643 | if (is_multi(bp)) { | 4634 | if (is_multi(bp)) { |
4644 | tstorm_config.config_flags = MULTI_FLAGS; | 4635 | tstorm_config.config_flags = MULTI_FLAGS; |
@@ -4651,9 +4642,6 @@ static void bnx2x_init_internal(struct bnx2x *bp) | |||
4651 | TSTORM_FUNCTION_COMMON_CONFIG_OFFSET(func), | 4642 | TSTORM_FUNCTION_COMMON_CONFIG_OFFSET(func), |
4652 | (*(u32 *)&tstorm_config)); | 4643 | (*(u32 *)&tstorm_config)); |
4653 | 4644 | ||
4654 | /* DP(NETIF_MSG_IFUP, "tstorm_config: 0x%08x\n", | ||
4655 | (*(u32 *)&tstorm_config)); */ | ||
4656 | |||
4657 | bp->rx_mode = BNX2X_RX_MODE_NONE; /* no rx until link is up */ | 4645 | bp->rx_mode = BNX2X_RX_MODE_NONE; /* no rx until link is up */ |
4658 | bnx2x_set_storm_rx_mode(bp); | 4646 | bnx2x_set_storm_rx_mode(bp); |
4659 | 4647 | ||
@@ -4716,15 +4704,12 @@ static void bnx2x_init_internal(struct bnx2x *bp) | |||
4716 | bp->e1hov); | 4704 | bp->e1hov); |
4717 | } | 4705 | } |
4718 | 4706 | ||
4719 | /* Zero this manualy as its initialization is | 4707 | /* Init CQ ring mapping and aggregation size */ |
4720 | currently missing in the initTool */ | 4708 | max_agg_size = min((u32)(bp->rx_buf_use_size + |
4721 | for (i = 0; i < USTORM_AGG_DATA_SIZE >> 2; i++) | 4709 | 8*BCM_PAGE_SIZE*PAGES_PER_SGE), |
4722 | REG_WR(bp, BAR_USTRORM_INTMEM + | 4710 | (u32)0xffff); |
4723 | USTORM_AGG_DATA_OFFSET + 4*i, 0); | ||
4724 | |||
4725 | for_each_queue(bp, i) { | 4711 | for_each_queue(bp, i) { |
4726 | struct bnx2x_fastpath *fp = &bp->fp[i]; | 4712 | struct bnx2x_fastpath *fp = &bp->fp[i]; |
4727 | u16 max_agg_size; | ||
4728 | 4713 | ||
4729 | REG_WR(bp, BAR_USTRORM_INTMEM + | 4714 | REG_WR(bp, BAR_USTRORM_INTMEM + |
4730 | USTORM_CQE_PAGE_BASE_OFFSET(port, FP_CL_ID(fp)), | 4715 | USTORM_CQE_PAGE_BASE_OFFSET(port, FP_CL_ID(fp)), |
@@ -4733,16 +4718,34 @@ static void bnx2x_init_internal(struct bnx2x *bp) | |||
4733 | USTORM_CQE_PAGE_BASE_OFFSET(port, FP_CL_ID(fp)) + 4, | 4718 | USTORM_CQE_PAGE_BASE_OFFSET(port, FP_CL_ID(fp)) + 4, |
4734 | U64_HI(fp->rx_comp_mapping)); | 4719 | U64_HI(fp->rx_comp_mapping)); |
4735 | 4720 | ||
4736 | max_agg_size = min((u32)(bp->rx_buf_use_size + | ||
4737 | 8*BCM_PAGE_SIZE*PAGES_PER_SGE), | ||
4738 | (u32)0xffff); | ||
4739 | REG_WR16(bp, BAR_USTRORM_INTMEM + | 4721 | REG_WR16(bp, BAR_USTRORM_INTMEM + |
4740 | USTORM_MAX_AGG_SIZE_OFFSET(port, FP_CL_ID(fp)), | 4722 | USTORM_MAX_AGG_SIZE_OFFSET(port, FP_CL_ID(fp)), |
4741 | max_agg_size); | 4723 | max_agg_size); |
4742 | } | 4724 | } |
4743 | } | 4725 | } |
4744 | 4726 | ||
4745 | static void bnx2x_nic_init(struct bnx2x *bp) | 4727 | static void bnx2x_init_internal(struct bnx2x *bp, u32 load_code) |
4728 | { | ||
4729 | switch (load_code) { | ||
4730 | case FW_MSG_CODE_DRV_LOAD_COMMON: | ||
4731 | bnx2x_init_internal_common(bp); | ||
4732 | /* no break */ | ||
4733 | |||
4734 | case FW_MSG_CODE_DRV_LOAD_PORT: | ||
4735 | bnx2x_init_internal_port(bp); | ||
4736 | /* no break */ | ||
4737 | |||
4738 | case FW_MSG_CODE_DRV_LOAD_FUNCTION: | ||
4739 | bnx2x_init_internal_func(bp); | ||
4740 | break; | ||
4741 | |||
4742 | default: | ||
4743 | BNX2X_ERR("Unknown load_code (0x%x) from MCP\n", load_code); | ||
4744 | break; | ||
4745 | } | ||
4746 | } | ||
4747 | |||
4748 | static void bnx2x_nic_init(struct bnx2x *bp, u32 load_code) | ||
4746 | { | 4749 | { |
4747 | int i; | 4750 | int i; |
4748 | 4751 | ||
@@ -4768,8 +4771,7 @@ static void bnx2x_nic_init(struct bnx2x *bp) | |||
4768 | bnx2x_init_tx_ring(bp); | 4771 | bnx2x_init_tx_ring(bp); |
4769 | bnx2x_init_sp_ring(bp); | 4772 | bnx2x_init_sp_ring(bp); |
4770 | bnx2x_init_context(bp); | 4773 | bnx2x_init_context(bp); |
4771 | bnx2x_init_internal(bp); | 4774 | bnx2x_init_internal(bp, load_code); |
4772 | bnx2x_storm_stats_init(bp); | ||
4773 | bnx2x_init_ind_table(bp); | 4775 | bnx2x_init_ind_table(bp); |
4774 | bnx2x_int_enable(bp); | 4776 | bnx2x_int_enable(bp); |
4775 | } | 4777 | } |
@@ -6325,7 +6327,7 @@ static int bnx2x_nic_load(struct bnx2x *bp, int load_mode) | |||
6325 | atomic_set(&bp->intr_sem, 0); | 6327 | atomic_set(&bp->intr_sem, 0); |
6326 | 6328 | ||
6327 | /* Setup NIC internals and enable interrupts */ | 6329 | /* Setup NIC internals and enable interrupts */ |
6328 | bnx2x_nic_init(bp); | 6330 | bnx2x_nic_init(bp, load_code); |
6329 | 6331 | ||
6330 | /* Send LOAD_DONE command to MCP */ | 6332 | /* Send LOAD_DONE command to MCP */ |
6331 | if (!BP_NOMCP(bp)) { | 6333 | if (!BP_NOMCP(bp)) { |