if_ixstatus.h

来自「marvell cf wifi driver source code CF-8」· C头文件 代码 · 共 32 行

H
32
字号
/***************** (c) Marvell Semiconductor, Inc., 2001 ******************
 * File:	IxStatus.h
 * Description:	Contains commonalized error codes for networking.
 *************************************************************************/
     
#ifndef IF_IXSTATUS_H
#define IF_IXSTATUS_H
    
/* Status error codes returned by the abstracted interfaces */ 
typedef enum {
	IX_STATUS_SUCCESS = 0,
	IX_STATUS_DEVICE_BUSY,	// Device is busy... must wait.
	IX_STATUS_NO_RESP,	// No response is waiting from the device.
	IX_STATUS_NO_DATA,	// No data available at the device.
	IX_STATUS_RESOURCES,	// Out of whatever resource is being asked for
	IX_STATUS_PENDING,	// Unable to complete immediately
	IX_STATUS_FAILURE,	// Function call unsuccessful
	IX_STATUS_INVALID_ARG,	// Invalid argument passed by the caller
	IX_STATUS_ERROR_UNKNOWN,// Unknown system error occurred
	IX_STATUS_HWINIT_FAIL,	// Hardware failed to initialize
	IX_STATUS_BOOT_READY,	// boot loader ready
	IX_STATUS_HOST_BOOT_READY, 
	/* Add new entries above this */ 
	IX_STATUS_INVALID_STATUS_VALUE	// Anything equal or above this 
					// is invalid status.
} IX_STATUS;

#define IX_SUCCESS(stat) ((stat)==IX_STATUS_SUCCESS)
    
#endif	/* IF_IXSTATUS_H */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?