@@ -320,6 +320,77 @@ pub const NV_VGPU_MSG_EVENT_RECOVERY_ACTION: _bindgen_ty_3 = 4130;
320320pub const NV_VGPU_MSG_EVENT_NUM_EVENTS : _bindgen_ty_3 = 4131 ;
321321pub type _bindgen_ty_3 = ffi:: c_uint ;
322322#[ repr( C ) ]
323+ #[ derive( Debug , Default , Copy , Clone ) ]
324+ pub struct NV0080_CTRL_GPU_GET_SRIOV_CAPS_PARAMS {
325+ pub totalVFs : u32_ ,
326+ pub firstVfOffset : u32_ ,
327+ pub vfFeatureMask : u32_ ,
328+ pub FirstVFBar0Address : u64_ ,
329+ pub FirstVFBar1Address : u64_ ,
330+ pub FirstVFBar2Address : u64_ ,
331+ pub bar0Size : u64_ ,
332+ pub bar1Size : u64_ ,
333+ pub bar2Size : u64_ ,
334+ pub b64bitBar0 : u8_ ,
335+ pub b64bitBar1 : u8_ ,
336+ pub b64bitBar2 : u8_ ,
337+ pub bSriovEnabled : u8_ ,
338+ pub bSriovHeavyEnabled : u8_ ,
339+ pub bEmulateVFBar0TlbInvalidationRegister : u8_ ,
340+ pub bClientRmAllocatedCtxBuffer : u8_ ,
341+ pub bNonPowerOf2ChannelCountSupported : u8_ ,
342+ pub bVfResizableBAR1Supported : u8_ ,
343+ }
344+ #[ repr( C ) ]
345+ #[ derive( Debug , Default , Copy , Clone ) ]
346+ pub struct NV2080_CTRL_BIOS_GET_SKU_INFO_PARAMS {
347+ pub BoardID : u32_ ,
348+ pub chipSKU : [ ffi:: c_char ; 9usize ] ,
349+ pub chipSKUMod : [ ffi:: c_char ; 5usize ] ,
350+ pub skuConfigVersion : u32_ ,
351+ pub project : [ ffi:: c_char ; 5usize ] ,
352+ pub projectSKU : [ ffi:: c_char ; 5usize ] ,
353+ pub CDP : [ ffi:: c_char ; 6usize ] ,
354+ pub projectSKUMod : [ ffi:: c_char ; 2usize ] ,
355+ pub businessCycle : u32_ ,
356+ }
357+ pub type NV2080_CTRL_CMD_FB_GET_FB_REGION_SURFACE_MEM_TYPE_FLAG = [ u8_ ; 17usize ] ;
358+ #[ repr( C ) ]
359+ #[ derive( Debug , Default , Copy , Clone ) ]
360+ pub struct NV2080_CTRL_CMD_FB_GET_FB_REGION_FB_REGION_INFO {
361+ pub base : u64_ ,
362+ pub limit : u64_ ,
363+ pub reserved : u64_ ,
364+ pub performance : u32_ ,
365+ pub supportCompressed : u8_ ,
366+ pub supportISO : u8_ ,
367+ pub bProtected : u8_ ,
368+ pub blackList : NV2080_CTRL_CMD_FB_GET_FB_REGION_SURFACE_MEM_TYPE_FLAG ,
369+ }
370+ #[ repr( C ) ]
371+ #[ derive( Debug , Default , Copy , Clone ) ]
372+ pub struct NV2080_CTRL_CMD_FB_GET_FB_REGION_INFO_PARAMS {
373+ pub numFBRegions : u32_ ,
374+ pub fbRegion : [ NV2080_CTRL_CMD_FB_GET_FB_REGION_FB_REGION_INFO ; 16usize ] ,
375+ }
376+ #[ repr( C ) ]
377+ #[ derive( Debug , Copy , Clone ) ]
378+ pub struct NV2080_CTRL_GPU_GET_GID_INFO_PARAMS {
379+ pub index : u32_ ,
380+ pub flags : u32_ ,
381+ pub length : u32_ ,
382+ pub data : [ u8_ ; 256usize ] ,
383+ }
384+ impl Default for NV2080_CTRL_GPU_GET_GID_INFO_PARAMS {
385+ fn default ( ) -> Self {
386+ let mut s = :: core:: mem:: MaybeUninit :: < Self > :: uninit ( ) ;
387+ unsafe {
388+ :: core:: ptr:: write_bytes ( s. as_mut_ptr ( ) , 0 , 1 ) ;
389+ s. assume_init ( )
390+ }
391+ }
392+ }
393+ #[ repr( C ) ]
323394#[ derive( Debug , Default , Copy , Clone , Zeroable ) ]
324395pub struct DOD_METHOD_DATA {
325396 pub status : u32_ ,
@@ -367,6 +438,19 @@ pub struct ACPI_METHOD_DATA {
367438 pub capsMethodData : CAPS_METHOD_DATA ,
368439}
369440#[ repr( C ) ]
441+ #[ derive( Debug , Default , Copy , Clone ) ]
442+ pub struct VIRTUAL_DISPLAY_GET_MAX_RESOLUTION_PARAMS {
443+ pub headIndex : u32_ ,
444+ pub maxHResolution : u32_ ,
445+ pub maxVResolution : u32_ ,
446+ }
447+ #[ repr( C ) ]
448+ #[ derive( Debug , Default , Copy , Clone ) ]
449+ pub struct VIRTUAL_DISPLAY_GET_NUM_HEADS_PARAMS {
450+ pub numHeads : u32_ ,
451+ pub maxNumHeads : u32_ ,
452+ }
453+ #[ repr( C ) ]
370454#[ derive( Debug , Default , Copy , Clone , Zeroable ) ]
371455pub struct BUSINFO {
372456 pub deviceID : u16_ ,
@@ -395,6 +479,85 @@ pub struct GSP_PCIE_CONFIG_REG {
395479 pub linkCap : u32_ ,
396480}
397481#[ repr( C ) ]
482+ #[ derive( Debug , Default , Copy , Clone ) ]
483+ pub struct EcidManufacturingInfo {
484+ pub ecidLow : u32_ ,
485+ pub ecidHigh : u32_ ,
486+ pub ecidExtended : u32_ ,
487+ }
488+ #[ repr( C ) ]
489+ #[ derive( Debug , Default , Copy , Clone ) ]
490+ pub struct FW_WPR_LAYOUT_OFFSET {
491+ pub nonWprHeapOffset : u64_ ,
492+ pub frtsOffset : u64_ ,
493+ }
494+ #[ repr( C ) ]
495+ #[ derive( Debug , Copy , Clone ) ]
496+ pub struct GspStaticConfigInfo_t {
497+ pub grCapsBits : [ u8_ ; 23usize ] ,
498+ pub gidInfo : NV2080_CTRL_GPU_GET_GID_INFO_PARAMS ,
499+ pub SKUInfo : NV2080_CTRL_BIOS_GET_SKU_INFO_PARAMS ,
500+ pub fbRegionInfoParams : NV2080_CTRL_CMD_FB_GET_FB_REGION_INFO_PARAMS ,
501+ pub sriovCaps : NV0080_CTRL_GPU_GET_SRIOV_CAPS_PARAMS ,
502+ pub sriovMaxGfid : u32_ ,
503+ pub engineCaps : [ u32_ ; 3usize ] ,
504+ pub poisonFuseEnabled : u8_ ,
505+ pub fb_length : u64_ ,
506+ pub fbio_mask : u64_ ,
507+ pub fb_bus_width : u32_ ,
508+ pub fb_ram_type : u32_ ,
509+ pub fbp_mask : u64_ ,
510+ pub l2_cache_size : u32_ ,
511+ pub gpuNameString : [ u8_ ; 64usize ] ,
512+ pub gpuShortNameString : [ u8_ ; 64usize ] ,
513+ pub gpuNameString_Unicode : [ u16_ ; 64usize ] ,
514+ pub bGpuInternalSku : u8_ ,
515+ pub bIsQuadroGeneric : u8_ ,
516+ pub bIsQuadroAd : u8_ ,
517+ pub bIsNvidiaNvs : u8_ ,
518+ pub bIsVgx : u8_ ,
519+ pub bGeforceSmb : u8_ ,
520+ pub bIsTitan : u8_ ,
521+ pub bIsTesla : u8_ ,
522+ pub bIsMobile : u8_ ,
523+ pub bIsGc6Rtd3Allowed : u8_ ,
524+ pub bIsGc8Rtd3Allowed : u8_ ,
525+ pub bIsGcOffRtd3Allowed : u8_ ,
526+ pub bIsGcoffLegacyAllowed : u8_ ,
527+ pub bIsMigSupported : u8_ ,
528+ pub RTD3GC6TotalBoardPower : u16_ ,
529+ pub RTD3GC6PerstDelay : u16_ ,
530+ pub bar1PdeBase : u64_ ,
531+ pub bar2PdeBase : u64_ ,
532+ pub bVbiosValid : u8_ ,
533+ pub vbiosSubVendor : u32_ ,
534+ pub vbiosSubDevice : u32_ ,
535+ pub bPageRetirementSupported : u8_ ,
536+ pub bSplitVasBetweenServerClientRm : u8_ ,
537+ pub bClRootportNeedsNosnoopWAR : u8_ ,
538+ pub displaylessMaxHeads : VIRTUAL_DISPLAY_GET_NUM_HEADS_PARAMS ,
539+ pub displaylessMaxResolution : VIRTUAL_DISPLAY_GET_MAX_RESOLUTION_PARAMS ,
540+ pub displaylessMaxPixels : u64_ ,
541+ pub hInternalClient : u32_ ,
542+ pub hInternalDevice : u32_ ,
543+ pub hInternalSubdevice : u32_ ,
544+ pub bSelfHostedMode : u8_ ,
545+ pub bAtsSupported : u8_ ,
546+ pub bIsGpuUefi : u8_ ,
547+ pub bIsEfiInit : u8_ ,
548+ pub ecidInfo : [ EcidManufacturingInfo ; 2usize ] ,
549+ pub fwWprLayoutOffset : FW_WPR_LAYOUT_OFFSET ,
550+ }
551+ impl Default for GspStaticConfigInfo_t {
552+ fn default ( ) -> Self {
553+ let mut s = :: core:: mem:: MaybeUninit :: < Self > :: uninit ( ) ;
554+ unsafe {
555+ :: core:: ptr:: write_bytes ( s. as_mut_ptr ( ) , 0 , 1 ) ;
556+ s. assume_init ( )
557+ }
558+ }
559+ }
560+ #[ repr( C ) ]
398561#[ derive( Debug , Default , Copy , Clone , Zeroable ) ]
399562pub struct GspSystemInfo {
400563 pub gpuPhysAddr : u64_ ,
0 commit comments