| DuneNvme 1.0.2 This is a simple NVMe test environment that allows experimentation with the low level PCIe NVMe interfaces as available on a Xilinx FPGA environment. |
NvmeAccess.h
152 int nvmeRequest(Bool wait, int queue, int opcode, BUInt nameSpace, BUInt32 address, BUInt32 arg10, BUInt32 arg11 = 0, BUInt32 arg12 = 0);
BUInt32 address
The lower 12 bits of the address.
Definition: NvmeAccess.h:112
BSemaphore opacketReplySem
Semaphore when a reply packet has been received.
Definition: NvmeAccess.h:195
BUInt32 numWords
The number of 32bit words in this reply.
Definition: NvmeAccess.h:116
BUInt32 data[MaxPayloadSize]
The data words (Max of 1024 bytes but can be increased)
Definition: NvmeAccess.h:124
BUInt32 numBytes
The total number of bytes to be transfered.
Definition: NvmeAccess.h:114
int ohostRecvFd
Device driver fd for DMA receive channel.
Definition: NvmeAccess.h:186
virtual void nvmeDataPacket(NvmeRequestPacket &packet)
Called when read data packet received.
Definition: NvmeAccess.cpp:492
BUInt32 data[MaxPayloadSize]
The data words (Max of 1024 bytes but can be increased)
Definition: NvmeAccess.h:103
Definition: bfpga.h:49
BUInt32 requesterId
The requestors ID used as the stream ID.
Definition: NvmeAccess.h:98
int nvmeProcess()
This function runs as a separate thread in order to receive both replies and requests from the Nvme.
Definition: NvmeAccess.cpp:322
BSemaphore oqueueReplySem
Semaphore when a queue reply packet has been received.
Definition: NvmeAccess.h:197
volatile BUInt32 * odmaRegs
FPGA's PCIe XDMA modules DMA control registers memory mapped.
Definition: NvmeAccess.h:189
Definition: NvmeAccess.h:106
BUInt32 reply
This bit indicates a reply (we have used an unused bit for this)
Definition: NvmeAccess.h:123
Definition: NvmeAccess.h:129
BUInt32 request
The request (0 - read, 1 - write etc.)
Definition: NvmeAccess.h:96
BUInt32 tag
A tag for this request, returned in the reply.
Definition: NvmeAccess.h:99
int ohostSendFd
Device driver fd for DMA send channel.
Definition: NvmeAccess.h:185
volatile BUInt32 * oregs
FPGA design's registers memory mapped.
Definition: NvmeAccess.h:188
BUInt32 numWords
The number of 32bit data words to transfer.
Definition: NvmeAccess.h:95
BUInt32 onvmeNum
The nvme to communicate with, 0 is both.
Definition: NvmeAccess.h:200
int readAvailable()
The number of bytes available on the receive stream.
Definition: NvmeAccess.cpp:644
Definition: NvmeAccess.h:88
BUInt32 requesterIdEnable
Enable the manual use of the requestorId field.
Definition: NvmeAccess.h:101
Generated by
1.8.15 
