Add bindgen generated constants for NV_STATUS. This is used for RM control messages.
Signed-off-by: Eliot Courtney <[email protected]> --- drivers/gpu/nova-core/gsp/fw/r570_144/bindings.rs | 144 ++++++++++++++++++++++ 1 file changed, 144 insertions(+) diff --git a/drivers/gpu/nova-core/gsp/fw/r570_144/bindings.rs b/drivers/gpu/nova-core/gsp/fw/r570_144/bindings.rs index 334e8be5fde8..dd37a7fd58c6 100644 --- a/drivers/gpu/nova-core/gsp/fw/r570_144/bindings.rs +++ b/drivers/gpu/nova-core/gsp/fw/r570_144/bindings.rs @@ -379,6 +379,150 @@ pub struct NV2080_CTRL_CMD_FB_GET_FB_REGION_INFO_PARAMS { pub __bindgen_padding_0: [u8; 4usize], pub fbRegion: [NV2080_CTRL_CMD_FB_GET_FB_REGION_FB_REGION_INFO; 16usize], } +pub const NV_OK: _bindgen_ty_4 = 0; +pub const NV_ERR_GENERIC: _bindgen_ty_4 = 65535; +pub const NV_ERR_BROKEN_FB: _bindgen_ty_4 = 1; +pub const NV_ERR_BUFFER_TOO_SMALL: _bindgen_ty_4 = 2; +pub const NV_ERR_BUSY_RETRY: _bindgen_ty_4 = 3; +pub const NV_ERR_CALLBACK_NOT_SCHEDULED: _bindgen_ty_4 = 4; +pub const NV_ERR_CARD_NOT_PRESENT: _bindgen_ty_4 = 5; +pub const NV_ERR_CYCLE_DETECTED: _bindgen_ty_4 = 6; +pub const NV_ERR_DMA_IN_USE: _bindgen_ty_4 = 7; +pub const NV_ERR_DMA_MEM_NOT_LOCKED: _bindgen_ty_4 = 8; +pub const NV_ERR_DMA_MEM_NOT_UNLOCKED: _bindgen_ty_4 = 9; +pub const NV_ERR_DUAL_LINK_INUSE: _bindgen_ty_4 = 10; +pub const NV_ERR_ECC_ERROR: _bindgen_ty_4 = 11; +pub const NV_ERR_FIFO_BAD_ACCESS: _bindgen_ty_4 = 12; +pub const NV_ERR_FREQ_NOT_SUPPORTED: _bindgen_ty_4 = 13; +pub const NV_ERR_GPU_DMA_NOT_INITIALIZED: _bindgen_ty_4 = 14; +pub const NV_ERR_GPU_IS_LOST: _bindgen_ty_4 = 15; +pub const NV_ERR_GPU_IN_FULLCHIP_RESET: _bindgen_ty_4 = 16; +pub const NV_ERR_GPU_NOT_FULL_POWER: _bindgen_ty_4 = 17; +pub const NV_ERR_GPU_UUID_NOT_FOUND: _bindgen_ty_4 = 18; +pub const NV_ERR_HOT_SWITCH: _bindgen_ty_4 = 19; +pub const NV_ERR_I2C_ERROR: _bindgen_ty_4 = 20; +pub const NV_ERR_I2C_SPEED_TOO_HIGH: _bindgen_ty_4 = 21; +pub const NV_ERR_ILLEGAL_ACTION: _bindgen_ty_4 = 22; +pub const NV_ERR_IN_USE: _bindgen_ty_4 = 23; +pub const NV_ERR_INFLATE_COMPRESSED_DATA_FAILED: _bindgen_ty_4 = 24; +pub const NV_ERR_INSERT_DUPLICATE_NAME: _bindgen_ty_4 = 25; +pub const NV_ERR_INSUFFICIENT_RESOURCES: _bindgen_ty_4 = 26; +pub const NV_ERR_INSUFFICIENT_PERMISSIONS: _bindgen_ty_4 = 27; +pub const NV_ERR_INSUFFICIENT_POWER: _bindgen_ty_4 = 28; +pub const NV_ERR_INVALID_ACCESS_TYPE: _bindgen_ty_4 = 29; +pub const NV_ERR_INVALID_ADDRESS: _bindgen_ty_4 = 30; +pub const NV_ERR_INVALID_ARGUMENT: _bindgen_ty_4 = 31; +pub const NV_ERR_INVALID_BASE: _bindgen_ty_4 = 32; +pub const NV_ERR_INVALID_CHANNEL: _bindgen_ty_4 = 33; +pub const NV_ERR_INVALID_CLASS: _bindgen_ty_4 = 34; +pub const NV_ERR_INVALID_CLIENT: _bindgen_ty_4 = 35; +pub const NV_ERR_INVALID_COMMAND: _bindgen_ty_4 = 36; +pub const NV_ERR_INVALID_DATA: _bindgen_ty_4 = 37; +pub const NV_ERR_INVALID_DEVICE: _bindgen_ty_4 = 38; +pub const NV_ERR_INVALID_DMA_SPECIFIER: _bindgen_ty_4 = 39; +pub const NV_ERR_INVALID_EVENT: _bindgen_ty_4 = 40; +pub const NV_ERR_INVALID_FLAGS: _bindgen_ty_4 = 41; +pub const NV_ERR_INVALID_FUNCTION: _bindgen_ty_4 = 42; +pub const NV_ERR_INVALID_HEAP: _bindgen_ty_4 = 43; +pub const NV_ERR_INVALID_INDEX: _bindgen_ty_4 = 44; +pub const NV_ERR_INVALID_IRQ_LEVEL: _bindgen_ty_4 = 45; +pub const NV_ERR_INVALID_LIMIT: _bindgen_ty_4 = 46; +pub const NV_ERR_INVALID_LOCK_STATE: _bindgen_ty_4 = 47; +pub const NV_ERR_INVALID_METHOD: _bindgen_ty_4 = 48; +pub const NV_ERR_INVALID_OBJECT: _bindgen_ty_4 = 49; +pub const NV_ERR_INVALID_OBJECT_BUFFER: _bindgen_ty_4 = 50; +pub const NV_ERR_INVALID_OBJECT_HANDLE: _bindgen_ty_4 = 51; +pub const NV_ERR_INVALID_OBJECT_NEW: _bindgen_ty_4 = 52; +pub const NV_ERR_INVALID_OBJECT_OLD: _bindgen_ty_4 = 53; +pub const NV_ERR_INVALID_OBJECT_PARENT: _bindgen_ty_4 = 54; +pub const NV_ERR_INVALID_OFFSET: _bindgen_ty_4 = 55; +pub const NV_ERR_INVALID_OPERATION: _bindgen_ty_4 = 56; +pub const NV_ERR_INVALID_OWNER: _bindgen_ty_4 = 57; +pub const NV_ERR_INVALID_PARAM_STRUCT: _bindgen_ty_4 = 58; +pub const NV_ERR_INVALID_PARAMETER: _bindgen_ty_4 = 59; +pub const NV_ERR_INVALID_PATH: _bindgen_ty_4 = 60; +pub const NV_ERR_INVALID_POINTER: _bindgen_ty_4 = 61; +pub const NV_ERR_INVALID_REGISTRY_KEY: _bindgen_ty_4 = 62; +pub const NV_ERR_INVALID_REQUEST: _bindgen_ty_4 = 63; +pub const NV_ERR_INVALID_STATE: _bindgen_ty_4 = 64; +pub const NV_ERR_INVALID_STRING_LENGTH: _bindgen_ty_4 = 65; +pub const NV_ERR_INVALID_READ: _bindgen_ty_4 = 66; +pub const NV_ERR_INVALID_WRITE: _bindgen_ty_4 = 67; +pub const NV_ERR_INVALID_XLATE: _bindgen_ty_4 = 68; +pub const NV_ERR_IRQ_NOT_FIRING: _bindgen_ty_4 = 69; +pub const NV_ERR_IRQ_EDGE_TRIGGERED: _bindgen_ty_4 = 70; +pub const NV_ERR_MEMORY_TRAINING_FAILED: _bindgen_ty_4 = 71; +pub const NV_ERR_MISMATCHED_SLAVE: _bindgen_ty_4 = 72; +pub const NV_ERR_MISMATCHED_TARGET: _bindgen_ty_4 = 73; +pub const NV_ERR_MISSING_TABLE_ENTRY: _bindgen_ty_4 = 74; +pub const NV_ERR_MODULE_LOAD_FAILED: _bindgen_ty_4 = 75; +pub const NV_ERR_MORE_DATA_AVAILABLE: _bindgen_ty_4 = 76; +pub const NV_ERR_MORE_PROCESSING_REQUIRED: _bindgen_ty_4 = 77; +pub const NV_ERR_MULTIPLE_MEMORY_TYPES: _bindgen_ty_4 = 78; +pub const NV_ERR_NO_FREE_FIFOS: _bindgen_ty_4 = 79; +pub const NV_ERR_NO_INTR_PENDING: _bindgen_ty_4 = 80; +pub const NV_ERR_NO_MEMORY: _bindgen_ty_4 = 81; +pub const NV_ERR_NO_SUCH_DOMAIN: _bindgen_ty_4 = 82; +pub const NV_ERR_NO_VALID_PATH: _bindgen_ty_4 = 83; +pub const NV_ERR_NOT_COMPATIBLE: _bindgen_ty_4 = 84; +pub const NV_ERR_NOT_READY: _bindgen_ty_4 = 85; +pub const NV_ERR_NOT_SUPPORTED: _bindgen_ty_4 = 86; +pub const NV_ERR_OBJECT_NOT_FOUND: _bindgen_ty_4 = 87; +pub const NV_ERR_OBJECT_TYPE_MISMATCH: _bindgen_ty_4 = 88; +pub const NV_ERR_OPERATING_SYSTEM: _bindgen_ty_4 = 89; +pub const NV_ERR_OTHER_DEVICE_FOUND: _bindgen_ty_4 = 90; +pub const NV_ERR_OUT_OF_RANGE: _bindgen_ty_4 = 91; +pub const NV_ERR_OVERLAPPING_UVM_COMMIT: _bindgen_ty_4 = 92; +pub const NV_ERR_PAGE_TABLE_NOT_AVAIL: _bindgen_ty_4 = 93; +pub const NV_ERR_PID_NOT_FOUND: _bindgen_ty_4 = 94; +pub const NV_ERR_PROTECTION_FAULT: _bindgen_ty_4 = 95; +pub const NV_ERR_RC_ERROR: _bindgen_ty_4 = 96; +pub const NV_ERR_REJECTED_VBIOS: _bindgen_ty_4 = 97; +pub const NV_ERR_RESET_REQUIRED: _bindgen_ty_4 = 98; +pub const NV_ERR_STATE_IN_USE: _bindgen_ty_4 = 99; +pub const NV_ERR_SIGNAL_PENDING: _bindgen_ty_4 = 100; +pub const NV_ERR_TIMEOUT: _bindgen_ty_4 = 101; +pub const NV_ERR_TIMEOUT_RETRY: _bindgen_ty_4 = 102; +pub const NV_ERR_TOO_MANY_PRIMARIES: _bindgen_ty_4 = 103; +pub const NV_ERR_UVM_ADDRESS_IN_USE: _bindgen_ty_4 = 104; +pub const NV_ERR_MAX_SESSION_LIMIT_REACHED: _bindgen_ty_4 = 105; +pub const NV_ERR_LIB_RM_VERSION_MISMATCH: _bindgen_ty_4 = 106; +pub const NV_ERR_PRIV_SEC_VIOLATION: _bindgen_ty_4 = 107; +pub const NV_ERR_GPU_IN_DEBUG_MODE: _bindgen_ty_4 = 108; +pub const NV_ERR_FEATURE_NOT_ENABLED: _bindgen_ty_4 = 109; +pub const NV_ERR_RESOURCE_LOST: _bindgen_ty_4 = 110; +pub const NV_ERR_PMU_NOT_READY: _bindgen_ty_4 = 111; +pub const NV_ERR_FLCN_ERROR: _bindgen_ty_4 = 112; +pub const NV_ERR_FATAL_ERROR: _bindgen_ty_4 = 113; +pub const NV_ERR_MEMORY_ERROR: _bindgen_ty_4 = 114; +pub const NV_ERR_INVALID_LICENSE: _bindgen_ty_4 = 115; +pub const NV_ERR_NVLINK_INIT_ERROR: _bindgen_ty_4 = 116; +pub const NV_ERR_NVLINK_MINION_ERROR: _bindgen_ty_4 = 117; +pub const NV_ERR_NVLINK_CLOCK_ERROR: _bindgen_ty_4 = 118; +pub const NV_ERR_NVLINK_TRAINING_ERROR: _bindgen_ty_4 = 119; +pub const NV_ERR_NVLINK_CONFIGURATION_ERROR: _bindgen_ty_4 = 120; +pub const NV_ERR_RISCV_ERROR: _bindgen_ty_4 = 121; +pub const NV_ERR_FABRIC_MANAGER_NOT_PRESENT: _bindgen_ty_4 = 122; +pub const NV_ERR_ALREADY_SIGNALLED: _bindgen_ty_4 = 123; +pub const NV_ERR_QUEUE_TASK_SLOT_NOT_AVAILABLE: _bindgen_ty_4 = 124; +pub const NV_ERR_KEY_ROTATION_IN_PROGRESS: _bindgen_ty_4 = 125; +pub const NV_ERR_TEST_ONLY_CODE_NOT_ENABLED: _bindgen_ty_4 = 126; +pub const NV_ERR_SECURE_BOOT_FAILED: _bindgen_ty_4 = 127; +pub const NV_ERR_INSUFFICIENT_ZBC_ENTRY: _bindgen_ty_4 = 128; +pub const NV_ERR_NVLINK_FABRIC_NOT_READY: _bindgen_ty_4 = 129; +pub const NV_ERR_NVLINK_FABRIC_FAILURE: _bindgen_ty_4 = 130; +pub const NV_ERR_GPU_MEMORY_ONLINING_FAILURE: _bindgen_ty_4 = 131; +pub const NV_ERR_REDUCTION_MANAGER_NOT_AVAILABLE: _bindgen_ty_4 = 132; +pub const NV_ERR_RESOURCE_RETIREMENT_ERROR: _bindgen_ty_4 = 134; +pub const NV_WARN_HOT_SWITCH: _bindgen_ty_4 = 65537; +pub const NV_WARN_INCORRECT_PERFMON_DATA: _bindgen_ty_4 = 65538; +pub const NV_WARN_MISMATCHED_SLAVE: _bindgen_ty_4 = 65539; +pub const NV_WARN_MISMATCHED_TARGET: _bindgen_ty_4 = 65540; +pub const NV_WARN_MORE_PROCESSING_REQUIRED: _bindgen_ty_4 = 65541; +pub const NV_WARN_NOTHING_TO_DO: _bindgen_ty_4 = 65542; +pub const NV_WARN_NULL_OBJECT: _bindgen_ty_4 = 65543; +pub const NV_WARN_OUT_OF_RANGE: _bindgen_ty_4 = 65544; +pub type _bindgen_ty_4 = ffi::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone, MaybeZeroable)] pub struct NV2080_CTRL_GPU_GET_GID_INFO_PARAMS { -- 2.53.0
