mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
public: s/int/int32_t
Straightforward int -> int32_t and unsigned int -> uint32_t replacements in public headers. No ABI or semantic changes intended. Signed-off-by: Stefano Stabellini <stefano.stabellini@amd.com>
This commit is contained in:
1 parent
ad363fb17d
commit
afab29d088
5 files changed
+29
-29
No files matched your search
@@ -105,7 +105,7 @@ typedef struct xen_kexec_image {
|
|||||||
*/
|
*/
|
||||||
#define KEXEC_CMD_kexec 0
|
#define KEXEC_CMD_kexec 0
|
||||||
typedef struct xen_kexec_exec {
|
typedef struct xen_kexec_exec {
|
||||||
int type;
|
int32_t type;
|
||||||
} xen_kexec_exec_t;
|
} xen_kexec_exec_t;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -116,7 +116,7 @@ typedef struct xen_kexec_exec {
|
|||||||
#define KEXEC_CMD_kexec_load_v1 1 /* obsolete since 0x00040400 */
|
#define KEXEC_CMD_kexec_load_v1 1 /* obsolete since 0x00040400 */
|
||||||
#define KEXEC_CMD_kexec_unload_v1 2 /* obsolete since 0x00040400 */
|
#define KEXEC_CMD_kexec_unload_v1 2 /* obsolete since 0x00040400 */
|
||||||
typedef struct xen_kexec_load_v1 {
|
typedef struct xen_kexec_load_v1 {
|
||||||
int type;
|
int32_t type;
|
||||||
xen_kexec_image_t image;
|
xen_kexec_image_t image;
|
||||||
} xen_kexec_load_v1_t;
|
} xen_kexec_load_v1_t;
|
||||||
|
|
||||||
@@ -143,8 +143,8 @@ typedef struct xen_kexec_load_v1 {
|
|||||||
*/
|
*/
|
||||||
#define KEXEC_CMD_kexec_get_range 3
|
#define KEXEC_CMD_kexec_get_range 3
|
||||||
typedef struct xen_kexec_range {
|
typedef struct xen_kexec_range {
|
||||||
int range;
|
int32_t range;
|
||||||
int nr;
|
int32_t nr;
|
||||||
unsigned long size;
|
unsigned long size;
|
||||||
unsigned long start;
|
unsigned long start;
|
||||||
} xen_kexec_range_t;
|
} xen_kexec_range_t;
|
||||||
|
|||||||
+12
-12
@@ -61,13 +61,13 @@ struct xen_memory_reservation {
|
|||||||
|
|
||||||
/* Number of extents, and size/alignment of each (2^extent_order pages). */
|
/* Number of extents, and size/alignment of each (2^extent_order pages). */
|
||||||
xen_ulong_t nr_extents;
|
xen_ulong_t nr_extents;
|
||||||
unsigned int extent_order;
|
uint32_t extent_order;
|
||||||
|
|
||||||
#if __XEN_INTERFACE_VERSION__ >= 0x00030209
|
#if __XEN_INTERFACE_VERSION__ >= 0x00030209
|
||||||
/* XENMEMF flags. */
|
/* XENMEMF flags. */
|
||||||
unsigned int mem_flags;
|
uint32_t mem_flags;
|
||||||
#else
|
#else
|
||||||
unsigned int address_bits;
|
uint32_t address_bits;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -163,7 +163,7 @@ struct xen_machphys_mfn_list {
|
|||||||
* Size of the 'extent_start' array. Fewer entries will be filled if the
|
* Size of the 'extent_start' array. Fewer entries will be filled if the
|
||||||
* machphys table is smaller than max_extents * 2MB.
|
* machphys table is smaller than max_extents * 2MB.
|
||||||
*/
|
*/
|
||||||
unsigned int max_extents;
|
uint32_t max_extents;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Pointer to buffer to fill with list of extent starts. If there are
|
* Pointer to buffer to fill with list of extent starts. If there are
|
||||||
@@ -176,7 +176,7 @@ struct xen_machphys_mfn_list {
|
|||||||
* Number of extents written to the above array. This will be smaller
|
* 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.
|
* than 'max_extents' if the machphys table is smaller than max_e * 2MB.
|
||||||
*/
|
*/
|
||||||
unsigned int nr_extents;
|
uint32_t nr_extents;
|
||||||
};
|
};
|
||||||
typedef struct xen_machphys_mfn_list xen_machphys_mfn_list_t;
|
typedef struct xen_machphys_mfn_list xen_machphys_mfn_list_t;
|
||||||
DEFINE_XEN_GUEST_HANDLE(xen_machphys_mfn_list_t);
|
DEFINE_XEN_GUEST_HANDLE(xen_machphys_mfn_list_t);
|
||||||
@@ -232,7 +232,7 @@ struct xen_add_to_physmap {
|
|||||||
/* Number of pages to go through for gmfn_range */
|
/* Number of pages to go through for gmfn_range */
|
||||||
uint16_t size;
|
uint16_t size;
|
||||||
|
|
||||||
unsigned int space; /* => enum phys_map_space */
|
uint32_t space; /* => enum phys_map_space */
|
||||||
|
|
||||||
#define XENMAPIDX_grant_table_status 0x80000000U
|
#define XENMAPIDX_grant_table_status 0x80000000U
|
||||||
|
|
||||||
@@ -274,7 +274,7 @@ struct xen_add_to_physmap_batch {
|
|||||||
/* OUT */
|
/* OUT */
|
||||||
|
|
||||||
/* Per index error code. */
|
/* Per index error code. */
|
||||||
XEN_GUEST_HANDLE(int) errs;
|
XEN_GUEST_HANDLE(int32_t) errs;
|
||||||
};
|
};
|
||||||
typedef struct xen_add_to_physmap_batch xen_add_to_physmap_batch_t;
|
typedef struct xen_add_to_physmap_batch xen_add_to_physmap_batch_t;
|
||||||
DEFINE_XEN_GUEST_HANDLE(xen_add_to_physmap_batch_t);
|
DEFINE_XEN_GUEST_HANDLE(xen_add_to_physmap_batch_t);
|
||||||
@@ -317,7 +317,7 @@ struct xen_memory_map {
|
|||||||
* return the number of entries which have been stored in
|
* return the number of entries which have been stored in
|
||||||
* buffer.
|
* buffer.
|
||||||
*/
|
*/
|
||||||
unsigned int nr_entries;
|
uint32_t nr_entries;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Entries in the buffer are in the same format as returned by the
|
* Entries in the buffer are in the same format as returned by the
|
||||||
@@ -591,7 +591,7 @@ struct xen_reserved_device_memory_map {
|
|||||||
* Gets set to the required number of entries when too low,
|
* Gets set to the required number of entries when too low,
|
||||||
* signaled by error code -ERANGE.
|
* signaled by error code -ERANGE.
|
||||||
*/
|
*/
|
||||||
unsigned int nr_entries;
|
uint32_t nr_entries;
|
||||||
/* OUT */
|
/* OUT */
|
||||||
XEN_GUEST_HANDLE(xen_reserved_device_memory_t) buffer;
|
XEN_GUEST_HANDLE(xen_reserved_device_memory_t) buffer;
|
||||||
/* IN */
|
/* IN */
|
||||||
@@ -711,9 +711,9 @@ struct xen_vnuma_topology_info {
|
|||||||
domid_t domid;
|
domid_t domid;
|
||||||
uint16_t pad;
|
uint16_t pad;
|
||||||
/* IN/OUT */
|
/* IN/OUT */
|
||||||
unsigned int nr_vnodes;
|
uint32_t nr_vnodes;
|
||||||
unsigned int nr_vcpus;
|
uint32_t nr_vcpus;
|
||||||
unsigned int nr_vmemranges;
|
uint32_t nr_vmemranges;
|
||||||
/* OUT */
|
/* OUT */
|
||||||
union {
|
union {
|
||||||
XEN_GUEST_HANDLE(uint) h;
|
XEN_GUEST_HANDLE(uint) h;
|
||||||
|
|||||||
@@ -142,17 +142,17 @@ DEFINE_XEN_GUEST_HANDLE(physdev_irq_t);
|
|||||||
struct physdev_map_pirq {
|
struct physdev_map_pirq {
|
||||||
domid_t domid;
|
domid_t domid;
|
||||||
/* IN */
|
/* IN */
|
||||||
int type;
|
int32_t type;
|
||||||
/* IN (ignored for ..._MULTI_MSI) */
|
/* IN (ignored for ..._MULTI_MSI) */
|
||||||
int index;
|
int32_t index;
|
||||||
/* IN or OUT */
|
/* IN or OUT */
|
||||||
int pirq;
|
int32_t pirq;
|
||||||
/* IN - high 16 bits hold segment for ..._MSI_SEG and ..._MULTI_MSI */
|
/* IN - high 16 bits hold segment for ..._MSI_SEG and ..._MULTI_MSI */
|
||||||
int bus;
|
int32_t bus;
|
||||||
/* IN */
|
/* IN */
|
||||||
int devfn;
|
int32_t devfn;
|
||||||
/* IN (also OUT for ..._MULTI_MSI) */
|
/* IN (also OUT for ..._MULTI_MSI) */
|
||||||
int entry_nr;
|
int32_t entry_nr;
|
||||||
/* IN */
|
/* IN */
|
||||||
uint64_t table_base;
|
uint64_t table_base;
|
||||||
};
|
};
|
||||||
@@ -163,7 +163,7 @@ DEFINE_XEN_GUEST_HANDLE(physdev_map_pirq_t);
|
|||||||
struct physdev_unmap_pirq {
|
struct physdev_unmap_pirq {
|
||||||
domid_t domid;
|
domid_t domid;
|
||||||
/* IN */
|
/* IN */
|
||||||
int pirq;
|
int32_t pirq;
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct physdev_unmap_pirq physdev_unmap_pirq_t;
|
typedef struct physdev_unmap_pirq physdev_unmap_pirq_t;
|
||||||
@@ -224,7 +224,7 @@ DEFINE_XEN_GUEST_HANDLE(physdev_op_t);
|
|||||||
|
|
||||||
#define PHYSDEVOP_setup_gsi 21
|
#define PHYSDEVOP_setup_gsi 21
|
||||||
struct physdev_setup_gsi {
|
struct physdev_setup_gsi {
|
||||||
int gsi;
|
int32_t gsi;
|
||||||
/* IN */
|
/* IN */
|
||||||
uint8_t triggering;
|
uint8_t triggering;
|
||||||
/* IN */
|
/* IN */
|
||||||
@@ -242,7 +242,7 @@ DEFINE_XEN_GUEST_HANDLE(physdev_setup_gsi_t);
|
|||||||
#define PHYSDEVOP_get_free_pirq 23
|
#define PHYSDEVOP_get_free_pirq 23
|
||||||
struct physdev_get_free_pirq {
|
struct physdev_get_free_pirq {
|
||||||
/* IN */
|
/* IN */
|
||||||
int type;
|
int32_t type;
|
||||||
/* OUT */
|
/* OUT */
|
||||||
uint32_t pirq;
|
uint32_t pirq;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -116,14 +116,14 @@
|
|||||||
/* ` } */
|
/* ` } */
|
||||||
|
|
||||||
struct sched_shutdown {
|
struct sched_shutdown {
|
||||||
unsigned int reason; /* SHUTDOWN_* => enum sched_shutdown_reason */
|
uint32_t reason; /* SHUTDOWN_* => enum sched_shutdown_reason */
|
||||||
};
|
};
|
||||||
typedef struct sched_shutdown sched_shutdown_t;
|
typedef struct sched_shutdown sched_shutdown_t;
|
||||||
DEFINE_XEN_GUEST_HANDLE(sched_shutdown_t);
|
DEFINE_XEN_GUEST_HANDLE(sched_shutdown_t);
|
||||||
|
|
||||||
struct sched_poll {
|
struct sched_poll {
|
||||||
XEN_GUEST_HANDLE(evtchn_port_t) ports;
|
XEN_GUEST_HANDLE(evtchn_port_t) ports;
|
||||||
unsigned int nr_ports;
|
uint32_t nr_ports;
|
||||||
uint64_t timeout;
|
uint64_t timeout;
|
||||||
};
|
};
|
||||||
typedef struct sched_poll sched_poll_t;
|
typedef struct sched_poll sched_poll_t;
|
||||||
@@ -131,7 +131,7 @@ DEFINE_XEN_GUEST_HANDLE(sched_poll_t);
|
|||||||
|
|
||||||
struct sched_remote_shutdown {
|
struct sched_remote_shutdown {
|
||||||
domid_t domain_id; /* Remote domain ID */
|
domid_t domain_id; /* Remote domain ID */
|
||||||
unsigned int reason; /* SHUTDOWN_* => enum sched_shutdown_reason */
|
uint32_t reason; /* SHUTDOWN_* => enum sched_shutdown_reason */
|
||||||
};
|
};
|
||||||
typedef struct sched_remote_shutdown sched_remote_shutdown_t;
|
typedef struct sched_remote_shutdown sched_remote_shutdown_t;
|
||||||
DEFINE_XEN_GUEST_HANDLE(sched_remote_shutdown_t);
|
DEFINE_XEN_GUEST_HANDLE(sched_remote_shutdown_t);
|
||||||
|
|||||||
@@ -63,7 +63,7 @@
|
|||||||
#define VCPUOP_get_runstate_info 4
|
#define VCPUOP_get_runstate_info 4
|
||||||
struct vcpu_runstate_info {
|
struct vcpu_runstate_info {
|
||||||
/* VCPU's current state (RUNSTATE_*). */
|
/* VCPU's current state (RUNSTATE_*). */
|
||||||
int state;
|
int32_t state;
|
||||||
/* When was current state entered (system time, ns)? */
|
/* When was current state entered (system time, ns)? */
|
||||||
uint64_t state_entry_time;
|
uint64_t state_entry_time;
|
||||||
/*
|
/*
|
||||||
|
|||||||