13 #ifndef _DRIVERS_MISC_SGIXP_XP_H
14 #define _DRIVERS_MISC_SGIXP_XP_H
18 #if defined CONFIG_X86_UV || defined CONFIG_IA64_SGI_UV
19 #include <asm/uv/uv.h>
20 #define is_uv() is_uv_system()
27 #if defined CONFIG_IA64
28 #include <asm/sn/arch.h>
29 #define is_shub() ia64_platform_is("sn2")
45 #define DBUG_ON(condition) BUG_ON(condition)
47 #define DBUG_ON(condition)
61 #define XP_MAX_NPARTITIONS_SN2 64
62 #define XP_MAX_NPARTITIONS_UV 256
79 #define XPC_MEM_CHANNEL 0
80 #define XPC_NET_CHANNEL 1
82 #define XPC_MAX_NCHANNELS 2
84 #if XPC_MAX_NCHANNELS > 8
85 #error XPC_MAX_NCHANNELS exceeds absolute MAXIMUM possible.
93 #define XPC_MSG_MAX_SIZE 128
94 #define XPC_MSG_HDR_MAX_SIZE 16
95 #define XPC_MSG_PAYLOAD_MAX_SIZE (XPC_MSG_MAX_SIZE - XPC_MSG_HDR_MAX_SIZE)
97 #define XPC_MSG_SIZE(_payload_size) \
98 ALIGN(XPC_MSG_HDR_MAX_SIZE + (_payload_size), \
226 int ch_number,
void *
data,
void *
key);
251 int ch_number,
void *
key);
277 #define XPC_CHANNEL_REGISTERED(_c) (xpc_registrations[_c].func != NULL)
300 void (*)(
short,
int,
void *),
317 xpc_send_notify(
short partid,
int ch_number,
u32 flags,
void *payload,
321 payload_size, func, key);
325 xpc_received(
short partid,
int ch_number,
void *payload)
331 xpc_partid_to_nasids(
short partid,
void *nasids)