mirror of
https://github.com/ipxe/ipxe
synced 2025-12-25 00:17:57 +03:00
[PXEXT] Add FILE_API_CHECK API function
Add FILE_API_CHECK to the PXEXT API so the NBP can query the availability and status of the API.
This commit is contained in:
@@ -64,6 +64,7 @@ union u_PXENV_ANY {
|
||||
struct s_PXENV_FILE_READ file_read;
|
||||
struct s_PXENV_GET_FILE_SIZE get_file_size;
|
||||
struct s_PXENV_FILE_EXEC file_exec;
|
||||
struct s_PXENV_FILE_API_CHECK file_api_check;
|
||||
};
|
||||
|
||||
typedef union u_PXENV_ANY PXENV_ANY_t;
|
||||
|
||||
@@ -1706,6 +1706,32 @@ extern PXENV_EXIT_t pxenv_file_exec ( struct s_PXENV_FILE_EXEC *file_exec );
|
||||
|
||||
/** @} */ /* pxenv_file_exec */
|
||||
|
||||
/** @defgroup pxenv_file_api_check PXENV_FILE_API_CHECK
|
||||
*
|
||||
* FILE API CHECK
|
||||
*
|
||||
* @{
|
||||
*/
|
||||
|
||||
/** PXE API function code for pxenv_file_api_check() */
|
||||
#define PXENV_FILE_API_CHECK 0x00e6
|
||||
|
||||
/** Parameter block for pxenv_file_api_check() */
|
||||
struct s_PXENV_FILE_API_CHECK {
|
||||
PXENV_STATUS_t Status; /**< PXE status code */
|
||||
UINT16_t Size; /**< Size of structure */
|
||||
UINT32_t Magic; /**< Magic number */
|
||||
UINT32_t Provider; /**< Implementation identifier */
|
||||
UINT32_t APIMask; /**< Supported API functions */
|
||||
UINT32_t Flags; /**< Reserved for the future */
|
||||
} PACKED;
|
||||
|
||||
typedef struct s_PXENV_FILE_API_CHECK PXENV_FILE_API_CHECK_t;
|
||||
|
||||
extern PXENV_EXIT_t pxenv_file_api_check ( struct s_PXENV_FILE_API_CHECK *file_api_check );
|
||||
|
||||
/** @} */ /* pxenv_file_api_check */
|
||||
|
||||
/** @} */ /* pxe_file_api */
|
||||
|
||||
/** @defgroup pxe_loader_api PXE Loader API
|
||||
|
||||
Reference in New Issue
Block a user