Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Variables
epapr_hcalls.h File Reference
#include <linux/types.h>
#include <linux/errno.h>
#include <asm/byteorder.h>

Go to the source code of this file.

Macros

#define EV_BYTE_CHANNEL_SEND   1
 
#define EV_BYTE_CHANNEL_RECEIVE   2
 
#define EV_BYTE_CHANNEL_POLL   3
 
#define EV_INT_SET_CONFIG   4
 
#define EV_INT_GET_CONFIG   5
 
#define EV_INT_SET_MASK   6
 
#define EV_INT_GET_MASK   7
 
#define EV_INT_IACK   9
 
#define EV_INT_EOI   10
 
#define EV_INT_SEND_IPI   11
 
#define EV_INT_SET_TASK_PRIORITY   12
 
#define EV_INT_GET_TASK_PRIORITY   13
 
#define EV_DOORBELL_SEND   14
 
#define EV_MSGSND   15
 
#define EV_IDLE   16
 
#define EV_LOCAL_VENDOR_ID   0 /* for private use */
 
#define EV_EPAPR_VENDOR_ID   1
 
#define EV_FSL_VENDOR_ID   2 /* Freescale Semiconductor */
 
#define EV_IBM_VENDOR_ID   3 /* IBM */
 
#define EV_GHS_VENDOR_ID   4 /* Green Hills Software */
 
#define EV_ENEA_VENDOR_ID   5 /* Enea */
 
#define EV_WR_VENDOR_ID   6 /* Wind River Systems */
 
#define EV_AMCC_VENDOR_ID   7 /* Applied Micro Circuits */
 
#define EV_KVM_VENDOR_ID   42 /* KVM */
 
#define EV_BYTE_CHANNEL_MAX_BYTES   16
 
#define _EV_HCALL_TOKEN(id, num)   (((id) << 16) | (num))
 
#define EV_HCALL_TOKEN(hcall_num)   _EV_HCALL_TOKEN(EV_EPAPR_VENDOR_ID, hcall_num)
 
#define EV_EPERM   1 /* Operation not permitted */
 
#define EV_ENOENT   2 /* Entry Not Found */
 
#define EV_EIO   3 /* I/O error occured */
 
#define EV_EAGAIN
 
#define EV_ENOMEM
 
#define EV_EFAULT   6 /* Bad guest address */
 
#define EV_ENODEV   7 /* No such device */
 
#define EV_EINVAL
 
#define EV_INTERNAL   9 /* An internal error occured */
 
#define EV_CONFIG   10 /* A configuration error was detected */
 
#define EV_INVALID_STATE   11 /* The object is in an invalid state */
 
#define EV_UNIMPLEMENTED   12 /* Unimplemented hypercall */
 
#define EV_BUFFER_OVERFLOW   13 /* Caller-supplied buffer too small */
 
#define EV_HCALL_CLOBBERS   "r0", "r12", "xer", "ctr", "lr", "cc", "memory"
 
#define EV_HCALL_CLOBBERS8   EV_HCALL_CLOBBERS
 
#define EV_HCALL_CLOBBERS7   EV_HCALL_CLOBBERS8, "r10"
 
#define EV_HCALL_CLOBBERS6   EV_HCALL_CLOBBERS7, "r9"
 
#define EV_HCALL_CLOBBERS5   EV_HCALL_CLOBBERS6, "r8"
 
#define EV_HCALL_CLOBBERS4   EV_HCALL_CLOBBERS5, "r7"
 
#define EV_HCALL_CLOBBERS3   EV_HCALL_CLOBBERS4, "r6"
 
#define EV_HCALL_CLOBBERS2   EV_HCALL_CLOBBERS3, "r5"
 
#define EV_HCALL_CLOBBERS1   EV_HCALL_CLOBBERS2, "r4"
 

Variables

bool epapr_paravirt_enabled
 
u32 epapr_hypercall_start []
 

Macro Definition Documentation

#define _EV_HCALL_TOKEN (   id,
  num 
)    (((id) << 16) | (num))

Definition at line 88 of file epapr_hcalls.h.

#define EV_AMCC_VENDOR_ID   7 /* Applied Micro Circuits */

Definition at line 81 of file epapr_hcalls.h.

#define EV_BUFFER_OVERFLOW   13 /* Caller-supplied buffer too small */

Definition at line 104 of file epapr_hcalls.h.

#define EV_BYTE_CHANNEL_MAX_BYTES   16

Definition at line 85 of file epapr_hcalls.h.

#define EV_BYTE_CHANNEL_POLL   3

Definition at line 59 of file epapr_hcalls.h.

#define EV_BYTE_CHANNEL_RECEIVE   2

Definition at line 58 of file epapr_hcalls.h.

#define EV_BYTE_CHANNEL_SEND   1

Definition at line 57 of file epapr_hcalls.h.

#define EV_CONFIG   10 /* A configuration error was detected */

Definition at line 101 of file epapr_hcalls.h.

#define EV_DOORBELL_SEND   14

Definition at line 69 of file epapr_hcalls.h.

#define EV_EAGAIN
Value:
4 /* The operation had insufficient
* resources to complete and should be
* retried
*/

