1 /****************************************************************************** 2 * 3 * Copyright(c) 2019 Realtek Corporation. 4 * 5 * This program is free software; you can redistribute it and/or modify it 6 * under the terms of version 2 of the GNU General Public License as 7 * published by the Free Software Foundation. 8 * 9 * This program is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 12 * more details. 13 * 14 *****************************************************************************/ 15 #ifndef _PHL_STATUS_H_ 16 #define _PHL_STATUS_H_ 17 18 enum rtw_phl_status { 19 RTW_PHL_STATUS_SUCCESS, /* 0 */ 20 RTW_PHL_STATUS_FAILURE, /* 1 */ 21 RTW_PHL_STATUS_RESOURCE, /* 2 */ 22 RTW_PHL_STATUS_HAL_INIT_FAILURE, /* 3 */ 23 RTW_PHL_STATUS_PENDING, /* 4 */ 24 RTW_PHL_STATUS_FRAME_DROP, /* 5 */ 25 RTW_PHL_STATUS_INVALID_PARAM, /* 6 */ 26 RTW_PHL_STATUS_CMD_TIMEOUT, /* 7 */ 27 RTW_PHL_STATUS_CMD_ERROR, /* 8 */ 28 RTW_PHL_STATUS_CMD_DROP, /* 9 */ 29 RTW_PHL_STATUS_CMD_CANNOT_IO, /* 10 */ 30 RTW_PHL_STATUS_CMD_SUCCESS, /* 11 */ 31 RTW_PHL_STATUS_UNEXPECTED_ERROR, /* 12 */ 32 RTW_PHL_STATUS_CANNOT_IO, /* 13 */ 33 }; 34 35 #define is_cmd_failure(psts) ((psts == RTW_PHL_STATUS_CMD_TIMEOUT) || \ 36 (psts == RTW_PHL_STATUS_CMD_ERROR) || \ 37 (psts == RTW_PHL_STATUS_CMD_DROP) || \ 38 (psts == RTW_PHL_STATUS_CMD_CANNOT_IO)) 39 40 enum phl_mdl_ret_code { 41 MDL_RET_SUCCESS = 0, 42 MDL_RET_FAIL, 43 MDL_RET_IGNORE, 44 MDL_RET_PENDING, 45 MDL_RET_CANNOT_IO, 46 }; 47 48 #endif /*_PHL_STATUS_H_*/ 49 50