ia64/xen-unstable

changeset 10124:e99987843336

Finish separating the typedefs from structure definitions in Xen public headers.
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
author kaf24@firebug.cl.cam.ac.uk
date Sun May 21 18:57:42 2006 +0100 (2006-05-21)
parents d9f63f9361c4
children 0f16f0871dc9
files xen/include/public/acm_ops.h xen/include/public/arch-ia64.h xen/include/public/callback.h xen/include/public/dom0_ops.h xen/include/public/event_channel.h xen/include/public/grant_table.h xen/include/public/hvm/ioreq.h xen/include/public/hvm/vmx_assist.h xen/include/public/io/blkif.h xen/include/public/io/tpmif.h xen/include/public/memory.h xen/include/public/nmi.h xen/include/public/physdev.h xen/include/public/sched.h xen/include/public/vcpu.h xen/include/public/version.h xen/include/public/xenoprof.h
line diff
     1.1 --- a/xen/include/public/acm_ops.h	Sun May 21 18:55:14 2006 +0100
     1.2 +++ b/xen/include/public/acm_ops.h	Sun May 21 18:57:42 2006 +0100
     1.3 @@ -72,7 +72,7 @@ struct acm_getdecision {
     1.4      int acm_decision;           /* out */
     1.5  };
     1.6  
     1.7 -typedef struct acm_op {
     1.8 +struct acm_op {
     1.9      uint32_t cmd;
    1.10      uint32_t interface_version;      /* ACM_INTERFACE_VERSION */
    1.11      union {
    1.12 @@ -82,7 +82,8 @@ typedef struct acm_op {
    1.13          struct acm_getssid getssid;
    1.14          struct acm_getdecision getdecision;
    1.15      } u;
    1.16 -} acm_op_t;
    1.17 +};
    1.18 +typedef struct acm_op acm_op_t;
    1.19  DEFINE_XEN_GUEST_HANDLE(acm_op_t);
    1.20  
    1.21  #endif                          /* __XEN_PUBLIC_ACM_OPS_H__ */
     2.1 --- a/xen/include/public/arch-ia64.h	Sun May 21 18:55:14 2006 +0100
     2.2 +++ b/xen/include/public/arch-ia64.h	Sun May 21 18:57:42 2006 +0100
     2.3 @@ -38,15 +38,17 @@ DEFINE_XEN_GUEST_HANDLE(void);
     2.4  #ifndef __ASSEMBLY__
     2.5  
     2.6  #define MAX_NR_SECTION  32  /* at most 32 memory holes */
     2.7 -typedef struct {
     2.8 +struct mm_section {
     2.9      unsigned long start;  /* start of memory hole */
    2.10      unsigned long end;    /* end of memory hole */
    2.11 -} mm_section_t;
    2.12 +};
    2.13 +typedef struct mm_section mm_section_t;
    2.14  
    2.15 -typedef struct {
    2.16 +struct pmt_entry {
    2.17      unsigned long mfn : 56;
    2.18      unsigned long type: 8;
    2.19 -} pmt_entry_t;
    2.20 +};
    2.21 +typedef struct pmt_entry pmt_entry_t;
    2.22  
    2.23  #define GPFN_MEM          (0UL << 56) /* Guest pfn is normal mem */
    2.24  #define GPFN_FRAME_BUFFER (1UL << 56) /* VGA framebuffer */
    2.25 @@ -93,10 +95,11 @@ typedef struct {
    2.26   * NB. This may become a 64-bit count with no shift. If this happens then the 
    2.27   * structure size will still be 8 bytes, so no other alignments will change.
    2.28   */
    2.29 -typedef struct {
    2.30 +struct tsc_timestamp {
    2.31      unsigned int  tsc_bits;      /* 0: 32 bits read from the CPU's TSC. */
    2.32      unsigned int  tsc_bitshift;  /* 4: 'tsc_bits' uses N:N+31 of TSC.   */
    2.33 -} tsc_timestamp_t; /* 8 bytes */
    2.34 +}; /* 8 bytes */
    2.35 +typedef struct tsc_timestamp tsc_timestamp_t;
    2.36  
    2.37  struct pt_fpreg {
    2.38      union {
    2.39 @@ -105,7 +108,7 @@ struct pt_fpreg {
    2.40      } u;
    2.41  };
    2.42  
    2.43 -typedef struct cpu_user_regs{
    2.44 +struct cpu_user_regs {
    2.45      /* The following registers are saved by SAVE_MIN: */
    2.46      unsigned long b6;  /* scratch */
    2.47      unsigned long b7;  /* scratch */
    2.48 @@ -179,9 +182,10 @@ typedef struct cpu_user_regs{
    2.49      unsigned long eml_unat;    /* used for emulating instruction */
    2.50      unsigned long rfi_pfs;     /* used for elulating rfi */
    2.51  
    2.52 -}cpu_user_regs_t;
    2.53 +};
    2.54 +typedef struct cpu_user_regs cpu_user_regs_t;
    2.55  
    2.56 -typedef union {
    2.57 +union vac {
    2.58      unsigned long value;
    2.59      struct {
    2.60          int a_int:1;
    2.61 @@ -193,9 +197,10 @@ typedef union {
    2.62          int a_bsw:1;
    2.63          long reserved:57;
    2.64      };
    2.65 -} vac_t;
    2.66 +};
    2.67 +typedef union vac vac_t;
    2.68  
    2.69 -typedef union {
    2.70 +union vdc {
    2.71      unsigned long value;
    2.72      struct {
    2.73          int d_vmsw:1;
    2.74 @@ -206,11 +211,12 @@ typedef union {
    2.75          int d_itm:1;
    2.76          long reserved:58;
    2.77      };
    2.78 -} vdc_t;
    2.79 +};
    2.80 +typedef union vdc vdc_t;
    2.81  
    2.82 -typedef struct {
    2.83 -    vac_t   vac;
    2.84 -    vdc_t   vdc;
    2.85 +struct mapped_regs {
    2.86 +    union vac   vac;
    2.87 +    union vdc   vdc;
    2.88      unsigned long  virt_env_vaddr;
    2.89      unsigned long  reserved1[29];
    2.90      unsigned long  vhpi;
    2.91 @@ -290,27 +296,31 @@ typedef struct {
    2.92      unsigned long  reserved6[3456];
    2.93      unsigned long  vmm_avail[128];
    2.94      unsigned long  reserved7[4096];
    2.95 -} mapped_regs_t;
    2.96 +};
    2.97 +typedef struct mapped_regs mapped_regs_t;
    2.98  
    2.99 -typedef struct {
   2.100 -    mapped_regs_t *privregs;
   2.101 +struct arch_vcpu_info {
   2.102 +    struct mapped_regs *privregs;
   2.103      int evtchn_vector;
   2.104 -} arch_vcpu_info_t;
   2.105 +};
   2.106 +typedef struct arch_vcpu_info arch_vcpu_info_t;
   2.107  
   2.108  typedef mapped_regs_t vpd_t;
   2.109  
   2.110 -typedef struct {
   2.111 +struct arch_shared_info {
   2.112      unsigned int flags;
   2.113      unsigned long start_info_pfn;
   2.114 -} arch_shared_info_t;
   2.115 +};
   2.116 +typedef struct arch_shared_info arch_shared_info_t;
   2.117  
   2.118 -typedef struct {
   2.119 +struct arch_initrd_info {
   2.120      unsigned long start;
   2.121      unsigned long size;
   2.122 -} arch_initrd_info_t;
   2.123 +};
   2.124 +typedef struct arch_initrd_info arch_initrd_info_t;
   2.125  
   2.126  #define IA64_COMMAND_LINE_SIZE 512
   2.127 -typedef struct vcpu_guest_context {
   2.128 +struct vcpu_guest_context {
   2.129  #define VGCF_FPU_VALID (1<<0)
   2.130  #define VGCF_VMX_GUEST (1<<1)
   2.131  #define VGCF_IN_KERNEL (1<<2)
   2.132 @@ -320,12 +330,13 @@ typedef struct vcpu_guest_context {
   2.133      unsigned long sys_pgnr;    /* System pages out of domain memory */
   2.134      unsigned long vm_assist;   /* VMASST_TYPE_* bitmap, now none on IPF */
   2.135  
   2.136 -    cpu_user_regs_t regs;
   2.137 -    arch_vcpu_info_t vcpu;
   2.138 -    arch_shared_info_t shared;
   2.139 -    arch_initrd_info_t initrd;
   2.140 +    struct cpu_user_regs regs;
   2.141 +    struct arch_vcpu_info vcpu;
   2.142 +    struct arch_shared_info shared;
   2.143 +    struct arch_initrd_info initrd;
   2.144      char cmdline[IA64_COMMAND_LINE_SIZE];
   2.145 -} vcpu_guest_context_t;
   2.146 +};
   2.147 +typedef struct vcpu_guest_context vcpu_guest_context_t;
   2.148  DEFINE_XEN_GUEST_HANDLE(vcpu_guest_context_t);
   2.149  
   2.150  // dom0 vp op
     3.1 --- a/xen/include/public/callback.h	Sun May 21 18:55:14 2006 +0100
     3.2 +++ b/xen/include/public/callback.h	Sun May 21 18:57:42 2006 +0100
     3.3 @@ -32,10 +32,11 @@
     3.4   * Register a callback.
     3.5   */
     3.6  #define CALLBACKOP_register                0
     3.7 -typedef struct callback_register {
     3.8 +struct callback_register {
     3.9       int type;
    3.10       xen_callback_t address;
    3.11 -} callback_register_t;
    3.12 +};
    3.13 +typedef struct callback_register callback_register_t;
    3.14  DEFINE_XEN_GUEST_HANDLE(callback_register_t);
    3.15  
    3.16  /*
    3.17 @@ -45,9 +46,10 @@ DEFINE_XEN_GUEST_HANDLE(callback_registe
    3.18   * you attempt to unregister such a callback.
    3.19   */
    3.20  #define CALLBACKOP_unregister              1
    3.21 -typedef struct callback_unregister {
    3.22 +struct callback_unregister {
    3.23       int type;
    3.24 -} callback_unregister_t;
    3.25 +};
    3.26 +typedef struct callback_unregister callback_unregister_t;
    3.27  DEFINE_XEN_GUEST_HANDLE(callback_unregister_t);
    3.28  
    3.29  #endif /* __XEN_PUBLIC_CALLBACK_H__ */
     4.1 --- a/xen/include/public/dom0_ops.h	Sun May 21 18:55:14 2006 +0100
     4.2 +++ b/xen/include/public/dom0_ops.h	Sun May 21 18:57:42 2006 +0100
     4.3 @@ -24,14 +24,15 @@
     4.4  /************************************************************************/
     4.5  
     4.6  #define DOM0_GETMEMLIST        2
     4.7 -typedef struct dom0_getmemlist {
     4.8 +struct dom0_getmemlist {
     4.9      /* IN variables. */
    4.10      domid_t       domain;
    4.11      unsigned long max_pfns;
    4.12      XEN_GUEST_HANDLE(ulong) buffer;
    4.13      /* OUT variables. */
    4.14      unsigned long num_pfns;
    4.15 -} dom0_getmemlist_t;
    4.16 +};
    4.17 +typedef struct dom0_getmemlist dom0_getmemlist_t;
    4.18  DEFINE_XEN_GUEST_HANDLE(dom0_getmemlist_t);
    4.19  
    4.20  #define DOM0_SCHEDCTL          6
    4.21 @@ -45,39 +46,43 @@ typedef struct sched_adjdom_cmd dom0_adj
    4.22  DEFINE_XEN_GUEST_HANDLE(dom0_adjustdom_t);
    4.23  
    4.24  #define DOM0_CREATEDOMAIN      8
    4.25 -typedef struct dom0_createdomain {
    4.26 +struct dom0_createdomain {
    4.27      /* IN parameters */
    4.28      uint32_t ssidref;
    4.29      xen_domain_handle_t handle;
    4.30      /* IN/OUT parameters. */
    4.31      /* Identifier for new domain (auto-allocate if zero is specified). */
    4.32      domid_t domain;
    4.33 -} dom0_createdomain_t;
    4.34 +};
    4.35 +typedef struct dom0_createdomain dom0_createdomain_t;
    4.36  DEFINE_XEN_GUEST_HANDLE(dom0_createdomain_t);
    4.37  
    4.38  #define DOM0_DESTROYDOMAIN     9
    4.39 -typedef struct dom0_destroydomain {
    4.40 +struct dom0_destroydomain {
    4.41      /* IN variables. */
    4.42      domid_t domain;
    4.43 -} dom0_destroydomain_t;
    4.44 +};
    4.45 +typedef struct dom0_destroydomain dom0_destroydomain_t;
    4.46  DEFINE_XEN_GUEST_HANDLE(dom0_destroydomain_t);
    4.47  
    4.48  #define DOM0_PAUSEDOMAIN      10
    4.49 -typedef struct dom0_pausedomain {
    4.50 +struct dom0_pausedomain {
    4.51      /* IN parameters. */
    4.52      domid_t domain;
    4.53 -} dom0_pausedomain_t;
    4.54 +};
    4.55 +typedef struct dom0_pausedomain dom0_pausedomain_t;
    4.56  DEFINE_XEN_GUEST_HANDLE(dom0_pausedomain_t);
    4.57  
    4.58  #define DOM0_UNPAUSEDOMAIN    11
    4.59 -typedef struct dom0_unpausedomain {
    4.60 +struct dom0_unpausedomain {
    4.61      /* IN parameters. */
    4.62      domid_t domain;
    4.63 -} dom0_unpausedomain_t;
    4.64 +};
    4.65 +typedef struct dom0_unpausedomain dom0_unpausedomain_t;
    4.66  DEFINE_XEN_GUEST_HANDLE(dom0_unpausedomain_t);
    4.67  
    4.68  #define DOM0_GETDOMAININFO    12
    4.69 -typedef struct dom0_getdomaininfo {
    4.70 +struct dom0_getdomaininfo {
    4.71      /* IN variables. */
    4.72      domid_t  domain;                  /* NB. IN/OUT variable. */
    4.73      /* OUT variables. */
    4.74 @@ -99,21 +104,23 @@ typedef struct dom0_getdomaininfo {
    4.75      uint32_t max_vcpu_id;         /* Maximum VCPUID in use by this domain. */
    4.76      uint32_t ssidref;
    4.77      xen_domain_handle_t handle;
    4.78 -} dom0_getdomaininfo_t;
    4.79 +};
    4.80 +typedef struct dom0_getdomaininfo dom0_getdomaininfo_t;
    4.81  DEFINE_XEN_GUEST_HANDLE(dom0_getdomaininfo_t);
    4.82  
    4.83  #define DOM0_SETVCPUCONTEXT   13
    4.84 -typedef struct dom0_setvcpucontext {
    4.85 +struct dom0_setvcpucontext {
    4.86      /* IN variables. */
    4.87      domid_t               domain;
    4.88      uint32_t              vcpu;
    4.89      /* IN/OUT parameters */
    4.90      XEN_GUEST_HANDLE(vcpu_guest_context_t) ctxt;
    4.91 -} dom0_setvcpucontext_t;
    4.92 +};
    4.93 +typedef struct dom0_setvcpucontext dom0_setvcpucontext_t;
    4.94  DEFINE_XEN_GUEST_HANDLE(dom0_setvcpucontext_t);
    4.95  
    4.96  #define DOM0_MSR              15
    4.97 -typedef struct dom0_msr {
    4.98 +struct dom0_msr {
    4.99      /* IN variables. */
   4.100      uint32_t write;
   4.101      cpumap_t cpu_mask;
   4.102 @@ -123,7 +130,8 @@ typedef struct dom0_msr {
   4.103      /* OUT variables. */
   4.104      uint32_t out1;
   4.105      uint32_t out2;
   4.106 -} dom0_msr_t;
   4.107 +};
   4.108 +typedef struct dom0_msr dom0_msr_t;
   4.109  DEFINE_XEN_GUEST_HANDLE(dom0_msr_t);
   4.110  
   4.111  /*
   4.112 @@ -131,12 +139,13 @@ DEFINE_XEN_GUEST_HANDLE(dom0_msr_t);
   4.113   * 1 January, 1970 if the current system time was <system_time>.
   4.114   */
   4.115  #define DOM0_SETTIME          17
   4.116 -typedef struct dom0_settime {
   4.117 +struct dom0_settime {
   4.118      /* IN variables. */
   4.119      uint32_t secs;
   4.120      uint32_t nsecs;
   4.121      uint64_t system_time;
   4.122 -} dom0_settime_t;
   4.123 +};
   4.124 +typedef struct dom0_settime dom0_settime_t;
   4.125  DEFINE_XEN_GUEST_HANDLE(dom0_settime_t);
   4.126  
   4.127  #define DOM0_GETPAGEFRAMEINFO 18
   4.128 @@ -151,44 +160,47 @@ DEFINE_XEN_GUEST_HANDLE(dom0_settime_t);
   4.129  #define LTAB_MASK XTAB
   4.130  #define LTABTYPE_MASK (0x7<<LTAB_SHIFT)
   4.131  
   4.132 -typedef struct dom0_getpageframeinfo {
   4.133 +struct dom0_getpageframeinfo {
   4.134      /* IN variables. */
   4.135      unsigned long mfn;     /* Machine page frame number to query.       */
   4.136      domid_t domain;        /* To which domain does the frame belong?    */
   4.137      /* OUT variables. */
   4.138      /* Is the page PINNED to a type? */
   4.139      uint32_t type;         /* see above type defs */
   4.140 -} dom0_getpageframeinfo_t;
   4.141 +};
   4.142 +typedef struct dom0_getpageframeinfo dom0_getpageframeinfo_t;
   4.143  DEFINE_XEN_GUEST_HANDLE(dom0_getpageframeinfo_t);
   4.144  
   4.145  /*
   4.146   * Read console content from Xen buffer ring.
   4.147   */
   4.148  #define DOM0_READCONSOLE      19
   4.149 -typedef struct dom0_readconsole {
   4.150 +struct dom0_readconsole {
   4.151      /* IN variables. */
   4.152      uint32_t clear;            /* Non-zero -> clear after reading. */
   4.153      /* IN/OUT variables. */
   4.154      XEN_GUEST_HANDLE(char) buffer; /* In: Buffer start; Out: Used buffer start */
   4.155      uint32_t count;            /* In: Buffer size;  Out: Used buffer size  */
   4.156 -} dom0_readconsole_t;
   4.157 +};
   4.158 +typedef struct dom0_readconsole dom0_readconsole_t;
   4.159  DEFINE_XEN_GUEST_HANDLE(dom0_readconsole_t);
   4.160  
   4.161  /*
   4.162   * Set which physical cpus a vcpu can execute on.
   4.163   */
   4.164  #define DOM0_SETVCPUAFFINITY  20
   4.165 -typedef struct dom0_setvcpuaffinity {
   4.166 +struct dom0_setvcpuaffinity {
   4.167      /* IN variables. */
   4.168      domid_t   domain;
   4.169      uint32_t  vcpu;
   4.170      cpumap_t  cpumap;
   4.171 -} dom0_setvcpuaffinity_t;
   4.172 +};
   4.173 +typedef struct dom0_setvcpuaffinity dom0_setvcpuaffinity_t;
   4.174  DEFINE_XEN_GUEST_HANDLE(dom0_setvcpuaffinity_t);
   4.175  
   4.176  /* Get trace buffers machine base address */
   4.177  #define DOM0_TBUFCONTROL       21
   4.178 -typedef struct dom0_tbufcontrol {
   4.179 +struct dom0_tbufcontrol {
   4.180      /* IN variables */
   4.181  #define DOM0_TBUF_GET_INFO     0
   4.182  #define DOM0_TBUF_SET_CPU_MASK 1
   4.183 @@ -203,14 +215,15 @@ typedef struct dom0_tbufcontrol {
   4.184      /* OUT variables */
   4.185      unsigned long buffer_mfn;
   4.186      uint32_t size;
   4.187 -} dom0_tbufcontrol_t;
   4.188 +};
   4.189 +typedef struct dom0_tbufcontrol dom0_tbufcontrol_t;
   4.190  DEFINE_XEN_GUEST_HANDLE(dom0_tbufcontrol_t);
   4.191  
   4.192  /*
   4.193   * Get physical information about the host machine
   4.194   */
   4.195  #define DOM0_PHYSINFO         22
   4.196 -typedef struct dom0_physinfo {
   4.197 +struct dom0_physinfo {
   4.198      uint32_t threads_per_core;
   4.199      uint32_t cores_per_socket;
   4.200      uint32_t sockets_per_node;
   4.201 @@ -219,17 +232,19 @@ typedef struct dom0_physinfo {
   4.202      unsigned long total_pages;
   4.203      unsigned long free_pages;
   4.204      uint32_t hw_cap[8];
   4.205 -} dom0_physinfo_t;
   4.206 +};
   4.207 +typedef struct dom0_physinfo dom0_physinfo_t;
   4.208  DEFINE_XEN_GUEST_HANDLE(dom0_physinfo_t);
   4.209  
   4.210  /*
   4.211   * Get the ID of the current scheduler.
   4.212   */
   4.213  #define DOM0_SCHED_ID        24
   4.214 -typedef struct dom0_sched_id {
   4.215 +struct dom0_sched_id {
   4.216      /* OUT variable */
   4.217      uint32_t sched_id;
   4.218 -} dom0_sched_id_t;
   4.219 +};
   4.220 +typedef struct dom0_physinfo dom0_sched_id_t;
   4.221  DEFINE_XEN_GUEST_HANDLE(dom0_sched_id_t);
   4.222  
   4.223  /*
   4.224 @@ -246,15 +261,16 @@ DEFINE_XEN_GUEST_HANDLE(dom0_sched_id_t)
   4.225  #define DOM0_SHADOW_CONTROL_OP_CLEAN       11
   4.226  #define DOM0_SHADOW_CONTROL_OP_PEEK        12
   4.227  
   4.228 -typedef struct dom0_shadow_control_stats {
   4.229 +struct dom0_shadow_control_stats {
   4.230      uint32_t fault_count;
   4.231      uint32_t dirty_count;
   4.232      uint32_t dirty_net_count;
   4.233      uint32_t dirty_block_count;
   4.234 -} dom0_shadow_control_stats_t;
   4.235 +};
   4.236 +typedef struct dom0_shadow_control_stats dom0_shadow_control_stats_t;
   4.237  DEFINE_XEN_GUEST_HANDLE(dom0_shadow_control_stats_t);
   4.238  
   4.239 -typedef struct dom0_shadow_control {
   4.240 +struct dom0_shadow_control {
   4.241      /* IN variables. */
   4.242      domid_t        domain;
   4.243      uint32_t       op;
   4.244 @@ -262,26 +278,29 @@ typedef struct dom0_shadow_control {
   4.245      /* IN/OUT variables. */
   4.246      unsigned long  pages;        /* size of buffer, updated with actual size */
   4.247      /* OUT variables. */
   4.248 -    dom0_shadow_control_stats_t stats;
   4.249 -} dom0_shadow_control_t;
   4.250 +    struct dom0_shadow_control_stats stats;
   4.251 +};
   4.252 +typedef struct dom0_shadow_control dom0_shadow_control_t;
   4.253  DEFINE_XEN_GUEST_HANDLE(dom0_shadow_control_t);
   4.254  
   4.255  #define DOM0_SETDOMAINMAXMEM   28
   4.256 -typedef struct dom0_setdomainmaxmem {
   4.257 +struct dom0_setdomainmaxmem {
   4.258      /* IN variables. */
   4.259      domid_t       domain;
   4.260      unsigned long max_memkb;
   4.261 -} dom0_setdomainmaxmem_t;
   4.262 +};
   4.263 +typedef struct dom0_setdomainmaxmem dom0_setdomainmaxmem_t;
   4.264  DEFINE_XEN_GUEST_HANDLE(dom0_setdomainmaxmem_t);
   4.265  
   4.266  #define DOM0_GETPAGEFRAMEINFO2 29   /* batched interface */
   4.267 -typedef struct dom0_getpageframeinfo2 {
   4.268 +struct dom0_getpageframeinfo2 {
   4.269      /* IN variables. */
   4.270      domid_t        domain;
   4.271      unsigned long  num;
   4.272      /* IN/OUT variables. */
   4.273      XEN_GUEST_HANDLE(ulong) array;
   4.274 -} dom0_getpageframeinfo2_t;
   4.275 +};
   4.276 +typedef struct dom0_getpageframeinfo2 dom0_getpageframeinfo2_t;
   4.277  DEFINE_XEN_GUEST_HANDLE(dom0_getpageframeinfo2_t);
   4.278  
   4.279  /*
   4.280 @@ -292,7 +311,7 @@ DEFINE_XEN_GUEST_HANDLE(dom0_getpagefram
   4.281   * (x86-specific).
   4.282   */
   4.283  #define DOM0_ADD_MEMTYPE         31
   4.284 -typedef struct dom0_add_memtype {
   4.285 +struct dom0_add_memtype {
   4.286      /* IN variables. */
   4.287      unsigned long mfn;
   4.288      unsigned long nr_mfns;
   4.289 @@ -300,7 +319,8 @@ typedef struct dom0_add_memtype {
   4.290      /* OUT variables. */
   4.291      uint32_t      handle;
   4.292      uint32_t      reg;
   4.293 -} dom0_add_memtype_t;
   4.294 +};
   4.295 +typedef struct dom0_add_memtype dom0_add_memtype_t;
   4.296  DEFINE_XEN_GUEST_HANDLE(dom0_add_memtype_t);
   4.297  
   4.298  /*
   4.299 @@ -311,23 +331,25 @@ DEFINE_XEN_GUEST_HANDLE(dom0_add_memtype
   4.300   * (x86-specific).
   4.301   */
   4.302  #define DOM0_DEL_MEMTYPE         32
   4.303 -typedef struct dom0_del_memtype {
   4.304 +struct dom0_del_memtype {
   4.305      /* IN variables. */
   4.306      uint32_t handle;
   4.307      uint32_t reg;
   4.308 -} dom0_del_memtype_t;
   4.309 +};
   4.310 +typedef struct dom0_del_memtype dom0_del_memtype_t;
   4.311  DEFINE_XEN_GUEST_HANDLE(dom0_del_memtype_t);
   4.312  
   4.313  /* Read current type of an MTRR (x86-specific). */
   4.314  #define DOM0_READ_MEMTYPE        33
   4.315 -typedef struct dom0_read_memtype {
   4.316 +struct dom0_read_memtype {
   4.317      /* IN variables. */
   4.318      uint32_t reg;
   4.319      /* OUT variables. */
   4.320      unsigned long mfn;
   4.321      unsigned long nr_mfns;
   4.322      uint32_t type;
   4.323 -} dom0_read_memtype_t;
   4.324 +};
   4.325 +typedef struct dom0_read_memtype dom0_read_memtype_t;
   4.326  DEFINE_XEN_GUEST_HANDLE(dom0_read_memtype_t);
   4.327  
   4.328  /* Interface for controlling Xen software performance counters. */
   4.329 @@ -335,50 +357,56 @@ DEFINE_XEN_GUEST_HANDLE(dom0_read_memtyp
   4.330  /* Sub-operations: */
   4.331  #define DOM0_PERFCCONTROL_OP_RESET 1   /* Reset all counters to zero. */
   4.332  #define DOM0_PERFCCONTROL_OP_QUERY 2   /* Get perfctr information. */
   4.333 -typedef struct dom0_perfc_desc {
   4.334 +struct dom0_perfc_desc {
   4.335      char         name[80];             /* name of perf counter */
   4.336      uint32_t     nr_vals;              /* number of values for this counter */
   4.337      uint32_t     vals[64];             /* array of values */
   4.338 -} dom0_perfc_desc_t;
   4.339 +};
   4.340 +typedef struct dom0_perfc_desc dom0_perfc_desc_t;
   4.341  DEFINE_XEN_GUEST_HANDLE(dom0_perfc_desc_t);
   4.342 -typedef struct dom0_perfccontrol {
   4.343 +
   4.344 +struct dom0_perfccontrol {
   4.345      /* IN variables. */
   4.346      uint32_t       op;                /*  DOM0_PERFCCONTROL_OP_??? */
   4.347      /* OUT variables. */
   4.348      uint32_t       nr_counters;       /*  number of counters */
   4.349      XEN_GUEST_HANDLE(dom0_perfc_desc_t) desc; /*  counter information (or NULL) */
   4.350 -} dom0_perfccontrol_t;
   4.351 +};
   4.352 +typedef struct dom0_perfccontrol dom0_perfccontrol_t;
   4.353  DEFINE_XEN_GUEST_HANDLE(dom0_perfccontrol_t);
   4.354  
   4.355  #define DOM0_MICROCODE           35
   4.356 -typedef struct dom0_microcode {
   4.357 +struct dom0_microcode {
   4.358      /* IN variables. */
   4.359      XEN_GUEST_HANDLE(void) data;          /* Pointer to microcode data */
   4.360      uint32_t length;                  /* Length of microcode data. */
   4.361 -} dom0_microcode_t;
   4.362 +};
   4.363 +typedef struct dom0_microcode dom0_microcode_t;
   4.364  DEFINE_XEN_GUEST_HANDLE(dom0_microcode_t);
   4.365  
   4.366  #define DOM0_IOPORT_PERMISSION   36
   4.367 -typedef struct dom0_ioport_permission {
   4.368 +struct dom0_ioport_permission {
   4.369      domid_t  domain;                  /* domain to be affected */
   4.370      uint32_t first_port;              /* first port int range */
   4.371      uint32_t nr_ports;                /* size of port range */
   4.372      uint8_t  allow_access;            /* allow or deny access to range? */
   4.373 -} dom0_ioport_permission_t;
   4.374 +};
   4.375 +typedef struct dom0_ioport_permission dom0_ioport_permission_t;
   4.376  DEFINE_XEN_GUEST_HANDLE(dom0_ioport_permission_t);
   4.377  
   4.378  #define DOM0_GETVCPUCONTEXT      37
   4.379 -typedef struct dom0_getvcpucontext {
   4.380 +struct dom0_getvcpucontext {
   4.381      /* IN variables. */
   4.382      domid_t  domain;                  /* domain to be affected */
   4.383      uint32_t vcpu;                    /* vcpu # */
   4.384      /* OUT variables. */
   4.385      XEN_GUEST_HANDLE(vcpu_guest_context_t) ctxt;
   4.386 -} dom0_getvcpucontext_t;
   4.387 +};
   4.388 +typedef struct dom0_getvcpucontext dom0_getvcpucontext_t;
   4.389  DEFINE_XEN_GUEST_HANDLE(dom0_getvcpucontext_t);
   4.390  
   4.391  #define DOM0_GETVCPUINFO         43
   4.392 -typedef struct dom0_getvcpuinfo {
   4.393 +struct dom0_getvcpuinfo {
   4.394      /* IN variables. */
   4.395      domid_t  domain;                  /* domain to be affected */
   4.396      uint32_t vcpu;                    /* vcpu # */
   4.397 @@ -389,92 +417,104 @@ typedef struct dom0_getvcpuinfo {
   4.398      uint64_t cpu_time;                /* total cpu time consumed (ns) */
   4.399      uint32_t cpu;                     /* current mapping   */
   4.400      cpumap_t cpumap;                  /* allowable mapping */
   4.401 -} dom0_getvcpuinfo_t;
   4.402 +};
   4.403 +typedef struct dom0_getvcpuinfo dom0_getvcpuinfo_t;
   4.404  DEFINE_XEN_GUEST_HANDLE(dom0_getvcpuinfo_t);
   4.405  
   4.406  #define DOM0_GETDOMAININFOLIST   38
   4.407 -typedef struct dom0_getdomaininfolist {
   4.408 +struct dom0_getdomaininfolist {
   4.409      /* IN variables. */
   4.410      domid_t               first_domain;
   4.411      uint32_t              max_domains;
   4.412      XEN_GUEST_HANDLE(dom0_getdomaininfo_t) buffer;
   4.413      /* OUT variables. */
   4.414      uint32_t              num_domains;
   4.415 -} dom0_getdomaininfolist_t;
   4.416 +};
   4.417 +typedef struct dom0_getdomaininfolist dom0_getdomaininfolist_t;
   4.418  DEFINE_XEN_GUEST_HANDLE(dom0_getdomaininfolist_t);
   4.419  
   4.420  #define DOM0_PLATFORM_QUIRK      39
   4.421  #define QUIRK_NOIRQBALANCING      1 /* Do not restrict IO-APIC RTE targets */
   4.422  #define QUIRK_IOAPIC_BAD_REGSEL   2 /* IO-APIC REGSEL forgets its value    */
   4.423  #define QUIRK_IOAPIC_GOOD_REGSEL  3 /* IO-APIC REGSEL behaves properly     */
   4.424 -typedef struct dom0_platform_quirk {
   4.425 +struct dom0_platform_quirk {
   4.426      /* IN variables. */
   4.427      uint32_t quirk_id;
   4.428 -} dom0_platform_quirk_t;
   4.429 +};
   4.430 +typedef struct dom0_platform_quirk dom0_platform_quirk_t;
   4.431  DEFINE_XEN_GUEST_HANDLE(dom0_platform_quirk_t);
   4.432  
   4.433  #define DOM0_PHYSICAL_MEMORY_MAP 40
   4.434 -typedef struct dom0_memory_map_entry {
   4.435 +struct dom0_memory_map_entry {
   4.436      uint64_t start, end;
   4.437      uint32_t flags; /* reserved */
   4.438      uint8_t  is_ram;
   4.439 -} dom0_memory_map_entry_t;
   4.440 +};
   4.441 +typedef struct dom0_memory_map_entry dom0_memory_map_entry_t;
   4.442  DEFINE_XEN_GUEST_HANDLE(dom0_memory_map_entry_t);
   4.443 -typedef struct dom0_physical_memory_map {
   4.444 +
   4.445 +struct dom0_physical_memory_map {
   4.446      /* IN variables. */
   4.447      uint32_t max_map_entries;
   4.448      /* OUT variables. */
   4.449      uint32_t nr_map_entries;
   4.450      XEN_GUEST_HANDLE(dom0_memory_map_entry_t) memory_map;
   4.451 -} dom0_physical_memory_map_t;
   4.452 +};
   4.453 +typedef struct dom0_physical_memory_map dom0_physical_memory_map_t;
   4.454  DEFINE_XEN_GUEST_HANDLE(dom0_physical_memory_map_t);
   4.455  
   4.456  #define DOM0_MAX_VCPUS 41
   4.457 -typedef struct dom0_max_vcpus {
   4.458 +struct dom0_max_vcpus {
   4.459      domid_t  domain;        /* domain to be affected */
   4.460      uint32_t max;           /* maximum number of vcpus */
   4.461 -} dom0_max_vcpus_t;
   4.462 +};
   4.463 +typedef struct dom0_max_vcpus dom0_max_vcpus_t;
   4.464  DEFINE_XEN_GUEST_HANDLE(dom0_max_vcpus_t);
   4.465  
   4.466  #define DOM0_SETDOMAINHANDLE 44
   4.467 -typedef struct dom0_setdomainhandle {
   4.468 +struct dom0_setdomainhandle {
   4.469      domid_t domain;
   4.470      xen_domain_handle_t handle;
   4.471 -} dom0_setdomainhandle_t;
   4.472 +};
   4.473 +typedef struct dom0_setdomainhandle dom0_setdomainhandle_t;
   4.474  DEFINE_XEN_GUEST_HANDLE(dom0_setdomainhandle_t);
   4.475  
   4.476  #define DOM0_SETDEBUGGING 45
   4.477 -typedef struct dom0_setdebugging {
   4.478 +struct dom0_setdebugging {
   4.479      domid_t domain;
   4.480      uint8_t enable;
   4.481 -} dom0_setdebugging_t;
   4.482 +};
   4.483 +typedef struct dom0_setdebugging dom0_setdebugging_t;
   4.484  DEFINE_XEN_GUEST_HANDLE(dom0_setdebugging_t);
   4.485  
   4.486  #define DOM0_IRQ_PERMISSION 46
   4.487 -typedef struct dom0_irq_permission {
   4.488 +struct dom0_irq_permission {
   4.489      domid_t domain;          /* domain to be affected */
   4.490      uint8_t pirq;
   4.491      uint8_t allow_access;    /* flag to specify enable/disable of IRQ access */
   4.492 -} dom0_irq_permission_t;
   4.493 +};
   4.494 +typedef struct dom0_irq_permission dom0_irq_permission_t;
   4.495  DEFINE_XEN_GUEST_HANDLE(dom0_irq_permission_t);
   4.496  
   4.497  #define DOM0_IOMEM_PERMISSION 47
   4.498 -typedef struct dom0_iomem_permission {
   4.499 +struct dom0_iomem_permission {
   4.500      domid_t  domain;          /* domain to be affected */
   4.501      unsigned long first_mfn;  /* first page (physical page number) in range */
   4.502      unsigned long nr_mfns;    /* number of pages in range (>0) */
   4.503      uint8_t allow_access;     /* allow (!0) or deny (0) access to range? */
   4.504 -} dom0_iomem_permission_t;
   4.505 +};
   4.506 +typedef struct dom0_iomem_permission dom0_iomem_permission_t;
   4.507  DEFINE_XEN_GUEST_HANDLE(dom0_iomem_permission_t);
   4.508  
   4.509  #define DOM0_HYPERCALL_INIT   48
   4.510 -typedef struct dom0_hypercall_init {
   4.511 +struct dom0_hypercall_init {
   4.512      domid_t  domain;          /* domain to be affected */
   4.513      unsigned long mfn;        /* machine frame to be initialised */
   4.514 -} dom0_hypercall_init_t;
   4.515 +};
   4.516 +typedef struct dom0_hypercall_init dom0_hypercall_init_t;
   4.517  DEFINE_XEN_GUEST_HANDLE(dom0_hypercall_init_t);
   4.518  
   4.519 -typedef struct dom0_op {
   4.520 +struct dom0_op {
   4.521      uint32_t cmd;
   4.522      uint32_t interface_version; /* DOM0_INTERFACE_VERSION */
   4.523      union {
   4.524 @@ -517,7 +557,8 @@ typedef struct dom0_op {
   4.525          struct dom0_hypercall_init    hypercall_init;
   4.526          uint8_t                       pad[128];
   4.527      } u;
   4.528 -} dom0_op_t;
   4.529 +};
   4.530 +typedef struct dom0_op dom0_op_t;
   4.531  DEFINE_XEN_GUEST_HANDLE(dom0_op_t);
   4.532  
   4.533  #endif /* __XEN_PUBLIC_DOM0_OPS_H__ */
     5.1 --- a/xen/include/public/event_channel.h	Sun May 21 18:55:14 2006 +0100
     5.2 +++ b/xen/include/public/event_channel.h	Sun May 21 18:57:42 2006 +0100
     5.3 @@ -28,12 +28,13 @@ DEFINE_XEN_GUEST_HANDLE(evtchn_port_t);
     5.4   *  2. <rdom> may be DOMID_SELF, allowing loopback connections.
     5.5   */
     5.6  #define EVTCHNOP_alloc_unbound    6
     5.7 -typedef struct evtchn_alloc_unbound {
     5.8 +struct evtchn_alloc_unbound {
     5.9      /* IN parameters */
    5.10      domid_t dom, remote_dom;
    5.11      /* OUT parameters */
    5.12      evtchn_port_t port;
    5.13 -} evtchn_alloc_unbound_t;
    5.14 +};
    5.15 +typedef struct evtchn_alloc_unbound evtchn_alloc_unbound_t;
    5.16  
    5.17  /*
    5.18   * EVTCHNOP_bind_interdomain: Construct an interdomain event channel between
    5.19 @@ -45,13 +46,14 @@ typedef struct evtchn_alloc_unbound {
    5.20   *  2. <remote_dom> may be DOMID_SELF, allowing loopback connections.
    5.21   */
    5.22  #define EVTCHNOP_bind_interdomain 0
    5.23 -typedef struct evtchn_bind_interdomain {
    5.24 +struct evtchn_bind_interdomain {
    5.25      /* IN parameters. */
    5.26      domid_t remote_dom;
    5.27      evtchn_port_t remote_port;
    5.28      /* OUT parameters. */
    5.29      evtchn_port_t local_port;
    5.30 -} evtchn_bind_interdomain_t;
    5.31 +};
    5.32 +typedef struct evtchn_bind_interdomain evtchn_bind_interdomain_t;
    5.33  
    5.34  /*
    5.35   * EVTCHNOP_bind_virq: Bind a local event channel to VIRQ <irq> on specified
    5.36 @@ -66,13 +68,14 @@ typedef struct evtchn_bind_interdomain {
    5.37   *     binding cannot be changed.
    5.38   */
    5.39  #define EVTCHNOP_bind_virq        1
    5.40 -typedef struct evtchn_bind_virq {
    5.41 +struct evtchn_bind_virq {
    5.42      /* IN parameters. */
    5.43      uint32_t virq;
    5.44      uint32_t vcpu;
    5.45      /* OUT parameters. */
    5.46      evtchn_port_t port;
    5.47 -} evtchn_bind_virq_t;
    5.48 +};
    5.49 +typedef struct evtchn_bind_virq evtchn_bind_virq_t;
    5.50  
    5.51  /*
    5.52   * EVTCHNOP_bind_pirq: Bind a local event channel to PIRQ <irq>.
    5.53 @@ -81,14 +84,15 @@ typedef struct evtchn_bind_virq {
    5.54   *  2. Only a sufficiently-privileged domain may bind to a physical IRQ.
    5.55   */
    5.56  #define EVTCHNOP_bind_pirq        2
    5.57 -typedef struct evtchn_bind_pirq {
    5.58 +struct evtchn_bind_pirq {
    5.59      /* IN parameters. */
    5.60      uint32_t pirq;
    5.61  #define BIND_PIRQ__WILL_SHARE 1
    5.62      uint32_t flags; /* BIND_PIRQ__* */
    5.63      /* OUT parameters. */
    5.64      evtchn_port_t port;
    5.65 -} evtchn_bind_pirq_t;
    5.66 +};
    5.67 +typedef struct evtchn_bind_pirq evtchn_bind_pirq_t;
    5.68  
    5.69  /*
    5.70   * EVTCHNOP_bind_ipi: Bind a local event channel to receive events.
    5.71 @@ -97,11 +101,12 @@ typedef struct evtchn_bind_pirq {
    5.72   *     may not be changed.
    5.73   */
    5.74  #define EVTCHNOP_bind_ipi         7
    5.75 -typedef struct evtchn_bind_ipi {
    5.76 +struct evtchn_bind_ipi {
    5.77      uint32_t vcpu;
    5.78      /* OUT parameters. */
    5.79      evtchn_port_t port;
    5.80 -} evtchn_bind_ipi_t;
    5.81 +};
    5.82 +typedef struct evtchn_bind_ipi evtchn_bind_ipi_t;
    5.83  
    5.84  /*
    5.85   * EVTCHNOP_close: Close a local event channel <port>. If the channel is
    5.86 @@ -109,20 +114,22 @@ typedef struct evtchn_bind_ipi {
    5.87   * (EVTCHNSTAT_unbound), awaiting a new connection.
    5.88   */
    5.89  #define EVTCHNOP_close            3
    5.90 -typedef struct evtchn_close {
    5.91 +struct evtchn_close {
    5.92      /* IN parameters. */
    5.93      evtchn_port_t port;
    5.94 -} evtchn_close_t;
    5.95 +};
    5.96 +typedef struct evtchn_close evtchn_close_t;
    5.97  
    5.98  /*
    5.99   * EVTCHNOP_send: Send an event to the remote end of the channel whose local
   5.100   * endpoint is <port>.
   5.101   */
   5.102  #define EVTCHNOP_send             4
   5.103 -typedef struct evtchn_send {
   5.104 +struct evtchn_send {
   5.105      /* IN parameters. */
   5.106      evtchn_port_t port;
   5.107 -} evtchn_send_t;
   5.108 +};
   5.109 +typedef struct evtchn_send evtchn_send_t;
   5.110  
   5.111  /*
   5.112   * EVTCHNOP_status: Get the current status of the communication channel which
   5.113 @@ -133,7 +140,7 @@ typedef struct evtchn_send {
   5.114   *     channel for which <dom> is not DOMID_SELF.
   5.115   */
   5.116  #define EVTCHNOP_status           5
   5.117 -typedef struct evtchn_status {
   5.118 +struct evtchn_status {
   5.119      /* IN parameters */
   5.120      domid_t  dom;
   5.121      evtchn_port_t port;
   5.122 @@ -157,7 +164,8 @@ typedef struct evtchn_status {
   5.123          uint32_t pirq;      /* EVTCHNSTAT_pirq        */
   5.124          uint32_t virq;      /* EVTCHNSTAT_virq        */
   5.125      } u;
   5.126 -} evtchn_status_t;
   5.127 +};
   5.128 +typedef struct evtchn_status evtchn_status_t;
   5.129  
   5.130  /*
   5.131   * EVTCHNOP_bind_vcpu: Specify which vcpu a channel should notify when an
   5.132 @@ -172,41 +180,44 @@ typedef struct evtchn_status {
   5.133   *     has its binding reset to vcpu0).
   5.134   */
   5.135  #define EVTCHNOP_bind_vcpu        8
   5.136 -typedef struct evtchn_bind_vcpu {
   5.137 +struct evtchn_bind_vcpu {
   5.138      /* IN parameters. */
   5.139      evtchn_port_t port;
   5.140      uint32_t vcpu;
   5.141 -} evtchn_bind_vcpu_t;
   5.142 +};
   5.143 +typedef struct evtchn_bind_vcpu evtchn_bind_vcpu_t;
   5.144  
   5.145  /*
   5.146   * EVTCHNOP_unmask: Unmask the specified local event-channel port and deliver
   5.147   * a notification to the appropriate VCPU if an event is pending.
   5.148   */
   5.149  #define EVTCHNOP_unmask           9
   5.150 -typedef struct evtchn_unmask {
   5.151 +struct evtchn_unmask {
   5.152      /* IN parameters. */
   5.153      evtchn_port_t port;
   5.154 -} evtchn_unmask_t;
   5.155 +};
   5.156 +typedef struct evtchn_unmask evtchn_unmask_t;
   5.157  
   5.158  /*
   5.159   * Argument to event_channel_op_compat() hypercall. Superceded by new
   5.160   * event_channel_op() hypercall since 0x00030202.
   5.161   */
   5.162 -typedef struct evtchn_op {
   5.163 +struct evtchn_op {
   5.164      uint32_t cmd; /* EVTCHNOP_* */
   5.165      union {
   5.166 -        evtchn_alloc_unbound_t    alloc_unbound;
   5.167 -        evtchn_bind_interdomain_t bind_interdomain;
   5.168 -        evtchn_bind_virq_t        bind_virq;
   5.169 -        evtchn_bind_pirq_t        bind_pirq;
   5.170 -        evtchn_bind_ipi_t         bind_ipi;
   5.171 -        evtchn_close_t            close;
   5.172 -        evtchn_send_t             send;
   5.173 -        evtchn_status_t           status;
   5.174 -        evtchn_bind_vcpu_t        bind_vcpu;
   5.175 -        evtchn_unmask_t           unmask;
   5.176 +        struct evtchn_alloc_unbound    alloc_unbound;
   5.177 +        struct evtchn_bind_interdomain bind_interdomain;
   5.178 +        struct evtchn_bind_virq        bind_virq;
   5.179 +        struct evtchn_bind_pirq        bind_pirq;
   5.180 +        struct evtchn_bind_ipi         bind_ipi;
   5.181 +        struct evtchn_close            close;
   5.182 +        struct evtchn_send             send;
   5.183 +        struct evtchn_status           status;
   5.184 +        struct evtchn_bind_vcpu        bind_vcpu;
   5.185 +        struct evtchn_unmask           unmask;
   5.186      } u;
   5.187 -} evtchn_op_t;
   5.188 +};
   5.189 +typedef struct evtchn_op evtchn_op_t;
   5.190  DEFINE_XEN_GUEST_HANDLE(evtchn_op_t);
   5.191  
   5.192  #endif /* __XEN_PUBLIC_EVENT_CHANNEL_H__ */
     6.1 --- a/xen/include/public/grant_table.h	Sun May 21 18:55:14 2006 +0100
     6.2 +++ b/xen/include/public/grant_table.h	Sun May 21 18:57:42 2006 +0100
     6.3 @@ -71,7 +71,7 @@
     6.4   * [XEN]: This field is written by Xen and read by the sharing guest.
     6.5   * [GST]: This field is written by the guest and read by Xen.
     6.6   */
     6.7 -typedef struct grant_entry {
     6.8 +struct grant_entry {
     6.9      /* GTF_xxx: various type and flag information.  [XEN,GST] */
    6.10      uint16_t flags;
    6.11      /* The domain being granted foreign privileges. [GST] */
    6.12 @@ -81,7 +81,8 @@ typedef struct grant_entry {
    6.13       * GTF_accept_transfer: Frame whose ownership transferred by @domid. [XEN]
    6.14       */
    6.15      uint32_t frame;
    6.16 -} grant_entry_t;
    6.17 +};
    6.18 +typedef struct grant_entry grant_entry_t;
    6.19  
    6.20  /*
    6.21   * Type of grant entry.
    6.22 @@ -156,7 +157,7 @@ typedef uint32_t grant_handle_t;
    6.23   *     to be accounted to the correct grant reference!
    6.24   */
    6.25  #define GNTTABOP_map_grant_ref        0
    6.26 -typedef struct gnttab_map_grant_ref {
    6.27 +struct gnttab_map_grant_ref {
    6.28      /* IN parameters. */
    6.29      uint64_t host_addr;
    6.30      uint32_t flags;               /* GNTMAP_* */
    6.31 @@ -166,7 +167,8 @@ typedef struct gnttab_map_grant_ref {
    6.32      int16_t  status;              /* GNTST_* */
    6.33      grant_handle_t handle;
    6.34      uint64_t dev_bus_addr;
    6.35 -} gnttab_map_grant_ref_t;
    6.36 +};
    6.37 +typedef struct gnttab_map_grant_ref gnttab_map_grant_ref_t;
    6.38  DEFINE_XEN_GUEST_HANDLE(gnttab_map_grant_ref_t);
    6.39  
    6.40  /*
    6.41 @@ -181,14 +183,15 @@ DEFINE_XEN_GUEST_HANDLE(gnttab_map_grant
    6.42   *     mappings will remain in the device or host TLBs.
    6.43   */
    6.44  #define GNTTABOP_unmap_grant_ref      1
    6.45 -typedef struct gnttab_unmap_grant_ref {
    6.46 +struct gnttab_unmap_grant_ref {
    6.47      /* IN parameters. */
    6.48      uint64_t host_addr;
    6.49      uint64_t dev_bus_addr;
    6.50      grant_handle_t handle;
    6.51      /* OUT parameters. */
    6.52      int16_t  status;              /* GNTST_* */
    6.53 -} gnttab_unmap_grant_ref_t;
    6.54 +};
    6.55 +typedef struct gnttab_unmap_grant_ref gnttab_unmap_grant_ref_t;
    6.56  DEFINE_XEN_GUEST_HANDLE(gnttab_unmap_grant_ref_t);
    6.57  
    6.58  /*
    6.59 @@ -201,14 +204,15 @@ DEFINE_XEN_GUEST_HANDLE(gnttab_unmap_gra
    6.60   *  3. Xen may not support more than a single grant-table page per domain.
    6.61   */
    6.62  #define GNTTABOP_setup_table          2
    6.63 -typedef struct gnttab_setup_table {
    6.64 +struct gnttab_setup_table {
    6.65      /* IN parameters. */
    6.66      domid_t  dom;
    6.67      uint32_t nr_frames;
    6.68      /* OUT parameters. */
    6.69      int16_t  status;              /* GNTST_* */
    6.70      XEN_GUEST_HANDLE(ulong) frame_list;
    6.71 -} gnttab_setup_table_t;
    6.72 +};
    6.73 +typedef struct gnttab_setup_table gnttab_setup_table_t;
    6.74  DEFINE_XEN_GUEST_HANDLE(gnttab_setup_table_t);
    6.75  
    6.76  /*
    6.77 @@ -216,12 +220,13 @@ DEFINE_XEN_GUEST_HANDLE(gnttab_setup_tab
    6.78   * xen console. Debugging use only.
    6.79   */
    6.80  #define GNTTABOP_dump_table           3
    6.81 -typedef struct gnttab_dump_table {
    6.82 +struct gnttab_dump_table {
    6.83      /* IN parameters. */
    6.84      domid_t dom;
    6.85      /* OUT parameters. */
    6.86      int16_t status;               /* GNTST_* */
    6.87 -} gnttab_dump_table_t;
    6.88 +};
    6.89 +typedef struct gnttab_dump_table gnttab_dump_table_t;
    6.90  DEFINE_XEN_GUEST_HANDLE(gnttab_dump_table_t);
    6.91  
    6.92  /*
    6.93 @@ -233,14 +238,15 @@ DEFINE_XEN_GUEST_HANDLE(gnttab_dump_tabl
    6.94   * to the calling domain *unless* the error is GNTST_bad_page.
    6.95   */
    6.96  #define GNTTABOP_transfer                4
    6.97 -typedef struct gnttab_transfer {
    6.98 +struct gnttab_transfer {
    6.99      /* IN parameters. */
   6.100      unsigned long mfn;
   6.101      domid_t       domid;
   6.102      grant_ref_t   ref;
   6.103      /* OUT parameters. */
   6.104      int16_t       status;
   6.105 -} gnttab_transfer_t;
   6.106 +};
   6.107 +typedef struct gnttab_transfer gnttab_transfer_t;
   6.108  DEFINE_XEN_GUEST_HANDLE(gnttab_transfer_t);
   6.109  
   6.110  /*
     7.1 --- a/xen/include/public/hvm/ioreq.h	Sun May 21 18:55:14 2006 +0100
     7.2 +++ b/xen/include/public/hvm/ioreq.h	Sun May 21 18:57:42 2006 +0100
     7.3 @@ -41,7 +41,7 @@
     7.4   * prepare this structure and notify service OS and DM by sending
     7.5   * virq
     7.6   */
     7.7 -typedef struct {
     7.8 +struct ioreq {
     7.9      uint64_t addr;          /*  physical address            */
    7.10      uint64_t size;          /*  size in bytes               */
    7.11      uint64_t count;         /*  for rep prefixes            */
    7.12 @@ -55,31 +55,35 @@ typedef struct {
    7.13      uint8_t df:1;
    7.14      uint8_t type;           /* I/O type                     */
    7.15      uint64_t io_count;      /* How many IO done on a vcpu   */
    7.16 -} ioreq_t;
    7.17 +};
    7.18 +typedef struct ioreq ioreq_t;
    7.19  
    7.20  #define MAX_VECTOR      256
    7.21  #define BITS_PER_BYTE   8
    7.22  #define INTR_LEN        (MAX_VECTOR/(BITS_PER_BYTE * sizeof(uint64_t)))
    7.23  #define INTR_LEN_32     (MAX_VECTOR/(BITS_PER_BYTE * sizeof(uint32_t)))
    7.24  
    7.25 -typedef struct {
    7.26 +struct global_iodata {
    7.27      uint16_t    pic_elcr;
    7.28      uint16_t    pic_irr;
    7.29      uint16_t    pic_last_irr;
    7.30      uint16_t    pic_clear_irr;
    7.31 -} global_iodata_t;
    7.32 +};
    7.33 +typedef struct global_iodata global_iodata_t;
    7.34  
    7.35 -typedef struct {
    7.36 -    ioreq_t         vp_ioreq;
    7.37 +struct vcpu_iodata {
    7.38 +    struct ioreq         vp_ioreq;
    7.39      /* Event channel port */
    7.40      unsigned int    vp_eport;   /* VMX vcpu uses this to notify DM */
    7.41      unsigned int    dm_eport;   /* DM uses this to notify VMX vcpu */
    7.42 -} vcpu_iodata_t;
    7.43 +};
    7.44 +typedef struct vcpu_iodata vcpu_iodata_t;
    7.45  
    7.46 -typedef struct {
    7.47 -    global_iodata_t sp_global;
    7.48 -    vcpu_iodata_t   vcpu_iodata[1];
    7.49 -} shared_iopage_t;
    7.50 +struct shared_iopage {
    7.51 +    struct global_iodata sp_global;
    7.52 +    struct vcpu_iodata   vcpu_iodata[1];
    7.53 +};
    7.54 +typedef struct shared_iopage shared_iopage_t;
    7.55  
    7.56  #endif /* _IOREQ_H_ */
    7.57  
     8.1 --- a/xen/include/public/hvm/vmx_assist.h	Sun May 21 18:55:14 2006 +0100
     8.2 +++ b/xen/include/public/hvm/vmx_assist.h	Sun May 21 18:57:42 2006 +0100
     8.3 @@ -37,7 +37,7 @@ union vmcs_arbytes {
     8.4  /*
     8.5   * World switch state
     8.6   */
     8.7 -typedef struct vmx_assist_context {
     8.8 +struct vmx_assist_context {
     8.9      uint32_t  eip;        /* execution pointer */
    8.10      uint32_t  esp;        /* stack pointer */
    8.11      uint32_t  eflags;     /* flags register */
    8.12 @@ -80,7 +80,8 @@ typedef struct vmx_assist_context {
    8.13      uint32_t  ldtr_limit;
    8.14      uint32_t  ldtr_base;
    8.15      union vmcs_arbytes ldtr_arbytes;
    8.16 -} vmx_assist_context_t;
    8.17 +};
    8.18 +typedef struct vmx_assist_context vmx_assist_context_t;
    8.19  
    8.20  #endif /* __ASSEMBLY__ */
    8.21  
     9.1 --- a/xen/include/public/io/blkif.h	Sun May 21 18:55:14 2006 +0100
     9.2 +++ b/xen/include/public/io/blkif.h	Sun May 21 18:57:42 2006 +0100
     9.3 @@ -39,7 +39,7 @@
     9.4   */
     9.5  #define BLKIF_MAX_SEGMENTS_PER_REQUEST 11
     9.6  
     9.7 -typedef struct blkif_request {
     9.8 +struct blkif_request {
     9.9      uint8_t        operation;    /* BLKIF_OP_???                         */
    9.10      uint8_t        nr_segments;  /* number of segments                   */
    9.11      blkif_vdev_t   handle;       /* only for read/write requests         */
    9.12 @@ -51,13 +51,15 @@ typedef struct blkif_request {
    9.13          /* @last_sect: last sector in frame to transfer (inclusive).     */
    9.14          uint8_t     first_sect, last_sect;
    9.15      } seg[BLKIF_MAX_SEGMENTS_PER_REQUEST];
    9.16 -} blkif_request_t;
    9.17 +};
    9.18 +typedef struct blkif_request blkif_request_t;
    9.19  
    9.20 -typedef struct blkif_response {
    9.21 +struct blkif_response {
    9.22      uint64_t        id;              /* copied from request */
    9.23      uint8_t         operation;       /* copied from request */
    9.24      int16_t         status;          /* BLKIF_RSP_???       */
    9.25 -} blkif_response_t;
    9.26 +};
    9.27 +typedef struct blkif_response blkif_response_t;
    9.28  
    9.29  #define BLKIF_RSP_ERROR  -1 /* non-specific 'error' */
    9.30  #define BLKIF_RSP_OKAY    0 /* non-specific 'okay'  */
    9.31 @@ -66,7 +68,7 @@ typedef struct blkif_response {
    9.32   * Generate blkif ring structures and types.
    9.33   */
    9.34  
    9.35 -DEFINE_RING_TYPES(blkif, blkif_request_t, blkif_response_t);
    9.36 +DEFINE_RING_TYPES(blkif, struct blkif_request, struct blkif_response);
    9.37  
    9.38  #define VDISK_CDROM        0x1
    9.39  #define VDISK_REMOVABLE    0x2
    10.1 --- a/xen/include/public/io/tpmif.h	Sun May 21 18:55:14 2006 +0100
    10.2 +++ b/xen/include/public/io/tpmif.h	Sun May 21 18:57:42 2006 +0100
    10.3 @@ -18,12 +18,13 @@
    10.4  
    10.5  #include "../grant_table.h"
    10.6  
    10.7 -typedef struct {
    10.8 +struct tpmif_tx_request {
    10.9      unsigned long addr;   /* Machine address of packet.   */
   10.10      grant_ref_t ref;      /* grant table access reference */
   10.11      uint16_t unused;
   10.12      uint16_t size;        /* Packet size in bytes.        */
   10.13 -} tpmif_tx_request_t;
   10.14 +};
   10.15 +typedef struct tpmif_tx_request tpmif_tx_request_t;
   10.16  
   10.17  /*
   10.18   * The TPMIF_TX_RING_SIZE defines the number of pages the
   10.19 @@ -35,13 +36,15 @@ typedef uint32_t TPMIF_RING_IDX;
   10.20  
   10.21  /* This structure must fit in a memory page. */
   10.22  
   10.23 -typedef struct {
   10.24 -    tpmif_tx_request_t req;
   10.25 -} tpmif_ring_t;
   10.26 +struct tpmif_ring {
   10.27 +    struct tpmif_tx_request req;
   10.28 +};
   10.29 +typedef struct tpmif_ring tpmif_ring_t;
   10.30  
   10.31 -typedef struct {
   10.32 -    tpmif_ring_t ring[TPMIF_TX_RING_SIZE];
   10.33 -} tpmif_tx_interface_t;
   10.34 +struct tpmif_tx_interface {
   10.35 +    struct tpmif_ring ring[TPMIF_TX_RING_SIZE];
   10.36 +};
   10.37 +typedef struct tpmif_tx_interface tpmif_tx_interface_t;
   10.38  
   10.39  #endif
   10.40  
    11.1 --- a/xen/include/public/memory.h	Sun May 21 18:55:14 2006 +0100
    11.2 +++ b/xen/include/public/memory.h	Sun May 21 18:57:42 2006 +0100
    11.3 @@ -17,7 +17,7 @@
    11.4  #define XENMEM_increase_reservation 0
    11.5  #define XENMEM_decrease_reservation 1
    11.6  #define XENMEM_populate_physmap     6
    11.7 -typedef struct xen_memory_reservation {
    11.8 +struct xen_memory_reservation {
    11.9  
   11.10      /*
   11.11       * XENMEM_increase_reservation:
   11.12 @@ -49,7 +49,8 @@ typedef struct xen_memory_reservation {
   11.13       */
   11.14      domid_t        domid;
   11.15  
   11.16 -} xen_memory_reservation_t;
   11.17 +};
   11.18 +typedef struct xen_memory_reservation xen_memory_reservation_t;
   11.19  DEFINE_XEN_GUEST_HANDLE(xen_memory_reservation_t);
   11.20  
   11.21  /*
   11.22 @@ -74,7 +75,7 @@ DEFINE_XEN_GUEST_HANDLE(xen_memory_reser
   11.23   * arg == addr of xen_machphys_mfn_list_t.
   11.24   */
   11.25  #define XENMEM_machphys_mfn_list    5
   11.26 -typedef struct xen_machphys_mfn_list {
   11.27 +struct xen_machphys_mfn_list {
   11.28      /*
   11.29       * Size of the 'extent_start' array. Fewer entries will be filled if the
   11.30       * machphys table is smaller than max_extents * 2MB.
   11.31 @@ -93,7 +94,8 @@ typedef struct xen_machphys_mfn_list {
   11.32       * than 'max_extents' if the machphys table is smaller than max_e * 2MB.
   11.33       */
   11.34      unsigned int nr_extents;
   11.35 -} xen_machphys_mfn_list_t;
   11.36 +};
   11.37 +typedef struct xen_machphys_mfn_list xen_machphys_mfn_list_t;
   11.38  DEFINE_XEN_GUEST_HANDLE(xen_machphys_mfn_list_t);
   11.39  
   11.40  /*
   11.41 @@ -102,7 +104,7 @@ DEFINE_XEN_GUEST_HANDLE(xen_machphys_mfn
   11.42   * arg == addr of xen_add_to_physmap_t.
   11.43   */
   11.44  #define XENMEM_add_to_physmap      7
   11.45 -typedef struct xen_add_to_physmap {
   11.46 +struct xen_add_to_physmap {
   11.47      /* Which domain to change the mapping for. */
   11.48      domid_t domid;
   11.49  
   11.50 @@ -116,7 +118,8 @@ typedef struct xen_add_to_physmap {
   11.51  
   11.52      /* GPFN where the source mapping page should appear. */
   11.53      unsigned long gpfn;
   11.54 -} xen_add_to_physmap_t;
   11.55 +};
   11.56 +typedef struct xen_add_to_physmap xen_add_to_physmap_t;
   11.57  DEFINE_XEN_GUEST_HANDLE(xen_add_to_physmap_t);
   11.58  
   11.59  /*
   11.60 @@ -124,7 +127,7 @@ DEFINE_XEN_GUEST_HANDLE(xen_add_to_physm
   11.61   * code on failure. This call only works for auto-translated guests.
   11.62   */
   11.63  #define XENMEM_translate_gpfn_list  8
   11.64 -typedef struct xen_translate_gpfn_list {
   11.65 +struct xen_translate_gpfn_list {
   11.66      /* Which domain to translate for? */
   11.67      domid_t domid;
   11.68  
   11.69 @@ -139,7 +142,8 @@ typedef struct xen_translate_gpfn_list {
   11.70       * list (in which case each input GPFN is overwritten with the output MFN).
   11.71       */
   11.72      XEN_GUEST_HANDLE(ulong) mfn_list;
   11.73 -} xen_translate_gpfn_list_t;
   11.74 +};
   11.75 +typedef struct xen_translate_gpfn_list xen_translate_gpfn_list_t;
   11.76  DEFINE_XEN_GUEST_HANDLE(xen_translate_gpfn_list_t);
   11.77  
   11.78  #endif /* __XEN_PUBLIC_MEMORY_H__ */
    12.1 --- a/xen/include/public/nmi.h	Sun May 21 18:55:14 2006 +0100
    12.2 +++ b/xen/include/public/nmi.h	Sun May 21 18:57:42 2006 +0100
    12.3 @@ -34,10 +34,11 @@
    12.4   * arg == pointer to xennmi_callback structure.
    12.5   */
    12.6  #define XENNMI_register_callback   0
    12.7 -typedef struct xennmi_callback {
    12.8 +struct xennmi_callback {
    12.9      unsigned long handler_address;
   12.10      unsigned long pad;
   12.11 -} xennmi_callback_t;
   12.12 +};
   12.13 +typedef struct xennmi_callback xennmi_callback_t;
   12.14  DEFINE_XEN_GUEST_HANDLE(xennmi_callback_t);
   12.15  
   12.16  /*
    13.1 --- a/xen/include/public/physdev.h	Sun May 21 18:55:14 2006 +0100
    13.2 +++ b/xen/include/public/physdev.h	Sun May 21 18:57:42 2006 +0100
    13.3 @@ -14,10 +14,11 @@
    13.4   * @arg == pointer to physdev_eoi structure.
    13.5   */
    13.6  #define PHYSDEVOP_eoi                   12
    13.7 -typedef struct physdev_eoi {
    13.8 +struct physdev_eoi {
    13.9      /* IN */
   13.10      uint32_t irq;
   13.11 -} physdev_eoi_t;
   13.12 +};
   13.13 +typedef struct physdev_eoi physdev_eoi_t;
   13.14  DEFINE_XEN_GUEST_HANDLE(physdev_eoi_t);
   13.15  
   13.16  /*
   13.17 @@ -25,12 +26,13 @@ DEFINE_XEN_GUEST_HANDLE(physdev_eoi_t);
   13.18   * @arg == pointer to physdev_irq_status_query structure.
   13.19   */
   13.20  #define PHYSDEVOP_irq_status_query       5
   13.21 -typedef struct physdev_irq_status_query {
   13.22 +struct physdev_irq_status_query {
   13.23      /* IN */
   13.24      uint32_t irq;
   13.25      /* OUT */
   13.26      uint32_t flags; /* XENIRQSTAT_* */
   13.27 -} physdev_irq_status_query_t;
   13.28 +};
   13.29 +typedef struct physdev_irq_status_query physdev_irq_status_query_t;
   13.30  DEFINE_XEN_GUEST_HANDLE(physdev_irq_status_query_t);
   13.31  
   13.32  /* Need to call PHYSDEVOP_eoi when the IRQ has been serviced? */
   13.33 @@ -42,10 +44,11 @@ DEFINE_XEN_GUEST_HANDLE(physdev_irq_stat
   13.34   * @arg == pointer to physdev_set_iopl structure.
   13.35   */
   13.36  #define PHYSDEVOP_set_iopl               6
   13.37 -typedef struct physdev_set_iopl {
   13.38 +struct physdev_set_iopl {
   13.39      /* IN */
   13.40      uint32_t iopl;
   13.41 -} physdev_set_iopl_t;
   13.42 +};
   13.43 +typedef struct physdev_set_iopl physdev_set_iopl_t;
   13.44  DEFINE_XEN_GUEST_HANDLE(physdev_set_iopl_t);
   13.45  
   13.46  /*
   13.47 @@ -53,11 +56,12 @@ DEFINE_XEN_GUEST_HANDLE(physdev_set_iopl
   13.48   * @arg == pointer to physdev_set_iobitmap structure.
   13.49   */
   13.50  #define PHYSDEVOP_set_iobitmap           7
   13.51 -typedef struct physdev_set_iobitmap {
   13.52 +struct physdev_set_iobitmap {
   13.53      /* IN */
   13.54      uint8_t *bitmap;
   13.55      uint32_t nr_ports;
   13.56 -} physdev_set_iobitmap_t;
   13.57 +};
   13.58 +typedef struct physdev_set_iobitmap physdev_set_iobitmap_t;
   13.59  DEFINE_XEN_GUEST_HANDLE(physdev_set_iobitmap_t);
   13.60  
   13.61  /*
   13.62 @@ -66,13 +70,14 @@ DEFINE_XEN_GUEST_HANDLE(physdev_set_iobi
   13.63   */
   13.64  #define PHYSDEVOP_apic_read              8
   13.65  #define PHYSDEVOP_apic_write             9
   13.66 -typedef struct physdev_apic {
   13.67 +struct physdev_apic {
   13.68      /* IN */
   13.69      unsigned long apic_physbase;
   13.70      uint32_t reg;
   13.71      /* IN or OUT */
   13.72      uint32_t value;
   13.73 -} physdev_apic_t;
   13.74 +};
   13.75 +typedef struct physdev_apic physdev_apic_t;
   13.76  DEFINE_XEN_GUEST_HANDLE(physdev_apic_t);
   13.77  
   13.78  /*
   13.79 @@ -81,28 +86,30 @@ DEFINE_XEN_GUEST_HANDLE(physdev_apic_t);
   13.80   */
   13.81  #define PHYSDEVOP_alloc_irq_vector      10
   13.82  #define PHYSDEVOP_free_irq_vector       11
   13.83 -typedef struct physdev_irq {
   13.84 +struct physdev_irq {
   13.85      /* IN */
   13.86      uint32_t irq;
   13.87      /* IN or OUT */
   13.88      uint32_t vector;
   13.89 -} physdev_irq_t;
   13.90 +};
   13.91 +typedef struct physdev_irq physdev_irq_t;
   13.92  DEFINE_XEN_GUEST_HANDLE(physdev_irq_t);
   13.93  
   13.94  /*
   13.95   * Argument to physdev_op_compat() hypercall. Superceded by new physdev_op()
   13.96   * hypercall since 0x00030202.
   13.97   */
   13.98 -typedef struct physdev_op {
   13.99 +struct physdev_op {
  13.100      uint32_t cmd;
  13.101      union {
  13.102 -        physdev_irq_status_query_t      irq_status_query;
  13.103 -        physdev_set_iopl_t              set_iopl;
  13.104 -        physdev_set_iobitmap_t          set_iobitmap;
  13.105 -        physdev_apic_t                  apic_op;
  13.106 -        physdev_irq_t                   irq_op;
  13.107 +        struct physdev_irq_status_query      irq_status_query;
  13.108 +        struct physdev_set_iopl              set_iopl;
  13.109 +        struct physdev_set_iobitmap          set_iobitmap;
  13.110 +        struct physdev_apic                  apic_op;
  13.111 +        struct physdev_irq                   irq_op;
  13.112      } u;
  13.113 -} physdev_op_t;
  13.114 +};
  13.115 +typedef struct physdev_op physdev_op_t;
  13.116  DEFINE_XEN_GUEST_HANDLE(physdev_op_t);
  13.117  
  13.118  /*
    14.1 --- a/xen/include/public/sched.h	Sun May 21 18:55:14 2006 +0100
    14.2 +++ b/xen/include/public/sched.h	Sun May 21 18:57:42 2006 +0100
    14.3 @@ -46,9 +46,10 @@
    14.4   * @arg == pointer to sched_shutdown structure.
    14.5   */
    14.6  #define SCHEDOP_shutdown    2
    14.7 -typedef struct sched_shutdown {
    14.8 +struct sched_shutdown {
    14.9      unsigned int reason; /* SHUTDOWN_* */
   14.10 -} sched_shutdown_t;
   14.11 +};
   14.12 +typedef struct sched_shutdown sched_shutdown_t;
   14.13  DEFINE_XEN_GUEST_HANDLE(sched_shutdown_t);
   14.14  
   14.15  /*
   14.16 @@ -57,11 +58,12 @@ DEFINE_XEN_GUEST_HANDLE(sched_shutdown_t
   14.17   * @arg == pointer to sched_poll structure.
   14.18   */
   14.19  #define SCHEDOP_poll        3
   14.20 -typedef struct sched_poll {
   14.21 +struct sched_poll {
   14.22      XEN_GUEST_HANDLE(evtchn_port_t) ports;
   14.23      unsigned int nr_ports;
   14.24      uint64_t timeout;
   14.25 -} sched_poll_t;
   14.26 +};
   14.27 +typedef struct sched_poll sched_poll_t;
   14.28  DEFINE_XEN_GUEST_HANDLE(sched_poll_t);
   14.29  
   14.30  /*
   14.31 @@ -71,10 +73,11 @@ DEFINE_XEN_GUEST_HANDLE(sched_poll_t);
   14.32   * @arg == pointer to sched_remote_shutdown structure.
   14.33   */
   14.34  #define SCHEDOP_remote_shutdown        4
   14.35 -typedef struct sched_remote_shutdown {
   14.36 +struct sched_remote_shutdown {
   14.37      domid_t domain_id;         /* Remote domain ID */
   14.38      unsigned int reason;       /* SHUTDOWN_xxx reason */
   14.39 -} sched_remote_shutdown_t;
   14.40 +};
   14.41 +typedef struct sched_remote_shutdown sched_remote_shutdown_t;
   14.42  DEFINE_XEN_GUEST_HANDLE(sched_remote_shutdown_t);
   14.43  
   14.44  /*
    15.1 --- a/xen/include/public/vcpu.h	Sun May 21 18:55:14 2006 +0100
    15.2 +++ b/xen/include/public/vcpu.h	Sun May 21 18:57:42 2006 +0100
    15.3 @@ -56,7 +56,7 @@
    15.4   * @extra_arg == pointer to vcpu_runstate_info structure.
    15.5   */
    15.6  #define VCPUOP_get_runstate_info    4
    15.7 -typedef struct vcpu_runstate_info {
    15.8 +struct vcpu_runstate_info {
    15.9      /* VCPU's current state (RUNSTATE_*). */
   15.10      int      state;
   15.11      /* When was current state entered (system time, ns)? */
   15.12 @@ -66,7 +66,8 @@ typedef struct vcpu_runstate_info {
   15.13       * guaranteed not to drift from system time.
   15.14       */
   15.15      uint64_t time[4];
   15.16 -} vcpu_runstate_info_t;
   15.17 +};
   15.18 +typedef struct vcpu_runstate_info vcpu_runstate_info_t;
   15.19  
   15.20  /* VCPU is currently running on a physical CPU. */
   15.21  #define RUNSTATE_running  0
   15.22 @@ -99,12 +100,13 @@ typedef struct vcpu_runstate_info {
   15.23   * @extra_arg == pointer to vcpu_register_runstate_memory_area structure.
   15.24   */
   15.25  #define VCPUOP_register_runstate_memory_area 5
   15.26 -typedef struct vcpu_register_runstate_memory_area {
   15.27 +struct vcpu_register_runstate_memory_area {
   15.28      union {
   15.29          struct vcpu_runstate_info *v;
   15.30          uint64_t p;
   15.31      } addr;
   15.32 -} vcpu_register_runstate_memory_area_t;
   15.33 +};
   15.34 +typedef struct vcpu_register_runstate_memory_area vcpu_register_runstate_memory_area_t;
   15.35  
   15.36  #endif /* __XEN_PUBLIC_VCPU_H__ */
   15.37  
    16.1 --- a/xen/include/public/version.h	Sun May 21 18:55:14 2006 +0100
    16.2 +++ b/xen/include/public/version.h	Sun May 21 18:57:42 2006 +0100
    16.3 @@ -22,12 +22,13 @@ typedef char xen_extraversion_t[16];
    16.4  
    16.5  /* arg == xen_compile_info_t. */
    16.6  #define XENVER_compile_info 2
    16.7 -typedef struct xen_compile_info {
    16.8 +struct xen_compile_info {
    16.9      char compiler[64];
   16.10      char compile_by[16];
   16.11      char compile_domain[32];
   16.12      char compile_date[32];
   16.13 -} xen_compile_info_t;
   16.14 +};
   16.15 +typedef struct xen_compile_info xen_compile_info_t;
   16.16  
   16.17  #define XENVER_capabilities 3
   16.18  typedef char xen_capabilities_info_t[1024];
   16.19 @@ -38,15 +39,17 @@ typedef char xen_changeset_info_t[64];
   16.20  #define XEN_CHANGESET_INFO_LEN (sizeof(xen_changeset_info_t))
   16.21  
   16.22  #define XENVER_platform_parameters 5
   16.23 -typedef struct xen_platform_parameters {
   16.24 +struct xen_platform_parameters {
   16.25      unsigned long virt_start;
   16.26 -} xen_platform_parameters_t;
   16.27 +};
   16.28 +typedef struct xen_platform_parameters xen_platform_parameters_t;
   16.29  
   16.30  #define XENVER_get_features 6
   16.31 -typedef struct xen_feature_info {
   16.32 +struct xen_feature_info {
   16.33      unsigned int submap_idx;    /* IN: which 32-bit submap to return */
   16.34      uint32_t     submap;        /* OUT: 32-bit submap */
   16.35 -} xen_feature_info_t;
   16.36 +};
   16.37 +typedef struct xen_feature_info xen_feature_info_t;
   16.38  
   16.39  /* Declares the features reported by XENVER_get_features. */
   16.40  #include "features.h"
    17.1 --- a/xen/include/public/xenoprof.h	Sun May 21 18:55:14 2006 +0100
    17.2 +++ b/xen/include/public/xenoprof.h	Sun May 21 18:57:42 2006 +0100
    17.3 @@ -41,7 +41,7 @@ struct event_log {
    17.4  };
    17.5  
    17.6  /* Xenoprof buffer shared between Xen and domain - 1 per VCPU */
    17.7 -typedef struct xenoprof_buf {
    17.8 +struct xenoprof_buf {
    17.9      uint32_t event_head;
   17.10      uint32_t event_tail;
   17.11      uint32_t event_size;
   17.12 @@ -51,10 +51,11 @@ typedef struct xenoprof_buf {
   17.13      uint64_t user_samples;
   17.14      uint64_t lost_samples;
   17.15      struct event_log event_log[1];
   17.16 -} xenoprof_buf_t;
   17.17 +};
   17.18 +typedef struct xenoprof_buf xenoprof_buf_t;
   17.19  DEFINE_XEN_GUEST_HANDLE(xenoprof_buf_t);
   17.20  
   17.21 -typedef struct xenoprof_init {
   17.22 +struct xenoprof_init {
   17.23      int32_t  max_samples;
   17.24      int32_t  num_events;
   17.25      int32_t  is_primary;
   17.26 @@ -62,10 +63,11 @@ typedef struct xenoprof_init {
   17.27      int32_t  bufsize;
   17.28      uint64_t buf_maddr;
   17.29      char cpu_type[XENOPROF_CPU_TYPE_SIZE];
   17.30 -} xenoprof_init_t;
   17.31 +};
   17.32 +typedef struct xenoprof_init xenoprof_init_t;
   17.33  DEFINE_XEN_GUEST_HANDLE(xenoprof_init_t);
   17.34  
   17.35 -typedef struct xenoprof_counter {
   17.36 +struct xenoprof_counter {
   17.37      uint32_t ind;
   17.38      uint64_t count;
   17.39      uint32_t enabled;
   17.40 @@ -74,7 +76,8 @@ typedef struct xenoprof_counter {
   17.41      uint32_t kernel;
   17.42      uint32_t user;
   17.43      uint64_t unit_mask;
   17.44 -} xenoprof_counter_t;
   17.45 +};
   17.46 +typedef struct xenoprof_counter xenoprof_counter_t;
   17.47  DEFINE_XEN_GUEST_HANDLE(xenoprof_counter_t);
   17.48  
   17.49