Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
ldc.h File Reference
#include <asm/hypervisor.h>

Go to the source code of this file.

Data Structures

struct  ldc_channel_config
 
struct  ldc_trans_cookie
 

Macros

#define LDC_MODE_RAW   0x00
 
#define LDC_MODE_UNRELIABLE   0x01
 
#define LDC_MODE_RESERVED   0x02
 
#define LDC_MODE_STREAM   0x03
 
#define LDC_DEBUG_HS   0x01
 
#define LDC_DEBUG_STATE   0x02
 
#define LDC_DEBUG_RX   0x04
 
#define LDC_DEBUG_TX   0x08
 
#define LDC_DEBUG_DATA   0x10
 
#define LDC_EVENT_RESET   0x01
 
#define LDC_EVENT_UP   0x02
 
#define LDC_EVENT_DATA_READY   0x04
 
#define LDC_STATE_INVALID   0x00
 
#define LDC_STATE_INIT   0x01
 
#define LDC_STATE_BOUND   0x02
 
#define LDC_STATE_READY   0x03
 
#define LDC_STATE_CONNECTED   0x04
 
#define LDC_MAP_SHADOW   0x01
 
#define LDC_MAP_DIRECT   0x02
 
#define LDC_MAP_IO   0x04
 
#define LDC_MAP_R   0x08
 
#define LDC_MAP_W   0x10
 
#define LDC_MAP_X   0x20
 
#define LDC_MAP_RW   (LDC_MAP_R | LDC_MAP_W)
 
#define LDC_MAP_RWX   (LDC_MAP_R | LDC_MAP_W | LDC_MAP_X)
 
#define LDC_MAP_ALL   0x03f
 

Functions

void ldom_set_var (const char *var, const char *value)
 
void ldom_reboot (const char *boot_command)
 
void ldom_power_off (void)
 
struct ldc_channelldc_alloc (unsigned long id, const struct ldc_channel_config *cfgp, void *event_arg)
 
void ldc_free (struct ldc_channel *lp)
 
int ldc_bind (struct ldc_channel *lp, const char *name)
 
int ldc_connect (struct ldc_channel *lp)
 
int ldc_disconnect (struct ldc_channel *lp)
 
int ldc_state (struct ldc_channel *lp)
 
int ldc_write (struct ldc_channel *lp, const void *buf, unsigned int size)
 
int ldc_read (struct ldc_channel *lp, void *buf, unsigned int size)
 
int ldc_map_sg (struct ldc_channel *lp, struct scatterlist *sg, int num_sg, struct ldc_trans_cookie *cookies, int ncookies, unsigned int map_perm)
 
int ldc_map_single (struct ldc_channel *lp, void *buf, unsigned int len, struct ldc_trans_cookie *cookies, int ncookies, unsigned int map_perm)
 
void ldc_unmap (struct ldc_channel *lp, struct ldc_trans_cookie *cookies, int ncookies)
 
int ldc_copy (struct ldc_channel *lp, int copy_dir, void *buf, unsigned int len, unsigned long offset, struct ldc_trans_cookie *cookies, int ncookies)
 
voidldc_alloc_exp_dring (struct ldc_channel *lp, unsigned int len, struct ldc_trans_cookie *cookies, int *ncookies, unsigned int map_perm)
 
void ldc_free_exp_dring (struct ldc_channel *lp, void *buf, unsigned int len, struct ldc_trans_cookie *cookies, int ncookies)
 

Variables

int ldom_domaining_enabled
 

Macro Definition Documentation

#define LDC_DEBUG_DATA   0x10

Definition at line 38 of file ldc.h.

#define LDC_DEBUG_HS   0x01

Definition at line 34 of file ldc.h.

#define LDC_DEBUG_RX   0x04

Definition at line 36 of file ldc.h.

#define LDC_DEBUG_STATE   0x02

Definition at line 35 of file ldc.h.

#define LDC_DEBUG_TX   0x08

Definition at line 37 of file ldc.h.

#define LDC_EVENT_DATA_READY   0x04

Definition at line 43 of file ldc.h.

#define LDC_EVENT_RESET   0x01

Definition at line 41 of file ldc.h.

#define LDC_EVENT_UP   0x02

Definition at line 42 of file ldc.h.

#define LDC_MAP_ALL   0x03f

Definition at line 87 of file ldc.h.

