#include <linux/kernel.h>
#include <linux/export.h>
#include <linux/slab.h>
#include <linux/spinlock.h>
#include <linux/delay.h>
#include <linux/errno.h>
#include <linux/string.h>
#include <linux/scatterlist.h>
#include <linux/interrupt.h>
#include <linux/list.h>
#include <linux/init.h>
#include <linux/bitmap.h>
#include <asm/hypervisor.h>
#include <asm/iommu.h>
#include <asm/page.h>
#include <asm/ldc.h>
#include <asm/mdesc.h>
Go to the source code of this file.
|
struct ldc_channel * | ldc_alloc (unsigned long id, const struct ldc_channel_config *cfgp, void *event_arg) |
|
| EXPORT_SYMBOL (ldc_alloc) |
|
void | ldc_free (struct ldc_channel *lp) |
|
| EXPORT_SYMBOL (ldc_free) |
|
int | ldc_bind (struct ldc_channel *lp, const char *name) |
|
| EXPORT_SYMBOL (ldc_bind) |
|
int | ldc_connect (struct ldc_channel *lp) |
|
| EXPORT_SYMBOL (ldc_connect) |
|
int | ldc_disconnect (struct ldc_channel *lp) |
|
| EXPORT_SYMBOL (ldc_disconnect) |
|
int | ldc_state (struct ldc_channel *lp) |
|
| EXPORT_SYMBOL (ldc_state) |
|
int | ldc_write (struct ldc_channel *lp, const void *buf, unsigned int size) |
|
| EXPORT_SYMBOL (ldc_write) |
|
int | ldc_read (struct ldc_channel *lp, void *buf, unsigned int size) |
|
| EXPORT_SYMBOL (ldc_read) |
|
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) |
|
| EXPORT_SYMBOL (ldc_map_sg) |
|
int | ldc_map_single (struct ldc_channel *lp, void *buf, unsigned int len, struct ldc_trans_cookie *cookies, int ncookies, unsigned int map_perm) |
|
| EXPORT_SYMBOL (ldc_map_single) |
|
void | ldc_unmap (struct ldc_channel *lp, struct ldc_trans_cookie *cookies, int ncookies) |
|
| EXPORT_SYMBOL (ldc_unmap) |
|
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) |
|
| EXPORT_SYMBOL (ldc_copy) |
|
void * | ldc_alloc_exp_dring (struct ldc_channel *lp, unsigned int len, struct ldc_trans_cookie *cookies, int *ncookies, unsigned int map_perm) |
|
| EXPORT_SYMBOL (ldc_alloc_exp_dring) |
|
void | ldc_free_exp_dring (struct ldc_channel *lp, void *buf, unsigned int len, struct ldc_trans_cookie *cookies, int ncookies) |
|
| EXPORT_SYMBOL (ldc_free_exp_dring) |
|
| core_initcall (ldc_init) |
|
#define COOKIE_PGSZ_CODE 0xf000000000000000ULL |
#define COOKIE_PGSZ_CODE_SHIFT 60ULL |
#define DRV_MODULE_NAME "ldc" |
Definition at line 25 of file ldc.c.
#define DRV_MODULE_RELDATE "July 22, 2008" |
Definition at line 28 of file ldc.c.
#define DRV_MODULE_VERSION "1.1" |
Definition at line 27 of file ldc.c.
Definition at line 46 of file ldc.c.
Definition at line 40 of file ldc.c.
#define LDC_CTRL_MSK 0x0f |
Definition at line 54 of file ldc.c.
Definition at line 41 of file ldc.c.
Definition at line 84 of file ldc.c.
Definition at line 85 of file ldc.c.
Definition at line 42 of file ldc.c.
#define LDC_FLAG_ALLOCED_QUEUES 0x01 |
#define LDC_FLAG_REGISTERED_IRQS 0x04 |
#define LDC_FLAG_REGISTERED_QUEUES 0x02 |
#define LDC_FLAG_RESET 0x10 |
#define LDC_FRAG_MASK 0xc0 |
Definition at line 58 of file ldc.c.
#define LDC_HS_CLOSED 0x00 |
#define LDC_HS_COMPLETE 0x10 |
#define LDC_HS_GOTRTR 0x04 |
#define LDC_HS_GOTVERS 0x02 |
#define LDC_HS_SENTRTR 0x03 |
Definition at line 45 of file ldc.c.
#define LDC_IOTABLE_SIZE (8 * 1024) |
#define LDC_IRQ_NAME_MAX 32 |
Definition at line 57 of file ldc.c.
Definition at line 47 of file ldc.c.
#define LDC_PACKET_SIZE 64 |
Definition at line 32 of file ldc.c.
#define LDC_RDX 0x04 /* Ready for Data eXchange */ |
Definition at line 53 of file ldc.c.
#define LDC_RTR 0x03 /* Ready To Receive */ |
Definition at line 52 of file ldc.c.
#define LDC_RTS 0x02 /* Request To Send */ |
Definition at line 51 of file ldc.c.
Definition at line 59 of file ldc.c.
Definition at line 60 of file ldc.c.
#define LDC_VERS 0x01 /* Link Version */ |
Definition at line 50 of file ldc.c.
#define ldcdbg |
( |
|
TYPE, |
|
|
|
f, |
|
|
|
a... |
|
) |
| |
Value:do {
if (
lp->cfg.debug & LDC_DEBUG_##
TYPE) \
} while (0)
Definition at line 171 of file ldc.c.
Definition at line 26 of file ldc.c.
core_initcall |
( |
ldc_init |
| ) |
|
int ldom_domaining_enabled |
Definition at line 98 of file ldc.c.