Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations | Functions
trio.h File Reference
#include <linux/types.h>
#include <gxio/common.h>
#include <gxio/dma_queue.h>
#include <arch/trio_constants.h>
#include <arch/trio.h>
#include <arch/trio_pcie_intfc.h>
#include <arch/trio_pcie_rc.h>
#include <arch/trio_shm.h>
#include <hv/drv_trio_intf.h>
#include <hv/iorpc.h>

Go to the source code of this file.

Data Structures

struct  gxio_trio_context_t
 
struct  gxio_trio_dma_queue_t
 

Macros

#define GXIO_ASID_NULL   -1
 
#define GXIO_TRIO_FLAG_TRAFFIC_CLASS(N)   HV_TRIO_FLAG_TC(N)
 
#define GXIO_TRIO_FLAG_VFUNC(N)   HV_TRIO_FLAG_VFUNC(N)
 

Typedefs

typedef TRIO_DMA_DESC_t gxio_trio_dma_desc_t
 
typedef enum gxio_trio_order_mode_e gxio_trio_order_mode_t
 

Enumerations

enum  gxio_trio_order_mode_e { GXIO_TRIO_ORDER_MODE_UNORDERED, GXIO_TRIO_ORDER_MODE_STRICT, GXIO_TRIO_ORDER_MODE_OBEY_PACKET }
 
enum  gxio_trio_alloc_flags_e { GXIO_TRIO_ALLOC_FIXED = HV_TRIO_ALLOC_FIXED }
 
enum  gxio_trio_mem_flags_e { GXIO_TRIO_MEM_FLAG_NT_HINT = IORPC_MEM_BUFFER_FLAG_NT_HINT, GXIO_TRIO_MEM_FLAG_IO_PIN = IORPC_MEM_BUFFER_FLAG_IO_PIN }
 

Functions

int gxio_trio_init (gxio_trio_context_t *context, unsigned int trio_index)
 
int gxio_trio_init_memory_map (gxio_trio_context_t *context, unsigned int map, void *target_mem, size_t target_size, unsigned int asid, unsigned int mac, uint64_t bus_address, gxio_trio_order_mode_t order_mode)
 
int gxio_trio_alloc_asids (gxio_trio_context_t *context, unsigned int count, unsigned int first, unsigned int flags)
 

Macro Definition Documentation

#define GXIO_ASID_NULL   -1

Definition at line 218 of file trio.h.

#define GXIO_TRIO_FLAG_TRAFFIC_CLASS (   N)    HV_TRIO_FLAG_TC(N)

Definition at line 271 of file trio.h.

#define GXIO_TRIO_FLAG_VFUNC (   N)    HV_TRIO_FLAG_VFUNC(N)

Definition at line 275 of file trio.h.

Typedef Documentation

Definition at line 187 of file trio.h.

Enumeration Type Documentation

Enumerator:
GXIO_TRIO_ALLOC_FIXED 

Definition at line 256 of file trio.h.

Enumerator:
GXIO_TRIO_MEM_FLAG_NT_HINT 
GXIO_TRIO_MEM_FLAG_IO_PIN 

Definition at line 261 of file trio.h.

Enumerator:
GXIO_TRIO_ORDER_MODE_UNORDERED 
GXIO_TRIO_ORDER_MODE_STRICT 
GXIO_TRIO_ORDER_MODE_OBEY_PACKET 

Definition at line 221 of file trio.h.

Function Documentation

int gxio_trio_alloc_asids ( gxio_trio_context_t context,
unsigned int  count,
unsigned int  first,
unsigned int  flags 
)

Definition at line 24 of file iorpc_trio.c.

int gxio_trio_init ( gxio_trio_context_t context,
unsigned int  trio_index 
)

Definition at line 28 of file trio.c.

int gxio_trio_init_memory_map ( gxio_trio_context_t context,
unsigned int  map,
void target_mem,
size_t  target_size,
unsigned int  asid,
unsigned int  mac,
uint64_t  bus_address,
gxio_trio_order_mode_t  order_mode 
)