#define LDC_MAP_DIRECT   0x02

Definition at line 80 of file ldc.h.

#define LDC_MAP_IO   0x04

Definition at line 81 of file ldc.h.

#define LDC_MAP_R   0x08

Definition at line 82 of file ldc.h.

#define LDC_MAP_RW   (LDC_MAP_R | LDC_MAP_W)

Definition at line 85 of file ldc.h.

#define LDC_MAP_RWX   (LDC_MAP_R | LDC_MAP_W | LDC_MAP_X)

Definition at line 86 of file ldc.h.

#define LDC_MAP_SHADOW   0x01

Definition at line 79 of file ldc.h.

#define LDC_MAP_W   0x10

Definition at line 83 of file ldc.h.

#define LDC_MAP_X   0x20

Definition at line 84 of file ldc.h.

#define LDC_MODE_RAW   0x00

Definition at line 28 of file ldc.h.

#define LDC_MODE_RESERVED   0x02

Definition at line 30 of file ldc.h.

#define LDC_MODE_STREAM   0x03

Definition at line 31 of file ldc.h.

#define LDC_MODE_UNRELIABLE   0x01

Definition at line 29 of file ldc.h.

#define LDC_STATE_BOUND   0x02

Definition at line 47 of file ldc.h.

#define LDC_STATE_CONNECTED   0x04

Definition at line 49 of file ldc.h.

#define LDC_STATE_INIT   0x01

Definition at line 46 of file ldc.h.

#define LDC_STATE_INVALID   0x00

Definition at line 45 of file ldc.h.

#define LDC_STATE_READY   0x03

Definition at line 48 of file ldc.h.

Function Documentation

struct ldc_channel* ldc_alloc ( unsigned long  id,
const struct ldc_channel_config cfgp,
void event_arg 
)
read

Definition at line 1080 of file ldc.c.

void* ldc_alloc_exp_dring ( struct ldc_channel lp,
unsigned int  len,
struct ldc_trans_cookie cookies,
int ncookies,
unsigned int  map_perm 
)

Definition at line 2300 of file ldc.c.

int ldc_bind ( struct ldc_channel lp,
const char name 
)

Definition at line 1241 of file ldc.c.

int ldc_connect ( struct ldc_channel lp)

Definition at line 1327 of file ldc.c.

int ldc_copy ( struct ldc_channel lp,
int  copy_dir,
void buf,
unsigned int  len,
unsigned long  offset,
struct ldc_trans_cookie cookies,
int  ncookies 
)

Definition at line 2210 of file ldc.c.

int ldc_disconnect ( struct ldc_channel lp)

Definition at line 1350 of file ldc.c.

void ldc_free ( struct ldc_channel lp)

Definition at line 1208 of file ldc.c.

void ldc_free_exp_dring ( struct ldc_channel lp,
void buf,
unsigned int  len,
struct ldc_trans_cookie cookies,
int  ncookies 
)

Definition at line 2325 of file ldc.c.

int ldc_map_sg ( struct ldc_channel lp,
struct scatterlist sg,
int  num_sg,
struct ldc_trans_cookie cookies,
int  ncookies,
unsigned int  map_perm 
)

Definition at line 2082 of file ldc.c.

int ldc_map_single ( struct ldc_channel lp,
void buf,
unsigned int  len,
struct ldc_trans_cookie cookies,
int  ncookies,
unsigned int  map_perm 
)

Definition at line 2128 of file ldc.c.

int ldc_read ( struct ldc_channel lp,
void buf,
unsigned int  size 
)

Definition at line 1858 of file ldc.c.

int ldc_state ( struct ldc_channel lp)

Definition at line 1404 of file ldc.c.

void ldc_unmap ( struct ldc_channel lp,
struct ldc_trans_cookie cookies,
int  ncookies 
)

Definition at line 2192 of file ldc.c.

int ldc_write ( struct ldc_channel lp,
const void buf,
unsigned int  size 
)

Definition at line 1834 of file ldc.c.

void ldom_power_off ( void  )

Definition at line 864 of file ds.c.

void ldom_reboot ( const char boot_command)

Definition at line 837 of file ds.c.

void ldom_set_var ( const char var,
const char value 
)

Definition at line 745 of file ds.c.

Variable Documentation

int ldom_domaining_enabled

Definition at line 98 of file ldc.c.