|
iPXE
|
#include "../../include/public/mlx_icmd.h"Go to the source code of this file.
Data Structures | |
| struct | operation_tlv |
| struct | reg_tlv |
| struct | mail_box_tlv |
Macros | |
| #define | MLX_REG_ACCESS_H_ |
| #define | REG_ACCESS_MAX_REG_SIZE 236 |
| #define | REG_ID_NVDA 0x9024 |
| #define | REG_ID_NVDI 0x9025 |
| #define | REG_ID_NVIA 0x9029 |
| #define | REG_ID_MLCR 0x902b |
| #define | REG_ID_NVQC 0x9030 |
| #define | REG_ID_MFRL 0x9028 |
| #define | REG_ID_PTYS 0x5004 |
| #define | REG_ID_PMTU 0x5003 |
Enumerations | |
| enum | REG_ACCESS_OPT { REG_ACCESS_READ = 1 , REG_ACCESS_WRITE = 2 } |
Functions | |
| FILE_LICENCE (GPL2_OR_LATER) | |
| mlx_status | mlx_reg_access (IN mlx_utils *utils, IN mlx_uint16 reg_id, IN REG_ACCESS_OPT reg_opt, IN OUT mlx_void *reg_data, IN mlx_size reg_size, OUT mlx_uint32 *reg_status) |
| #define MLX_REG_ACCESS_H_ |
Definition at line 23 of file mlx_reg_access.h.
| #define REG_ACCESS_MAX_REG_SIZE 236 |
Definition at line 27 of file mlx_reg_access.h.
Referenced by mlx_reg_access().
| #define REG_ID_NVDA 0x9024 |
Definition at line 34 of file mlx_reg_access.h.
Referenced by nvconfig_nvdata_access().
| #define REG_ID_NVDI 0x9025 |
Definition at line 35 of file mlx_reg_access.h.
Referenced by nvconfig_nvdata_invalidate().
| #define REG_ID_NVIA 0x9029 |
Definition at line 36 of file mlx_reg_access.h.
| #define REG_ID_MLCR 0x902b |
Definition at line 37 of file mlx_reg_access.h.
Referenced by mlx_blink_leds().
| #define REG_ID_NVQC 0x9030 |
Definition at line 38 of file mlx_reg_access.h.
Referenced by nvconfig_query_capability().
| #define REG_ID_MFRL 0x9028 |
Definition at line 39 of file mlx_reg_access.h.
Referenced by nvconfig_set_fw_reset_level().
| #define REG_ID_PTYS 0x5004 |
Definition at line 40 of file mlx_reg_access.h.
Referenced by mlx_get_max_speed(), and mlx_set_link_speed().
| #define REG_ID_PMTU 0x5003 |
Definition at line 41 of file mlx_reg_access.h.
Referenced by mlx_get_max_mtu(), and mlx_set_admin_mtu().
| enum REG_ACCESS_OPT |
| Enumerator | |
|---|---|
| REG_ACCESS_READ | |
| REG_ACCESS_WRITE | |
Definition at line 29 of file mlx_reg_access.h.
| FILE_LICENCE | ( | GPL2_OR_LATER | ) |
| mlx_status mlx_reg_access | ( | IN mlx_utils * | utils, |
| IN mlx_uint16 | reg_id, | ||
| IN REG_ACCESS_OPT | reg_opt, | ||
| IN OUT mlx_void * | reg_data, | ||
| IN mlx_size | reg_size, | ||
| OUT mlx_uint32 * | reg_status ) |
Definition at line 47 of file mlx_reg_access.c.
References reg_tlv::data, FLASH_REG_ACCESS, IN, init_operation_tlv(), reg_tlv::len, MLX_CHECK_STATUS, mlx_icmd_send_command(), MLX_INVALID_PARAMETER, mlx_memory_cpy(), mlx_memory_set(), MLX_SUCCESS, NULL, OP_TLV_SIZE, mail_box_tlv::operation_tlv, OUT, REG_ACCESS_MAX_REG_SIZE, REG_ACCESS_TLV_REG, mail_box_tlv::reg_tlv, REG_TLV_HEADER_LEN, operation_tlv::status, status, and reg_tlv::Type.
Referenced by mlx_blink_leds(), mlx_get_max_mtu(), mlx_get_max_speed(), mlx_set_admin_mtu(), mlx_set_link_speed(), nvconfig_nvdata_access(), nvconfig_nvdata_invalidate(), nvconfig_query_capability(), and nvconfig_set_fw_reset_level().