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

Go to the source code of this file.

Data Structures

struct  xpc_registration
 
struct  xpc_interface
 

Macros

#define is_uv()   0
 
#define is_shub1()   0
 
#define is_shub2()   0
 
#define is_shub()   0
 
#define DBUG_ON(condition)
 
#define XP_MAX_NPARTITIONS_SN2   64
 
#define XP_MAX_NPARTITIONS_UV   256
 
#define XPC_MEM_CHANNEL   0 /* memory channel number */
 
#define XPC_NET_CHANNEL   1 /* network channel number */
 
#define XPC_MAX_NCHANNELS   2 /* max #of channels allowed */
 
#define XPC_MSG_MAX_SIZE   128
 
#define XPC_MSG_HDR_MAX_SIZE   16
 
#define XPC_MSG_PAYLOAD_MAX_SIZE   (XPC_MSG_MAX_SIZE - XPC_MSG_HDR_MAX_SIZE)
 
#define XPC_MSG_SIZE(_payload_size)
 
#define XPC_CHANNEL_REGISTERED(_c)   (xpc_registrations[_c].func != NULL)
 
#define XPC_WAIT   0 /* wait flag */
 
#define XPC_NOWAIT   1 /* no wait flag */
 

Typedefs

typedef void(* xpc_channel_func )(enum xp_retval reason, short partid, int ch_number, void *data, void *key)
 
typedef void(* xpc_notify_func )(enum xp_retval reason, short partid, int ch_number, void *key)
 

Enumerations

enum  xp_retval {
  xpSuccess = 0, xpNotConnected, xpConnected, xpRETIRED1,
  xpMsgReceived, xpMsgDelivered, xpRETIRED2, xpNoWait,
  xpRetry, xpTimeout, xpInterrupted, xpUnequalMsgSizes,
  xpInvalidAddress, xpNoMemory, xpLackOfResources, xpUnregistered,
  xpAlreadyRegistered, xpPartitionDown, xpNotLoaded, xpUnloading,
  xpBadMagic, xpReactivating, xpUnregistering, xpOtherUnregistering,
  xpCloneKThread, xpCloneKThreadFailed, xpNoHeartbeat, xpPioReadError,
  xpPhysAddrRegFailed, xpRETIRED3, xpRETIRED4, xpRETIRED5,
  xpRETIRED6, xpRETIRED7, xpRETIRED8, xpRETIRED9,
  xpRETIRED10, xpRETIRED11, xpRETIRED12, xpBadVersion,
  xpVarsNotSet, xpNoRsvdPageAddr, xpInvalidPartid, xpLocalPartid,
  xpOtherGoingDown, xpSystemGoingDown, xpSystemHalt, xpSystemReboot,
  xpSystemPoweroff, xpDisconnecting, xpOpenCloseError, xpDisconnected,
  xpBteCopyError, xpSalError, xpRsvdPageNotSet, xpPayloadTooBig,
  xpUnsupported, xpNeedMoreInfo, xpGruCopyError, xpGruSendMqError,
  xpBadChannelNumber, xpBadMsgType, xpBiosError, xpUnknownReason
}
 

Functions

void xpc_set_interface (void(*)(int), void(*)(int), enum xp_retval(*)(short, int, u32, void *, u16), enum xp_retval(*)(short, int, u32, void *, u16, xpc_notify_func, void *), void(*)(short, int, void *), enum xp_retval(*)(short, void *))
 
void xpc_clear_interface (void)
 
enum xp_retval xpc_connect (int, xpc_channel_func, void *, u16, u16, u32, u32)
 
void xpc_disconnect (int)
 
int xp_nofault_PIOR (void *)
 
int xp_error_PIOR (void)
 
enum xp_retval xp_init_sn2 (void)
 
enum xp_retval xp_init_uv (void)
 
void xp_exit_sn2 (void)
 
void xp_exit_uv (void)
 

Variables

struct xpc_registration ____cacheline_aligned
 
struct xpc_interface xpc_interface
 
short xp_max_npartitions
 
short xp_partition_id
 
u8 xp_region_size
 
unsigned long(* xp_pa )(void *)
 
unsigned long(* xp_socket_pa )(unsigned long)
 
enum xp_retval(* xp_remote_memcpy )(unsigned long, const unsigned long, size_t)
 
int(* xp_cpu_to_nasid )(int)
 
enum xp_retval(* xp_expand_memprotect )(unsigned long, unsigned long)
 
enum xp_retval(* xp_restrict_memprotect )(unsigned long, unsigned long)
 
u64 xp_nofault_PIOR_target
 
struct devicexp
 

Macro Definition Documentation

#define DBUG_ON (   condition)

Definition at line 47 of file xp.h.

#define is_shub ( )    0

Definition at line 41 of file xp.h.

#define is_shub1 ( )    0

Definition at line 33 of file xp.h.

#define is_shub2 ( )    0

Definition at line 37 of file xp.h.

#define is_uv ( )    0

Definition at line 24 of file xp.h.

#define XP_MAX_NPARTITIONS_SN2   64

Definition at line 61 of file xp.h.

#define XP_MAX_NPARTITIONS_UV   256

Definition at line 62 of file xp.h.