Definition at line 95 of file epapr_hcalls.h.

#define EV_EFAULT   6 /* Bad guest address */

Definition at line 97 of file epapr_hcalls.h.

#define EV_EINVAL
Value:
8 /* An argument supplied to the hcall
was out of range or invalid */

Definition at line 99 of file epapr_hcalls.h.

#define EV_EIO   3 /* I/O error occured */

Definition at line 94 of file epapr_hcalls.h.

#define EV_ENEA_VENDOR_ID   5 /* Enea */

Definition at line 79 of file epapr_hcalls.h.

#define EV_ENODEV   7 /* No such device */

Definition at line 98 of file epapr_hcalls.h.

#define EV_ENOENT   2 /* Entry Not Found */

Definition at line 93 of file epapr_hcalls.h.

#define EV_ENOMEM
Value:
5 /* There was insufficient memory to
* complete the operation */

Definition at line 96 of file epapr_hcalls.h.

#define EV_EPAPR_VENDOR_ID   1

Definition at line 75 of file epapr_hcalls.h.

#define EV_EPERM   1 /* Operation not permitted */

Definition at line 92 of file epapr_hcalls.h.

#define EV_FSL_VENDOR_ID   2 /* Freescale Semiconductor */

Definition at line 76 of file epapr_hcalls.h.

#define EV_GHS_VENDOR_ID   4 /* Green Hills Software */

Definition at line 78 of file epapr_hcalls.h.

#define EV_HCALL_CLOBBERS   "r0", "r12", "xer", "ctr", "lr", "cc", "memory"

Definition at line 140 of file epapr_hcalls.h.

#define EV_HCALL_CLOBBERS1   EV_HCALL_CLOBBERS2, "r4"

Definition at line 149 of file epapr_hcalls.h.

#define EV_HCALL_CLOBBERS2   EV_HCALL_CLOBBERS3, "r5"

Definition at line 148 of file epapr_hcalls.h.

#define EV_HCALL_CLOBBERS3   EV_HCALL_CLOBBERS4, "r6"

Definition at line 147 of file epapr_hcalls.h.

#define EV_HCALL_CLOBBERS4   EV_HCALL_CLOBBERS5, "r7"

Definition at line 146 of file epapr_hcalls.h.

#define EV_HCALL_CLOBBERS5   EV_HCALL_CLOBBERS6, "r8"

Definition at line 145 of file epapr_hcalls.h.

#define EV_HCALL_CLOBBERS6   EV_HCALL_CLOBBERS7, "r9"

Definition at line 144 of file epapr_hcalls.h.

#define EV_HCALL_CLOBBERS7   EV_HCALL_CLOBBERS8, "r10"

Definition at line 143 of file epapr_hcalls.h.

#define EV_HCALL_CLOBBERS8   EV_HCALL_CLOBBERS

Definition at line 142 of file epapr_hcalls.h.

#define EV_HCALL_TOKEN (   hcall_num)    _EV_HCALL_TOKEN(EV_EPAPR_VENDOR_ID, hcall_num)

Definition at line 89 of file epapr_hcalls.h.

#define EV_IBM_VENDOR_ID   3 /* IBM */

Definition at line 77 of file epapr_hcalls.h.

#define EV_IDLE   16

Definition at line 71 of file epapr_hcalls.h.

#define EV_INT_EOI   10

Definition at line 65 of file epapr_hcalls.h.

#define EV_INT_GET_CONFIG   5

Definition at line 61 of file epapr_hcalls.h.

#define EV_INT_GET_MASK   7

Definition at line 63 of file epapr_hcalls.h.

#define EV_INT_GET_TASK_PRIORITY   13

Definition at line 68 of file epapr_hcalls.h.

#define EV_INT_IACK   9

Definition at line 64 of file epapr_hcalls.h.

#define EV_INT_SEND_IPI   11

Definition at line 66 of file epapr_hcalls.h.

#define EV_INT_SET_CONFIG   4

Definition at line 60 of file epapr_hcalls.h.

#define EV_INT_SET_MASK   6

Definition at line 62 of file epapr_hcalls.h.

#define EV_INT_SET_TASK_PRIORITY   12

Definition at line 67 of file epapr_hcalls.h.

#define EV_INTERNAL   9 /* An internal error occured */

Definition at line 100 of file epapr_hcalls.h.

#define EV_INVALID_STATE   11 /* The object is in an invalid state */

Definition at line 102 of file epapr_hcalls.h.

#define EV_KVM_VENDOR_ID   42 /* KVM */

Definition at line 82 of file epapr_hcalls.h.

#define EV_LOCAL_VENDOR_ID   0 /* for private use */

Definition at line 74 of file epapr_hcalls.h.

#define EV_MSGSND   15

Definition at line 70 of file epapr_hcalls.h.

#define EV_UNIMPLEMENTED   12 /* Unimplemented hypercall */

Definition at line 103 of file epapr_hcalls.h.

#define EV_WR_VENDOR_ID   6 /* Wind River Systems */

Definition at line 80 of file epapr_hcalls.h.

Variable Documentation

u32 epapr_hypercall_start[]
bool epapr_paravirt_enabled

Definition at line 25 of file epapr_paravirt.c.