URL
https://opencores.org/ocsvn/pcie_ds_dma/pcie_ds_dma/trunk
Show entire file |
Details |
Blame |
View Log
Rev 6 |
Rev 54 |
Line 152... |
Line 152... |
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
// returns the number of pages spanned by the size.
|
// returns the number of pages spanned by the size.
|
#define PAGES_SPANNED(Size) (((Size) + (PAGE_SIZE - 1)) >> PAGE_SHIFT)
|
#define PAGES_SPANNED(Size) (((Size) + (PAGE_SIZE - 1)) >> PAGE_SHIFT)
|
|
|
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
// Shared Memory between kernel and user mode description
|
|
typedef struct _SHARED_MEMORY_DESCRIPTION {
|
|
void* SystemAddress; // INOUT - system memory address
|
|
size_t LogicalAddress; // OUT - logical memory address
|
|
size_t dummy; // OUT - logical memory address
|
|
} SHARED_MEMORY_DESCRIPTION, *PSHARED_MEMORY_DESCRIPTION;
|
|
|
|
//-----------------------------------------------------------------------------
|
|
// Stub Structure
|
// Stub Structure
|
typedef struct _AMB_STUB {
|
typedef struct _AMB_STUB {
|
u32 lastBlock; // Number of Block which was filled last Time
|
u32 lastBlock; // Number of Block which was filled last Time
|
u32 totalCounter; // Total Counter of all filled Block
|
u32 totalCounter; // Total Counter of all filled Block
|
u32 offset; // First Unfilled Byte
|
u32 offset; // First Unfilled Byte
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.