ia64/xen-unstable

changeset 8680:2add7a262530

Add hypercall-declaring header files.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Fri Jan 27 16:17:38 2006 +0100 (2006-01-27)
parents 98c8afe4c433
children 5a9efc35feb2
files xen/include/asm-ia64/hypercall.h xen/include/asm-x86/hypercall.h xen/include/xen/hypercall.h
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/xen/include/asm-ia64/hypercall.h	Fri Jan 27 16:17:38 2006 +0100
     1.3 @@ -0,0 +1,30 @@
     1.4 +/******************************************************************************
     1.5 + * asm-ia64/hypercall.h
     1.6 + */
     1.7 +
     1.8 +#ifndef __ASM_IA64_HYPERCALL_H__
     1.9 +#define __ASM_IA64_HYPERCALL_H__
    1.10 +
    1.11 +#include <public/xen.h>
    1.12 +#include <asm/types.h>
    1.13 +#include <asm/vcpu.h>
    1.14 +
    1.15 +extern int
    1.16 +vmx_do_mmu_update(
    1.17 +    mmu_update_t *ureqs,
    1.18 +    u64 count,
    1.19 +    u64 *pdone,
    1.20 +    u64 foreigndom);
    1.21 +
    1.22 +extern int
    1.23 +do_lock_page(
    1.24 +    VCPU *vcpu,
    1.25 +    u64 va,
    1.26 +    u64 lock);
    1.27 +
    1.28 +extern int
    1.29 +do_set_shared_page(
    1.30 +    VCPU *vcpu,
    1.31 +    u64 gpa);
    1.32 +
    1.33 +#endif /* __ASM_IA64_HYPERCALL_H__ */
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/xen/include/asm-x86/hypercall.h	Fri Jan 27 16:17:38 2006 +0100
     2.3 @@ -0,0 +1,102 @@
     2.4 +/******************************************************************************
     2.5 + * asm-x86/hypercall.h
     2.6 + */
     2.7 +
     2.8 +#ifndef __ASM_X86_HYPERCALL_H__
     2.9 +#define __ASM_X86_HYPERCALL_H__
    2.10 +
    2.11 +struct trap_info;
    2.12 +extern long
    2.13 +do_set_trap_table(
    2.14 +    struct trap_info *traps);
    2.15 +
    2.16 +struct mmu_update;
    2.17 +extern int
    2.18 +do_mmu_update(
    2.19 +    struct mmu_update *ureqs,
    2.20 +    unsigned int count,
    2.21 +    unsigned int *pdone,
    2.22 +    unsigned int foreigndom);
    2.23 +
    2.24 +extern long
    2.25 +do_set_gdt(
    2.26 +    unsigned long *frame_list,
    2.27 +    unsigned int entries);
    2.28 +
    2.29 +extern long
    2.30 +do_stack_switch(
    2.31 +    unsigned long ss,
    2.32 +    unsigned long esp);
    2.33 +
    2.34 +extern long
    2.35 +do_fpu_taskswitch(
    2.36 +    int set);
    2.37 +
    2.38 +extern long
    2.39 +do_set_debugreg(
    2.40 +    int reg,
    2.41 +    unsigned long value);
    2.42 +
    2.43 +extern unsigned long
    2.44 +do_get_debugreg(
    2.45 +    int reg);
    2.46 +
    2.47 +extern long
    2.48 +do_update_descriptor(
    2.49 +    u64 pa,
    2.50 +    u64 desc);
    2.51 +
    2.52 +extern int
    2.53 +do_update_va_mapping(
    2.54 +    unsigned long va,
    2.55 +    u64 val64,
    2.56 +    unsigned long flags);
    2.57 +
    2.58 +struct physdev_op;
    2.59 +extern long
    2.60 +do_physdev_op(
    2.61 +    struct physdev_op *uop);
    2.62 +
    2.63 +extern int
    2.64 +do_update_va_mapping_otherdomain(
    2.65 +    unsigned long va,
    2.66 +    u64 val64,
    2.67 +    unsigned long flags,
    2.68 +    domid_t domid);
    2.69 +
    2.70 +extern int
    2.71 +do_mmuext_op(
    2.72 +    struct mmuext_op *uops,
    2.73 +    unsigned int count,
    2.74 +    unsigned int *pdone,
    2.75 +    unsigned int foreigndom);
    2.76 +
    2.77 +extern unsigned long
    2.78 +do_iret(
    2.79 +    void);
    2.80 +
    2.81 +#ifdef __x86_64__
    2.82 +
    2.83 +extern long
    2.84 +do_set_callbacks(
    2.85 +    unsigned long event_address,
    2.86 +    unsigned long failsafe_address,
    2.87 +    unsigned long syscall_address);
    2.88 +
    2.89 +extern long
    2.90 +do_set_segment_base(
    2.91 +    unsigned int which,
    2.92 +    unsigned long base);
    2.93 +
    2.94 +#else
    2.95 +
    2.96 +extern long
    2.97 +do_set_callbacks(
    2.98 +    unsigned long event_selector,
    2.99 +    unsigned long event_address,
   2.100 +    unsigned long failsafe_selector,
   2.101 +    unsigned long failsafe_address);
   2.102 +
   2.103 +#endif
   2.104 +
   2.105 +#endif /* __ASM_X86_HYPERCALL_H__ */
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/xen/include/xen/hypercall.h	Fri Jan 27 16:17:38 2006 +0100
     3.3 @@ -0,0 +1,86 @@
     3.4 +/******************************************************************************
     3.5 + * hypercall.h
     3.6 + */
     3.7 +
     3.8 +#ifndef __XEN_HYPERCALL_H__
     3.9 +#define __XEN_HYPERCALL_H__
    3.10 +
    3.11 +#include <xen/config.h>
    3.12 +#include <xen/types.h>
    3.13 +#include <xen/time.h>
    3.14 +#include <public/xen.h>
    3.15 +#include <asm/hypercall.h>
    3.16 +
    3.17 +extern long
    3.18 +do_ni_hypercall(
    3.19 +    void);
    3.20 +
    3.21 +extern long
    3.22 +do_sched_op(
    3.23 +    int cmd,
    3.24 +    unsigned long arg);
    3.25 +
    3.26 +struct dom0_op;
    3.27 +extern long
    3.28 +do_dom0_op(
    3.29 +    struct dom0_op *u_dom0_op);
    3.30 +
    3.31 +extern long
    3.32 +do_memory_op(
    3.33 +    int cmd,
    3.34 +    void *arg);
    3.35 +
    3.36 +struct multicall_entry;
    3.37 +extern long
    3.38 +do_multicall(
    3.39 +    struct multicall_entry *call_list,
    3.40 +    unsigned int nr_calls);
    3.41 +
    3.42 +extern long
    3.43 +do_set_timer_op(
    3.44 +    s_time_t timeout);
    3.45 +
    3.46 +struct evtchn_op;
    3.47 +extern long
    3.48 +do_event_channel_op(
    3.49 +    struct evtchn_op *uop);
    3.50 +
    3.51 +extern long
    3.52 +do_xen_version(
    3.53 +    int cmd,
    3.54 +    void *arg);
    3.55 +
    3.56 +extern long
    3.57 +do_console_io(
    3.58 +    int cmd,
    3.59 +    int count,
    3.60 +    char *buffer);
    3.61 +
    3.62 +extern long
    3.63 +do_grant_table_op(
    3.64 +    unsigned int cmd,
    3.65 +    void *uop,
    3.66 +    unsigned int count);
    3.67 +
    3.68 +extern long
    3.69 +do_vm_assist(
    3.70 +    unsigned int cmd,
    3.71 +    unsigned int type);
    3.72 +
    3.73 +extern long
    3.74 +do_vcpu_op(
    3.75 +    int cmd,
    3.76 +    int vcpuid,
    3.77 +    void *arg);
    3.78 +
    3.79 +struct acm_op;
    3.80 +extern long
    3.81 +do_acm_op(
    3.82 +    struct acm_op *u_acm_op);
    3.83 +
    3.84 +extern long
    3.85 +do_nmi_op(
    3.86 +    unsigned int cmd,
    3.87 +    void *arg);
    3.88 +
    3.89 +#endif /* __XEN_HYPERCALL_H__ */