.bdrv_ioctl = raw_ioctl,
};
-#endif CONFIG_STUBDOM
+#endif /* CONFIG_STUBDOM */
}
for (i = 0; i < 0x10 * s->sectors_per_cluster; i++) {
- int cluster_count;
+ int cluster_count = 0;
DLOG(fprintf(stderr, "check direntry %d: \n", i); print_direntry(direntries + i));
if (is_volume_label(direntries + i) || is_dot(direntries + i) ||
#include "irq.h"
#include "qemu-xen.h"
#include "net.h"
+#include "xen_platform.h"
#include <assert.h>
#include <xenguest.h>
}
}
-void platform_fixed_ioport_save(QEMUFile *f, void *opaque)
+static void platform_fixed_ioport_save(QEMUFile *f, void *opaque)
{
qemu_put_8s(f, &platform_flags);
}
-int platform_fixed_ioport_load(QEMUFile *f, void *opaque, int version_id)
+static int platform_fixed_ioport_load(QEMUFile *f, void *opaque, int version_id)
{
uint8_t flags;
return ret;
}
-#endif CONFIG_STUBDOM
+#endif /* CONFIG_STUBDOM */
#define qemu_isascii(c) isascii((unsigned char)(c))
#define qemu_toascii(c) toascii((unsigned char)(c))
-#define CTYPE(isfoobar,argumentchar) (isfoobar((unsigned char)(argumentchar)))
- /* One must not pass a plain `char' to isupper, toupper, et al. If
- * it has the top bit set (ie, is negative if your chars are
- * signed), undefined behaviour results. The <ctype.h> functions
- * are defined to take the value of an unsigned char, as an int.
- * So use this macro. You may pass toupper et al for isfoobar.
- * Do not pass EOF as a character to this macro. If you might have
- * EOF then you ought to have it in an int representing an unsigned
- * char, which is safe for the ctype macros directly. Or test separately.
- * Obviously don't use this for floating point things like isnan! */
-
void *qemu_malloc(size_t size);
void *qemu_realloc(void *ptr, size_t size);
void *qemu_mallocz(size_t size);
/* xen_platform.c */
#ifndef QEMU_TOOL
-void pci_xen_platform_init(PCIBus *bus);
void xen_vga_populate_vram(uint64_t vram_addr, uint32_t size);
void xen_vga_vram_map(uint64_t vram_addr, uint32_t size);
void set_vram_mapping(void *opaque, unsigned long begin, unsigned long end);
acpi_php_add(pci_slot);
}
-#endif
int pci_emulation_add(char *config_text)
{
PciEmulationInfoHead = new;
return 0;
}
+#endif