#define XPC_CHANNEL_REGISTERED (   _c)    (xpc_registrations[_c].func != NULL)

Definition at line 277 of file xp.h.

#define XPC_MAX_NCHANNELS   2 /* max #of channels allowed */

Definition at line 82 of file xp.h.

#define XPC_MEM_CHANNEL   0 /* memory channel number */

Definition at line 79 of file xp.h.

#define XPC_MSG_HDR_MAX_SIZE   16

Definition at line 94 of file xp.h.

#define XPC_MSG_MAX_SIZE   128

Definition at line 93 of file xp.h.

#define XPC_MSG_PAYLOAD_MAX_SIZE   (XPC_MSG_MAX_SIZE - XPC_MSG_HDR_MAX_SIZE)

Definition at line 95 of file xp.h.

#define XPC_MSG_SIZE (   _payload_size)
Value:
ALIGN(XPC_MSG_HDR_MAX_SIZE + (_payload_size), \
is_uv() ? 64 : 128)

Definition at line 97 of file xp.h.

#define XPC_NET_CHANNEL   1 /* network channel number */

Definition at line 80 of file xp.h.

#define XPC_NOWAIT   1 /* no wait flag */

Definition at line 281 of file xp.h.

#define XPC_WAIT   0 /* wait flag */

Definition at line 280 of file xp.h.

Typedef Documentation

typedef void(* xpc_channel_func)(enum xp_retval reason, short partid, int ch_number, void *data, void *key)

Definition at line 225 of file xp.h.

typedef void(* xpc_notify_func)(enum xp_retval reason, short partid, int ch_number, void *key)

Definition at line 250 of file xp.h.

Enumeration Type Documentation

enum xp_retval
Enumerator:
xpSuccess 
xpNotConnected 
xpConnected 
xpRETIRED1 
xpMsgReceived 
xpMsgDelivered 
xpRETIRED2 
xpNoWait 
xpRetry 
xpTimeout 
xpInterrupted 
xpUnequalMsgSizes 
xpInvalidAddress 
xpNoMemory 
xpLackOfResources 
xpUnregistered 
xpAlreadyRegistered 
xpPartitionDown 
xpNotLoaded 
xpUnloading 
xpBadMagic 
xpReactivating 
xpUnregistering 
xpOtherUnregistering 
xpCloneKThread 
xpCloneKThreadFailed 
xpNoHeartbeat 
xpPioReadError 
xpPhysAddrRegFailed 
xpRETIRED3 
xpRETIRED4 
xpRETIRED5 
xpRETIRED6 
xpRETIRED7 
xpRETIRED8 
xpRETIRED9 
xpRETIRED10 
xpRETIRED11 
xpRETIRED12 
xpBadVersion 
xpVarsNotSet 
xpNoRsvdPageAddr 
xpInvalidPartid 
xpLocalPartid 
xpOtherGoingDown 
xpSystemGoingDown 
xpSystemHalt 
xpSystemReboot 
xpSystemPoweroff 
xpDisconnecting 
xpOpenCloseError 
xpDisconnected 
xpBteCopyError 
xpSalError 
xpRsvdPageNotSet 
xpPayloadTooBig 
xpUnsupported 
xpNeedMoreInfo 
xpGruCopyError 
xpGruSendMqError 
xpBadChannelNumber 
xpBadMsgType 
xpBiosError 
xpUnknownReason 

Definition at line 107 of file xp.h.

Function Documentation

int xp_error_PIOR ( void  )
void xp_exit_sn2 ( void  )

Definition at line 184 of file xp_sn2.c.

void xp_exit_uv ( void  )

Definition at line 168 of file xp_uv.c.

enum xp_retval xp_init_sn2 ( void  )

Definition at line 165 of file xp_sn2.c.

enum xp_retval xp_init_uv ( void  )

Definition at line 149 of file xp_uv.c.

int xp_nofault_PIOR ( void )
void xpc_clear_interface ( void  )

Definition at line 116 of file xp_main.c.

enum xp_retval xpc_connect ( int  ,
xpc_channel_func  ,
void ,
u16  ,
u16  ,
u32  ,
u32   
)

Definition at line 157 of file xp_main.c.

void xpc_disconnect ( int  )

Definition at line 211 of file xp_main.c.

void xpc_set_interface ( void(*)(int ,
void(*)(int ,
enum   xp_retval*)(short, int, u32, void *, u16,
enum   xp_retval*)(short, int, u32, void *, u16, xpc_notify_func, void *,
void(*)(short, int, void *)  ,
enum   xp_retval*)(short, void * 
)

Variable Documentation

Definition at line 32 of file xp_main.c.

int(* xp_cpu_to_nasid)(int)

Definition at line 54 of file xp_main.c.

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

Definition at line 57 of file xp_main.c.

short xp_max_npartitions

Definition at line 35 of file xp_main.c.

u64 xp_nofault_PIOR_target

Definition at line 28 of file xp_sn2.c.

unsigned long(* xp_pa)(void *)

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, const unsigned long, size_t)

Definition at line 50 of file xp_main.c.

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

Definition at line 60 of file xp_main.c.

unsigned long(* xp_socket_pa)(unsigned long)

Definition at line 47 of file xp_main.c.

Definition at line 80 of file xp_main.c.