ia64/xen-unstable

changeset 11703:bacae4057790

[IA64] Renumber dom0vp hypercalls and reformat comments.

(Adding a perfc will be easier with a compact numbering).

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
author awilliam@xenbuild.aw
date Mon Oct 02 14:04:39 2006 -0600 (2006-10-02)
parents 5c97ef4c7147
children c3f71a4ed653
files xen/include/public/arch-ia64.h
line diff
     1.1 --- a/xen/include/public/arch-ia64.h	Mon Oct 02 14:03:42 2006 -0600
     1.2 +++ b/xen/include/public/arch-ia64.h	Mon Oct 02 14:04:39 2006 -0600
     1.3 @@ -336,33 +336,30 @@ struct vcpu_guest_context {
     1.4  typedef struct vcpu_guest_context vcpu_guest_context_t;
     1.5  DEFINE_XEN_GUEST_HANDLE(vcpu_guest_context_t);
     1.6  
     1.7 -// dom0 vp op
     1.8 +/* dom0 vp op */
     1.9  #define __HYPERVISOR_ia64_dom0vp_op     __HYPERVISOR_arch_0
    1.10 -#define IA64_DOM0VP_ioremap             0       // map io space in machine
    1.11 -                                                // address to dom0 physical
    1.12 -                                                // address space.
    1.13 -                                                // currently physical
    1.14 -                                                // assignedg address equals to
    1.15 -                                                // machine address
    1.16 -#define IA64_DOM0VP_phystomach          1       // convert a pseudo physical
    1.17 -                                                // page frame number
    1.18 -                                                // to the corresponding
    1.19 -                                                // machine page frame number.
    1.20 -                                                // if no page is assigned,
    1.21 -                                                // INVALID_MFN or GPFN_INV_MASK
    1.22 -                                                // is returned depending on
    1.23 -                                                // domain's non-vti/vti mode.
    1.24 -#define IA64_DOM0VP_machtophys          3       // convert a machine page
    1.25 -                                                // frame number
    1.26 -                                                // to the corresponding
    1.27 -                                                // pseudo physical page frame
    1.28 -                                                // number of the caller domain
    1.29 -#define IA64_DOM0VP_zap_physmap         17      // unmap and free pages
    1.30 -                                                // contained in the specified
    1.31 -                                                // pseudo physical region
    1.32 -#define IA64_DOM0VP_add_physmap         18      // assigne machine page frane
    1.33 -                                                // to dom0's pseudo physical
    1.34 -                                                // address space.
    1.35 +/*  Map io space in machine address to dom0 physical address space.
    1.36 +    Currently physical assigned address equals to machine address.  */
    1.37 +#define IA64_DOM0VP_ioremap             0
    1.38 +
    1.39 +/* Convert a pseudo physical page frame number to the corresponding
    1.40 +   machine page frame number. If no page is assigned, INVALID_MFN or
    1.41 +   GPFN_INV_MASK is returned depending on domain's non-vti/vti mode.  */
    1.42 +#define IA64_DOM0VP_phystomach          1
    1.43 +
    1.44 +/* Convert a machine page frame number to the corresponding pseudo physical
    1.45 +   page frame number of the caller domain.  */
    1.46 +#define IA64_DOM0VP_machtophys          3
    1.47 +
    1.48 +/* Reserved for future use.  */
    1.49 +#define IA64_DOM0VP_iounmap             4
    1.50 +
    1.51 +/* Unmap and free pages contained in the specified pseudo physical region.  */
    1.52 +#define IA64_DOM0VP_zap_physmap         5
    1.53 +
    1.54 +/* Assign machine page frame to dom0's pseudo physical address space.  */
    1.55 +#define IA64_DOM0VP_add_physmap         6
    1.56 +
    1.57  // flags for page assignement to pseudo physical address space
    1.58  #define _ASSIGN_readonly                0
    1.59  #define ASSIGN_readonly                 (1UL << _ASSIGN_readonly)