qedf_hsi.h (c25141062a82ae8bddced1b3ce2b57a1c0efabe0) | qedf_hsi.h (da09091732aecc2d9a068c5bd8e9fd925cc430f2) |
---|---|
1/* 2 * QLogic FCoE Offload Driver 3 * Copyright (c) 2016-2017 Cavium Inc. 4 * 5 * This software is available under the terms of the GNU General Public License 6 * (GPL) Version 2, available from the file COPYING in the main directory of 7 * this source tree. 8 */ --- 211 unchanged lines hidden (view full) --- 220 FCOE_EXCH_CLEANUP_CQE_TYPE /* task cleanup completed */, 221 FCOE_ABTS_CQE_TYPE /* ABTS received and task cleaned */, 222 FCOE_DUMMY_CQE_TYPE /* just increment SQ CONS */, 223 /* Task was completed wight after sending a pkt to the target */ 224 FCOE_LOCAL_COMP_CQE_TYPE, 225 MAX_FCOE_CQE_TYPE 226}; 227 | 1/* 2 * QLogic FCoE Offload Driver 3 * Copyright (c) 2016-2017 Cavium Inc. 4 * 5 * This software is available under the terms of the GNU General Public License 6 * (GPL) Version 2, available from the file COPYING in the main directory of 7 * this source tree. 8 */ --- 211 unchanged lines hidden (view full) --- 220 FCOE_EXCH_CLEANUP_CQE_TYPE /* task cleanup completed */, 221 FCOE_ABTS_CQE_TYPE /* ABTS received and task cleaned */, 222 FCOE_DUMMY_CQE_TYPE /* just increment SQ CONS */, 223 /* Task was completed wight after sending a pkt to the target */ 224 FCOE_LOCAL_COMP_CQE_TYPE, 225 MAX_FCOE_CQE_TYPE 226}; 227 |
228 | |
229/* | 228/* |
230 * FCoE device type 231 */ 232enum fcoe_device_type { 233 FCOE_TASK_DEV_TYPE_DISK, 234 FCOE_TASK_DEV_TYPE_TAPE, 235 MAX_FCOE_DEVICE_TYPE 236}; 237 238 239 240 241/* | |
242 * FCoE fast path error codes 243 */ 244enum fcoe_fp_error_warning_code { 245 FCOE_ERROR_CODE_XFER_OOO_RO /* XFER error codes */, 246 FCOE_ERROR_CODE_XFER_RO_NOT_ALIGNED, 247 FCOE_ERROR_CODE_XFER_NULL_BURST_LEN, 248 FCOE_ERROR_CODE_XFER_RO_GREATER_THAN_DATA2TRNS, 249 FCOE_ERROR_CODE_XFER_INVALID_PAYLOAD_SIZE, --- 77 unchanged lines hidden (view full) --- 327 */ 328enum fcoe_sp_error_code { 329 /* Error codes for Error Reporting in slow path flows */ 330 FCOE_ERROR_CODE_SLOW_PATH_TOO_MANY_FUNCS, 331 FCOE_ERROR_SLOW_PATH_CODE_NO_LICENSE, 332 MAX_FCOE_SP_ERROR_CODE 333}; 334 | 229 * FCoE fast path error codes 230 */ 231enum fcoe_fp_error_warning_code { 232 FCOE_ERROR_CODE_XFER_OOO_RO /* XFER error codes */, 233 FCOE_ERROR_CODE_XFER_RO_NOT_ALIGNED, 234 FCOE_ERROR_CODE_XFER_NULL_BURST_LEN, 235 FCOE_ERROR_CODE_XFER_RO_GREATER_THAN_DATA2TRNS, 236 FCOE_ERROR_CODE_XFER_INVALID_PAYLOAD_SIZE, --- 77 unchanged lines hidden (view full) --- 314 */ 315enum fcoe_sp_error_code { 316 /* Error codes for Error Reporting in slow path flows */ 317 FCOE_ERROR_CODE_SLOW_PATH_TOO_MANY_FUNCS, 318 FCOE_ERROR_SLOW_PATH_CODE_NO_LICENSE, 319 MAX_FCOE_SP_ERROR_CODE 320}; 321 |
335 | |
336/* | 322/* |
337 * FCoE SQE request type 338 */ 339enum fcoe_sqe_request_type { 340 SEND_FCOE_CMD, 341 SEND_FCOE_MIDPATH, 342 SEND_FCOE_ABTS_REQUEST, 343 FCOE_EXCHANGE_CLEANUP, 344 FCOE_SEQUENCE_RECOVERY, 345 SEND_FCOE_XFER_RDY, 346 SEND_FCOE_RSP, 347 SEND_FCOE_RSP_WITH_SENSE_DATA, 348 SEND_FCOE_TARGET_DATA, 349 SEND_FCOE_INITIATOR_DATA, 350 /* 351 * Xfer Continuation (==1) ready to be sent. Previous XFERs data 352 * received successfully. 353 */ 354 SEND_FCOE_XFER_CONTINUATION_RDY, 355 SEND_FCOE_TARGET_ABTS_RSP, 356 MAX_FCOE_SQE_REQUEST_TYPE 357}; 358 359 360/* | |
361 * FCoE task TX state 362 */ 363enum fcoe_task_tx_state { 364 /* Initiate state after driver has initialized the task */ 365 FCOE_TASK_TX_STATE_NORMAL, 366 /* Updated by TX path after complete transmitting unsolicited packet */ 367 FCOE_TASK_TX_STATE_UNSOLICITED_COMPLETED, 368 /* --- 15 unchanged lines hidden (view full) --- 384 FCOE_TASK_TX_STATE_EXCLEANUP_TARGET_READ_OR_RSP, 385 /* Updated by TX path during target exchange cleanup procedure */ 386 FCOE_TASK_TX_STATE_EXCLEANUP_TARGET_WRITE_LAST_CYCLE, 387 /* Updated by TX path during sequence recovery procedure */ 388 FCOE_TASK_TX_STATE_SEQRECOVERY, 389 MAX_FCOE_TASK_TX_STATE 390}; 391 | 323 * FCoE task TX state 324 */ 325enum fcoe_task_tx_state { 326 /* Initiate state after driver has initialized the task */ 327 FCOE_TASK_TX_STATE_NORMAL, 328 /* Updated by TX path after complete transmitting unsolicited packet */ 329 FCOE_TASK_TX_STATE_UNSOLICITED_COMPLETED, 330 /* --- 15 unchanged lines hidden (view full) --- 346 FCOE_TASK_TX_STATE_EXCLEANUP_TARGET_READ_OR_RSP, 347 /* Updated by TX path during target exchange cleanup procedure */ 348 FCOE_TASK_TX_STATE_EXCLEANUP_TARGET_WRITE_LAST_CYCLE, 349 /* Updated by TX path during sequence recovery procedure */ 350 FCOE_TASK_TX_STATE_SEQRECOVERY, 351 MAX_FCOE_TASK_TX_STATE 352}; 353 |
392 393/* 394 * FCoE task type 395 */ 396enum fcoe_task_type { 397 FCOE_TASK_TYPE_WRITE_INITIATOR, 398 FCOE_TASK_TYPE_READ_INITIATOR, 399 FCOE_TASK_TYPE_MIDPATH, 400 FCOE_TASK_TYPE_UNSOLICITED, 401 FCOE_TASK_TYPE_ABTS, 402 FCOE_TASK_TYPE_EXCHANGE_CLEANUP, 403 FCOE_TASK_TYPE_SEQUENCE_CLEANUP, 404 FCOE_TASK_TYPE_WRITE_TARGET, 405 FCOE_TASK_TYPE_READ_TARGET, 406 FCOE_TASK_TYPE_RSP, 407 FCOE_TASK_TYPE_RSP_SENSE_DATA, 408 FCOE_TASK_TYPE_ABTS_TARGET, 409 FCOE_TASK_TYPE_ENUM_SIZE, 410 MAX_FCOE_TASK_TYPE 411}; 412 413struct scsi_glbl_queue_entry { 414 /* Start physical address for the RQ (receive queue) PBL. */ 415 struct regpair rq_pbl_addr; 416 /* Start physical address for the CQ (completion queue) PBL. */ 417 struct regpair cq_pbl_addr; 418 /* Start physical address for the CMDQ (command queue) PBL. */ 419 struct regpair cmdq_pbl_addr; 420}; 421 | |
422#endif /* __QEDF_HSI__ */ | 354#endif /* __QEDF_HSI__ */ |