*/
-#ifndef __8237_DMA_H
-#define __8237_DMA_H
+#ifndef __DEVICES_8237_DMA_H__
+#define __DEVICES_8237_DMA_H__
+
+#ifdef __V3VEE__
#include <palacios/vm_dev.h>
struct vm_device * create_dma();
-
+#endif // ! __V3VEE__
#endif
* redistribute, and modify it as specified in the file "V3VEE_LICENSE".
*/
-#ifndef __8254_H
-#define __8254_H
+#ifndef __DEVICES_8254_H__
+#define __DEVICES_8254_H__
-#include <palacios/vm_dev.h>
+#ifdef __V3VEE__
-struct vm_device * create_pit();
+#include <palacios/vm_dev.h>
+struct vm_device * create_pit();
+#endif // ! __V3VEE__
#endif
* redistribute, and modify it as specified in the file "V3VEE_LICENSE".
*/
-#ifndef __8259A_H
-#define __8259A_H
+#ifndef __DEVICES_8259A_H__
+#define __DEVICES_8259A_H__
+
+#ifdef __V3VEE__
+
-#include <palacios/vm_dev.h>
+#include <palacios/vm_dev.h>
struct vm_device * create_pic();
+
+#endif // ! __V3VEE__
+
#endif
* redistribute, and modify it as specified in the file "V3VEE_LICENSE".
*/
-#ifndef __DEVICES_CDROM_H_
-#define __DEVICES_CDROM_H_
+#ifndef __DEVICES_CDROM_H__
+#define __DEVICES_CDROM_H__
#ifdef __V3VEE__
*/
-#ifndef __GENERIC_H__
-#define __GENERIC_H__
+#ifndef __DEVICES_GENERIC_H__
+#define __DEVICES_GENERIC_H__
+
+#ifdef __V3VEE__
+
#include <palacios/vm_dev.h>
// The lists given are null terminated
struct vm_device * create_generic();
+
+#endif // ! __V3VEE__
+
#endif
*
*/
-#ifndef __IDE_H__
-#define __IDE_H__
-
+#ifndef __DEVICES_IDE_H__
+#define __DEVICES_IDE_H__
#ifdef __V3VEE__
+
+
#include <palacios/vmm_types.h>
* redistribute, and modify it as specified in the file "V3VEE_LICENSE".
*/
-#ifndef __KEYBOARD_H
-#define __KEYBOARD_H
+#ifndef __DEVICES_KEYBOARD_H__
+#define __DEVICES_KEYBOARD_H__
+
+#ifdef __V3VEE__
+
+
#include <palacios/vm_dev.h>
struct vm_device *create_keyboard();
+
+
+#endif // ! __V3VEE__
+
#endif
* redistribute, and modify it as specified in the file "V3VEE_LICENSE".
*/
-#ifndef __NVRAM_H
-#define __NVRAM_H
+#ifndef __DEVICES_NVRAM_H__
+#define __DEVICES_NVRAM_H__
+
+#ifdef __V3VEE__
+
#include <palacios/vm_dev.h>
struct vm_device *create_nvram();
-// The host os needs to call this
-void deliver_timer_interrupt_to_vmm(uint_t period_us);
+
+
+#endif // ! __V3VEE__
#endif
* redistribute, and modify it as specified in the file "V3VEE_LICENSE".
*/
-#ifndef __DEVICES_RAMDISK_H_
-#define __DEVICES_RAMDISK_H_
+#ifndef __DEVICES_RAMDISK_H__
+#define __DEVICES_RAMDISK_H__
+
+#ifdef __V3VEE__
+
+
#include <palacios/vmm_types.h>
#include <palacios/vm_dev.h>
int v3_ramdisk_register_cdrom(struct vm_device * ide_dev, uint_t busID, uint_t driveID, struct cdrom_ops * cd, void * private_data);
-struct vm_device * create_ramdisk(void);
+struct vm_device * create_ramdisk();
+
+
+#endif // ! __V3VEE__
#endif
*/
-#ifndef __SERIAL_H__
-#define __SERIAL_H__
+#ifndef __DEVICES_SERIAL_H__
+#define __DEVICES_SERIAL_H__
+
+#ifdef __V3VEE__
#include <palacios/vm_dev.h>
+struct vm_device * create_serial();
+
-struct vm_device * create_serial();
+#endif // ! __V3VEE__
#endif
* redistribute, and modify it as specified in the file "V3VEE_LICENSE".
*/
-#ifndef __SIMPLE_PIC_H
-#define __SIMPLE_PIC_H
+#ifndef __DEVICES_SIMPLE_PIC_H__
+#define __DEVICES_SIMPLE_PIC_H__
+
+#ifdef __V3VEE__
+
+
#include <palacios/vm_dev.h>
struct vm_device * create_simple_pic();
+
+#endif // ! __V3VEE__
+
#endif
* redistribute, and modify it as specified in the file "V3VEE_LICENSE".
*/
-#ifndef __TIMER_H
-#define __TIMER_H
+#ifndef __DEVICES_TIMER_H__
+#define __DEVICES_TIMER_H__
-#include <palacios/vm_dev.h>
+#ifdef __V3VEE__
+#include <palacios/vm_dev.h>
struct vm_device * create_timer();
+#endif // ! __V3VEE__
#endif