*/
#define KEXEC_CMD_kexec 0
typedef struct xen_kexec_exec {
- int32_t type;
+ int type;
} xen_kexec_exec_t;
/*
#define KEXEC_CMD_kexec_load_v1 1 /* obsolete since 0x00040400 */
#define KEXEC_CMD_kexec_unload_v1 2 /* obsolete since 0x00040400 */
typedef struct xen_kexec_load_v1 {
- int32_t type;
+ int type;
xen_kexec_image_t image;
} xen_kexec_load_v1_t;
*/
#define KEXEC_CMD_kexec_get_range 3
typedef struct xen_kexec_range {
- int32_t range;
- int32_t nr;
+ int range;
+ int nr;
unsigned long size;
unsigned long start;
} xen_kexec_range_t;
/* Number of extents, and size/alignment of each (2^extent_order pages). */
xen_ulong_t nr_extents;
- uint32_t extent_order;
+ unsigned int extent_order;
#if __XEN_INTERFACE_VERSION__ >= 0x00030209
/* XENMEMF flags. */
- uint32_t mem_flags;
+ unsigned int mem_flags;
#else
- uint32_t address_bits;
+ unsigned int address_bits;
#endif
/*
* Size of the 'extent_start' array. Fewer entries will be filled if the
* machphys table is smaller than max_extents * 2MB.
*/
- uint32_t max_extents;
+ unsigned int max_extents;
/*
* Pointer to buffer to fill with list of extent starts. If there are
* Number of extents written to the above array. This will be smaller
* than 'max_extents' if the machphys table is smaller than max_e * 2MB.
*/
- uint32_t nr_extents;
+ unsigned int nr_extents;
};
typedef struct xen_machphys_mfn_list xen_machphys_mfn_list_t;
DEFINE_XEN_GUEST_HANDLE(xen_machphys_mfn_list_t);
/* Number of pages to go through for gmfn_range */
uint16_t size;
- uint32_t space; /* => enum phys_map_space */
+ unsigned int space; /* => enum phys_map_space */
#define XENMAPIDX_grant_table_status 0x80000000U
/* OUT */
/* Per index error code. */
- XEN_GUEST_HANDLE(int32_t) errs;
+ XEN_GUEST_HANDLE(int) errs;
};
typedef struct xen_add_to_physmap_batch xen_add_to_physmap_batch_t;
DEFINE_XEN_GUEST_HANDLE(xen_add_to_physmap_batch_t);
* return the number of entries which have been stored in
* buffer.
*/
- uint32_t nr_entries;
+ unsigned int nr_entries;
/*
* Entries in the buffer are in the same format as returned by the
* Gets set to the required number of entries when too low,
* signaled by error code -ERANGE.
*/
- uint32_t nr_entries;
+ unsigned int nr_entries;
/* OUT */
XEN_GUEST_HANDLE(xen_reserved_device_memory_t) buffer;
/* IN */
domid_t domid;
uint16_t pad;
/* IN/OUT */
- uint32_t nr_vnodes;
- uint32_t nr_vcpus;
- uint32_t nr_vmemranges;
+ unsigned int nr_vnodes;
+ unsigned int nr_vcpus;
+ unsigned int nr_vmemranges;
/* OUT */
union {
XEN_GUEST_HANDLE(uint) h;
struct physdev_map_pirq {
domid_t domid;
/* IN */
- int32_t type;
+ int type;
/* IN (ignored for ..._MULTI_MSI) */
- int32_t index;
+ int index;
/* IN or OUT */
- int32_t pirq;
+ int pirq;
/* IN - high 16 bits hold segment for ..._MSI_SEG and ..._MULTI_MSI */
- int32_t bus;
+ int bus;
/* IN */
- int32_t devfn;
+ int devfn;
/* IN (also OUT for ..._MULTI_MSI) */
- int32_t entry_nr;
+ int entry_nr;
/* IN */
uint64_t table_base;
};
struct physdev_unmap_pirq {
domid_t domid;
/* IN */
- int32_t pirq;
+ int pirq;
};
typedef struct physdev_unmap_pirq physdev_unmap_pirq_t;
#define PHYSDEVOP_setup_gsi 21
struct physdev_setup_gsi {
- int32_t gsi;
+ int gsi;
/* IN */
uint8_t triggering;
/* IN */
#define PHYSDEVOP_get_free_pirq 23
struct physdev_get_free_pirq {
/* IN */
- int32_t type;
+ int type;
/* OUT */
uint32_t pirq;
};
/* ` } */
struct sched_shutdown {
- uint32_t reason; /* SHUTDOWN_* => enum sched_shutdown_reason */
+ unsigned int reason; /* SHUTDOWN_* => enum sched_shutdown_reason */
};
typedef struct sched_shutdown sched_shutdown_t;
DEFINE_XEN_GUEST_HANDLE(sched_shutdown_t);
struct sched_poll {
XEN_GUEST_HANDLE(evtchn_port_t) ports;
- uint32_t nr_ports;
+ unsigned int nr_ports;
uint64_t timeout;
};
typedef struct sched_poll sched_poll_t;
struct sched_remote_shutdown {
domid_t domain_id; /* Remote domain ID */
- uint32_t reason; /* SHUTDOWN_* => enum sched_shutdown_reason */
+ unsigned int reason; /* SHUTDOWN_* => enum sched_shutdown_reason */
};
typedef struct sched_remote_shutdown sched_remote_shutdown_t;
DEFINE_XEN_GUEST_HANDLE(sched_remote_shutdown_t);