All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bytedeco.cuda.nvml.nvmlPciInfoExt_v1_t Maven / Gradle / Ivy

// Targeted by JavaCPP version 1.5.11: DO NOT EDIT THIS FILE

package org.bytedeco.cuda.nvml;

import java.nio.*;
import org.bytedeco.javacpp.*;
import org.bytedeco.javacpp.annotation.*;

import static org.bytedeco.javacpp.presets.javacpp.*;
import org.bytedeco.cuda.cudart.*;
import static org.bytedeco.cuda.global.cudart.*;

import static org.bytedeco.cuda.global.nvml.*;


/**
 * PCI information about a GPU device.
 */
@Properties(inherit = org.bytedeco.cuda.presets.nvml.class)
public class nvmlPciInfoExt_v1_t extends Pointer {
    static { Loader.load(); }
    /** Default native constructor. */
    public nvmlPciInfoExt_v1_t() { super((Pointer)null); allocate(); }
    /** Native array allocator. Access with {@link Pointer#position(long)}. */
    public nvmlPciInfoExt_v1_t(long size) { super((Pointer)null); allocateArray(size); }
    /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
    public nvmlPciInfoExt_v1_t(Pointer p) { super(p); }
    private native void allocate();
    private native void allocateArray(long size);
    @Override public nvmlPciInfoExt_v1_t position(long position) {
        return (nvmlPciInfoExt_v1_t)super.position(position);
    }
    @Override public nvmlPciInfoExt_v1_t getPointer(long i) {
        return new nvmlPciInfoExt_v1_t((Pointer)this).offsetAddress(i);
    }

    /** The version number of this struct */
    public native @Cast("unsigned int") int version(); public native nvmlPciInfoExt_v1_t version(int setter);
    /** The PCI domain on which the device's bus resides, 0 to 0xffffffff */
    public native @Cast("unsigned int") int domain(); public native nvmlPciInfoExt_v1_t domain(int setter);
    /** The bus on which the device resides, 0 to 0xff */
    public native @Cast("unsigned int") int bus(); public native nvmlPciInfoExt_v1_t bus(int setter);
    /** The device's id on the bus, 0 to 31 */
    public native @Cast("unsigned int") int device(); public native nvmlPciInfoExt_v1_t device(int setter);

    /** The combined 16-bit device id and 16-bit vendor id */
    public native @Cast("unsigned int") int pciDeviceId(); public native nvmlPciInfoExt_v1_t pciDeviceId(int setter);
    /** The 32-bit Sub System Device ID */
    public native @Cast("unsigned int") int pciSubSystemId(); public native nvmlPciInfoExt_v1_t pciSubSystemId(int setter);

    /** The 8-bit PCI base class code */
    public native @Cast("unsigned int") int baseClass(); public native nvmlPciInfoExt_v1_t baseClass(int setter);
    /** The 8-bit PCI sub class code */
    public native @Cast("unsigned int") int subClass(); public native nvmlPciInfoExt_v1_t subClass(int setter);

    /** The tuple domain:bus:device.function PCI identifier (& NULL terminator) */
    public native @Cast("char") byte busId(int i); public native nvmlPciInfoExt_v1_t busId(int i, byte setter);
    @MemberGetter public native @Cast("char*") BytePointer busId();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy