hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/scsi/pm8001/pm80xx_hwi.h
....@@ -170,6 +170,10 @@
170170 #define LINKRATE_60 (0x04 << 8)
171171 #define LINKRATE_120 (0x08 << 8)
172172
173
+/*phy_stop*/
174
+#define PHY_STOP_SUCCESS 0x00
175
+#define PHY_STOP_ERR_DEVICE_ATTACHED 0x1046
176
+
173177 /* phy_profile */
174178 #define SAS_PHY_ANALOG_SETTINGS_PAGE 0x04
175179 #define PHY_DWORD_LENGTH 0xC
....@@ -216,8 +220,9 @@
216220 #define SAS_DOPNRJT_RTRY_TMO 128
217221 #define SAS_COPNRJT_RTRY_TMO 128
218222
219
-/* for phy state */
220
-#define PHY_STATE_LINK_UP_SPCV 0x2
223
+#define SPCV_DOORBELL_CLEAR_TIMEOUT (30 * 1000 * 1000) /* 30 sec */
224
+#define SPC_DOORBELL_CLEAR_TIMEOUT (15 * 1000 * 1000) /* 15 sec */
225
+
221226 /*
222227 Making ORR bigger than IT NEXUS LOSS which is 2000000us = 2 second.
223228 Assuming a bigger value 3 second, 3000000/128 = 23437.5 where 128
....@@ -1386,8 +1391,12 @@
13861391 #define SCRATCH_PAD_BOOT_LOAD_SUCCESS 0x0
13871392 #define SCRATCH_PAD_IOP0_READY 0xC00
13881393 #define SCRATCH_PAD_IOP1_READY 0x3000
1389
-#define SCRATCH_PAD_MIPSALL_READY (SCRATCH_PAD_IOP1_READY | \
1394
+#define SCRATCH_PAD_MIPSALL_READY_16PORT (SCRATCH_PAD_IOP1_READY | \
13901395 SCRATCH_PAD_IOP0_READY | \
1396
+ SCRATCH_PAD_ILA_READY | \
1397
+ SCRATCH_PAD_RAAE_READY)
1398
+#define SCRATCH_PAD_MIPSALL_READY_8PORT (SCRATCH_PAD_IOP0_READY | \
1399
+ SCRATCH_PAD_ILA_READY | \
13911400 SCRATCH_PAD_RAAE_READY)
13921401
13931402 /* boot loader state */