Versions in this module Expand all Collapse all v0 v0.15.0 Sep 11, 2019 Changes in this version + const DFL_FPGA_CHECK_EXTENSION + const DFL_FPGA_FME_PORT_ASSIGN + const DFL_FPGA_FME_PORT_PR + const DFL_FPGA_FME_PORT_RELEASE + const DFL_FPGA_GET_API_VERSION + const DFL_FPGA_PORT_DMA_MAP + const DFL_FPGA_PORT_DMA_UNMAP + const DFL_FPGA_PORT_GET_INFO + const DFL_FPGA_PORT_GET_REGION_INFO + const DFL_FPGA_PORT_RESET + const DFL_PORT_REGION_INDEX_AFU + const DFL_PORT_REGION_INDEX_STP + const DFL_PORT_REGION_MMAP + const DFL_PORT_REGION_READ + const DFL_PORT_REGION_WRITE + const FPGA_CHECK_EXTENSION + const FPGA_DMA_FROM_DEV + const FPGA_DMA_TO_DEV + const FPGA_FME_CAP_ERR_IRQ + const FPGA_FME_ERR_SET_IRQ + const FPGA_FME_GET_INFO + const FPGA_FME_PORT_ASSIGN + const FPGA_FME_PORT_PR + const FPGA_FME_PORT_RELEASE + const FPGA_GET_API_VERSION + const FPGA_PORT_CAP_ERR_IRQ + const FPGA_PORT_CAP_UAFU_IRQ + const FPGA_PORT_DMA_MAP + const FPGA_PORT_DMA_UNMAP + const FPGA_PORT_ERR_SET_IRQ + const FPGA_PORT_GET_INFO + const FPGA_PORT_GET_REGION_INFO + const FPGA_PORT_INDEX_STP + const FPGA_PORT_INDEX_UAFU + const FPGA_PORT_RESET + const FPGA_PORT_UAFU_SET_IRQ + const FPGA_PORT_UMSG_DISABLE + const FPGA_PORT_UMSG_ENABLE + const FPGA_PORT_UMSG_SET_BASE_ADDR + const FPGA_PORT_UMSG_SET_MODE + const FPGA_REGION_MMAP + const FPGA_REGION_READ + const FPGA_REGION_WRITE + func CanonizeID(ID string) string — linux/amd64 + func FindSysFsDevice(dev string) (string, error) — linux/amd64 + func IsFpgaFME(name string) bool — linux/amd64 + func IsFpgaPort(name string) bool — linux/amd64 + func ListFpgaDevices() (FMEs, Ports []string) — linux/amd64 + type DflFME struct — linux/amd64 + BitstreamID string + BitstreamMetadata string + CompatID string + Dev string + DevPath string + Name string + PCIDevice *PCIDevice + PortsNum string + SocketID string + SysFsPath string + func (f *DflFME) CheckExtension() (int, error) + func (f *DflFME) Close() error + func (f *DflFME) GetAPIVersion() (int, error) + func (f *DflFME) GetBitstreamID() string + func (f *DflFME) GetBitstreamMetadata() string + func (f *DflFME) GetDevPath() string + func (f *DflFME) GetInterfaceUUID() (id string) + func (f *DflFME) GetName() string + func (f *DflFME) GetPCIDevice() (*PCIDevice, error) + func (f *DflFME) GetPortsNum() int + func (f *DflFME) GetSocketID() (uint32, error) + func (f *DflFME) GetSysFsPath() string + func (f *DflFME) PortPR(port uint32, bitstream []byte) error + type DflFpgaFmePortPR struct + Argsz uint32 + Buffer_address uint64 + Buffer_size uint32 + Flags uint32 + Port_id uint32 + type DflFpgaPortDMAMap struct + Addr uint64 + Argsz uint32 + Flags uint32 + Iova uint64 + Length uint64 + type DflFpgaPortDMAUnmap struct + Argsz uint32 + Flags uint32 + Iova uint64 + type DflFpgaPortInfo struct + Argsz uint32 + Flags uint32 + Regions uint32 + Umsgs uint32 + type DflFpgaPortRegionInfo struct + Argsz uint32 + Flags uint32 + Index uint32 + Offset uint64 + Padding uint32 + Size uint64 + type DflPort struct — linux/amd64 + AFUID string + Dev string + DevPath string + FME FpgaFME + ID string + Name string + PCIDevice *PCIDevice + SysFsPath string + func (f *DflPort) CheckExtension() (int, error) + func (f *DflPort) Close() error + func (f *DflPort) GetAPIVersion() (int, error) + func (f *DflPort) GetAcceleratorTypeUUID() (afuID string) + func (f *DflPort) GetDevPath() string + func (f *DflPort) GetFME() (fme FpgaFME, err error) + func (f *DflPort) GetInterfaceUUID() (id string) + func (f *DflPort) GetName() string + func (f *DflPort) GetPCIDevice() (*PCIDevice, error) + func (f *DflPort) GetPortID() (uint32, error) + func (f *DflPort) GetSysFsPath() string + func (f *DflPort) PR(bs bitstream.File, dryRun bool) error + func (f *DflPort) PortGetInfo() (ret FpgaPortInfo, err error) + func (f *DflPort) PortGetRegionInfo(index uint32) (ret FpgaPortRegionInfo, err error) + func (f *DflPort) PortReset() error + type FpgaFME interface — linux/amd64 + GetBitstreamID func() string + GetBitstreamMetadata func() string + GetInterfaceUUID func() string + GetPortsNum func() int + GetSocketID func() (uint32, error) + PortPR func(uint32, []byte) error + func NewDflFME(dev string) (FpgaFME, error) + func NewFpgaFME(fname string) (FpgaFME, error) + func NewIntelFpgaFME(dev string) (FpgaFME, error) + type FpgaPort interface — linux/amd64 + GetAcceleratorTypeUUID func() string + GetFME func() (FpgaFME, error) + GetInterfaceUUID func() string + GetPortID func() (uint32, error) + PR func(bitstream.File, bool) error + PortGetInfo func() (FpgaPortInfo, error) + PortGetRegionInfo func(index uint32) (FpgaPortRegionInfo, error) + PortReset func() error + func NewDflPort(dev string) (FpgaPort, error) + func NewFpgaPort(fname string) (FpgaPort, error) + func NewIntelFpgaPort(dev string) (FpgaPort, error) + type FpgaPortInfo struct — linux/amd64 + Flags uint32 + Regions uint32 + Umsgs uint32 + type FpgaPortRegionInfo struct — linux/amd64 + Flags uint32 + Index uint32 + Offset uint64 + Size uint64 + type IntelFpgaFME struct — linux/amd64 + BitstreamID string + BitstreamMetadata string + CompatID string + Dev string + DevPath string + Name string + PCIDevice *PCIDevice + PortsNum string + SocketID string + SysFsPath string + func (f *IntelFpgaFME) CheckExtension() (int, error) + func (f *IntelFpgaFME) Close() error + func (f *IntelFpgaFME) GetAPIVersion() (int, error) + func (f *IntelFpgaFME) GetBitstreamID() string + func (f *IntelFpgaFME) GetBitstreamMetadata() string + func (f *IntelFpgaFME) GetDevPath() string + func (f *IntelFpgaFME) GetInterfaceUUID() (id string) + func (f *IntelFpgaFME) GetName() string + func (f *IntelFpgaFME) GetPCIDevice() (*PCIDevice, error) + func (f *IntelFpgaFME) GetPortsNum() int + func (f *IntelFpgaFME) GetSocketID() (uint32, error) + func (f *IntelFpgaFME) GetSysFsPath() string + func (f *IntelFpgaFME) PortPR(port uint32, bitstream []byte) error + type IntelFpgaFmeErrIrqSet struct + Argsz uint32 + Evtfd int32 + Flags uint32 + type IntelFpgaFmeInfo struct + Argsz uint32 + Capability uint32 + Flags uint32 + type IntelFpgaFmePortAssign struct + Argsz uint32 + Flags uint32 + Id uint32 + type IntelFpgaFmePortPR struct + Argsz uint32 + Buffer_address uint64 + Buffer_size uint32 + Flags uint32 + Port_id uint32 + Status uint64 + type IntelFpgaFmePortRelease struct + Argsz uint32 + Flags uint32 + Id uint32 + type IntelFpgaPort struct — linux/amd64 + AFUID string + Dev string + DevPath string + FME FpgaFME + ID string + Name string + PCIDevice *PCIDevice + SysFsPath string + func (f *IntelFpgaPort) CheckExtension() (int, error) + func (f *IntelFpgaPort) Close() error + func (f *IntelFpgaPort) GetAPIVersion() (int, error) + func (f *IntelFpgaPort) GetAcceleratorTypeUUID() string + func (f *IntelFpgaPort) GetDevPath() string + func (f *IntelFpgaPort) GetFME() (fme FpgaFME, err error) + func (f *IntelFpgaPort) GetInterfaceUUID() (id string) + func (f *IntelFpgaPort) GetName() string + func (f *IntelFpgaPort) GetPCIDevice() (*PCIDevice, error) + func (f *IntelFpgaPort) GetPortID() (uint32, error) + func (f *IntelFpgaPort) GetSysFsPath() string + func (f *IntelFpgaPort) PR(bs bitstream.File, dryRun bool) error + func (f *IntelFpgaPort) PortGetInfo() (ret FpgaPortInfo, err error) + func (f *IntelFpgaPort) PortGetRegionInfo(index uint32) (ret FpgaPortRegionInfo, err error) + func (f *IntelFpgaPort) PortReset() error + type IntelFpgaPortDmaMap struct + Addr uint64 + Argsz uint32 + Flags uint32 + Iova uint64 + Length uint64 + type IntelFpgaPortDmaUnmap struct + Argsz uint32 + Flags uint32 + Iova uint64 + type IntelFpgaPortErrIrqSet struct + Argsz uint32 + Evtfd int32 + Flags uint32 + type IntelFpgaPortInfo struct + Argsz uint32 + Capability uint32 + Flags uint32 + Regions uint32 + Uafu_irqs uint32 + Umsgs uint32 + type IntelFpgaPortRegionInfo struct + Argsz uint32 + Flags uint32 + Index uint32 + Offset uint64 + Padding uint32 + Size uint64 + type IntelFpgaPortUafuIrqSet struct + Argsz uint32 + Count uint32 + Flags uint32 + Start uint32 + type IntelFpgaPortUmsgBaseAddr struct + Argsz uint32 + Flags uint32 + Iova uint64 + type IntelFpgaPortUmsgCfg struct + Argsz uint32 + Bitmap uint32 + Flags uint32 + type PCIDevice struct — linux/amd64 + BDF string + CPUs string + Class string + Device string + NUMA string + PhysFn *PCIDevice + SysFsPath string + TotalVFs string + VFs string + Vendor string + func NewPCIDevice(devPath string) (*PCIDevice, error) + func (pci *PCIDevice) GetVFs() (ret []*PCIDevice, err error) + func (pci *PCIDevice) NumVFs() int64