Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
xp_main.c File Reference
#include <linux/module.h>
#include <linux/device.h>
#include "xp.h"

Go to the source code of this file.

Functions

 EXPORT_SYMBOL_GPL (xp_max_npartitions)
 
 EXPORT_SYMBOL_GPL (xp_partition_id)
 
 EXPORT_SYMBOL_GPL (xp_region_size)
 
 EXPORT_SYMBOL_GPL (xp_pa)
 
 EXPORT_SYMBOL_GPL (xp_socket_pa)
 
 EXPORT_SYMBOL_GPL (xp_remote_memcpy)
 
 EXPORT_SYMBOL_GPL (xp_cpu_to_nasid)
 
 EXPORT_SYMBOL_GPL (xp_expand_memprotect)
 
 EXPORT_SYMBOL_GPL (xp_restrict_memprotect)
 
 EXPORT_SYMBOL_GPL (xpc_registrations)
 
 EXPORT_SYMBOL_GPL (xpc_interface)
 
void xpc_set_interface (void(*connect)(int), void(*disconnect)(int), enum xp_retval(*send)(short, int, u32, void *, u16), enum xp_retval(*send_notify)(short, int, u32, void *, u16, xpc_notify_func, void *), void(*received)(short, int, void *), enum xp_retval(*partid_to_nasids)(short, void *))
 
 EXPORT_SYMBOL_GPL (xpc_set_interface)
 
void xpc_clear_interface (void)
 
 EXPORT_SYMBOL_GPL (xpc_clear_interface)
 
enum xp_retval xpc_connect (int ch_number, xpc_channel_func func, void *key, u16 payload_size, u16 nentries, u32 assigned_limit, u32 idle_limit)
 
 EXPORT_SYMBOL_GPL (xpc_connect)
 
void xpc_disconnect (int ch_number)
 
 EXPORT_SYMBOL_GPL (xpc_disconnect)
 
int __init xp_init (void)
 
 module_init (xp_init)
 
void __exit xp_exit (void)
 
 module_exit (xp_exit)
 
 MODULE_AUTHOR ("Silicon Graphics, Inc.")
 
 MODULE_DESCRIPTION ("Cross Partition (XP) base")
 
 MODULE_LICENSE ("GPL")
 

Variables

struct device_driver xp_dbg_name
 
struct device xp_dbg_subname
 
struct devicexp = &xp_dbg_subname
 
short xp_max_npartitions
 
short xp_partition_id
 
u8 xp_region_size
 
unsigned long(* xp_pa )(void *addr)
 
unsigned long(* xp_socket_pa )(unsigned long gpa)
 
enum xp_retval(* xp_remote_memcpy )(unsigned long dst_gpa, const unsigned long src_gpa, size_t len)
 
int(* xp_cpu_to_nasid )(int cpuid)
 
enum xp_retval(* xp_expand_memprotect )(unsigned long phys_addr, unsigned long size)
 
enum xp_retval(* xp_restrict_memprotect )(unsigned long phys_addr, unsigned long size)
 
struct xpc_registration xpc_registrations [XPC_MAX_NCHANNELS]
 
struct xpc_interface xpc_interface
 

Function Documentation

EXPORT_SYMBOL_GPL ( xp_max_npartitions  )
EXPORT_SYMBOL_GPL ( xp_partition_id  )
EXPORT_SYMBOL_GPL ( xp_region_size  )
EXPORT_SYMBOL_GPL ( xp_pa  )
EXPORT_SYMBOL_GPL ( xp_socket_pa  )
EXPORT_SYMBOL_GPL ( xp_remote_memcpy  )
EXPORT_SYMBOL_GPL ( xp_cpu_to_nasid  )
EXPORT_SYMBOL_GPL ( xp_expand_memprotect  )
EXPORT_SYMBOL_GPL ( xp_restrict_memprotect  )
EXPORT_SYMBOL_GPL ( xpc_registrations  )
EXPORT_SYMBOL_GPL ( xpc_interface  )
EXPORT_SYMBOL_GPL ( xpc_set_interface  )
EXPORT_SYMBOL_GPL ( xpc_clear_interface  )
EXPORT_SYMBOL_GPL ( xpc_connect  )
EXPORT_SYMBOL_GPL ( xpc_disconnect  )
MODULE_AUTHOR ( "Silicon  Graphics,
Inc."   
)
MODULE_DESCRIPTION ( "Cross Partition (XP) base )
module_exit ( xp_exit  )
module_init ( xp_init  )
MODULE_LICENSE ( "GPL"  )
void __exit xp_exit ( void  )

Definition at line 274 of file xp_main.c.

int __init xp_init ( void  )

Definition at line 249 of file xp_main.c.

void xpc_clear_interface ( void  )

Definition at line 116 of file xp_main.c.

enum xp_retval xpc_connect ( int  ch_number,
xpc_channel_func  func,
void key,
u16  payload_size,
u16  nentries,
u32  assigned_limit,
u32  idle_limit 
)

Definition at line 157 of file xp_main.c.

void xpc_disconnect ( int  ch_number)

Definition at line 211 of file xp_main.c.

void xpc_set_interface ( void(*)(int connect,
void(*)(int disconnect,
enum xp_retval(*)(short, int, u32, void *, u16 send,
enum xp_retval(*)(short, int, u32, void *, u16, xpc_notify_func, void *)  send_notify,
void(*)(short, int, void *)  received,
enum xp_retval(*)(short, void *)  partid_to_nasids 
)

Definition at line 95 of file xp_main.c.

Variable Documentation

Definition at line 32 of file xp_main.c.

int(* xp_cpu_to_nasid)(int cpuid)

Definition at line 54 of file xp_main.c.

struct device_driver xp_dbg_name
Initial value:
= {
.name = "xp"
}

Definition at line 23 of file xp_main.c.

struct device xp_dbg_subname
Initial value:
= {
.init_name = "",
.driver = &xp_dbg_name
}

Definition at line 27 of file xp_main.c.

enum xp_retval(* xp_expand_memprotect)(unsigned long phys_addr, unsigned long size)

Definition at line 57 of file xp_main.c.

short xp_max_npartitions

Definition at line 35 of file xp_main.c.

unsigned long(* xp_pa)(void *addr)

Definition at line 44 of file xp_main.c.

short xp_partition_id

Definition at line 38 of file xp_main.c.

u8 xp_region_size

Definition at line 41 of file xp_main.c.

enum xp_retval(* xp_remote_memcpy)(unsigned long dst_gpa, const unsigned long src_gpa, size_t len)

Definition at line 50 of file xp_main.c.

enum xp_retval(* xp_restrict_memprotect)(unsigned long phys_addr, unsigned long size)

Definition at line 60 of file xp_main.c.

unsigned long(* xp_socket_pa)(unsigned long gpa)

Definition at line 47 of file xp_main.c.

Initial value:
= {
(void (*)(int))xpc_notloaded,
(void (*)(int))xpc_notloaded,
(enum xp_retval(*)(short, int, u32, void *, u16))xpc_notloaded,
(enum xp_retval(*)(short, int, u32, void *, u16, xpc_notify_func,
void *))xpc_notloaded,
(void (*)(short, int, void *))xpc_notloaded,
(enum xp_retval(*)(short, void *))xpc_notloaded
}

Definition at line 80 of file xp_main.c.

Definition at line 68 of file xp_main.c.