Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


reformatting include files
[palacios.git] / palacios / include / palacios / vm_dev.h
index 8bd93a9..6c7d77f 100644 (file)
@@ -33,40 +33,40 @@ struct vm_device;
 
 
 struct vm_device_ops {
-  int (*init)(struct vm_device *dev);
-  int (*deinit)(struct vm_device *dev);
+    int (*init)(struct vm_device *dev);
+    int (*deinit)(struct vm_device *dev);
 
 
-  int (*reset)(struct vm_device *dev);
+    int (*reset)(struct vm_device *dev);
 
-  int (*start)(struct vm_device *dev);
-  int (*stop)(struct vm_device *dev);
+    int (*start)(struct vm_device *dev);
+    int (*stop)(struct vm_device *dev);
 
 
-  //int (*save)(struct vm_device *dev, struct *iostream);
-  //int (*restore)(struct vm_device *dev, struct *iostream);
+    //int (*save)(struct vm_device *dev, struct *iostream);
+    //int (*restore)(struct vm_device *dev, struct *iostream);
 };
 
 
 
 struct vm_device {
-  char name[32];
+    char name[32];
   
-  void *private_data;
+    void *private_data;
 
-  struct vm_device_ops * ops;
+    struct vm_device_ops * ops;
 
-  struct guest_info * vm;
+    struct guest_info * vm;
 
-  struct list_head dev_link;
+    struct list_head dev_link;
 
 
-  uint_t num_io_hooks;
-  struct list_head io_hooks;
-  uint_t num_mem_hooks;
-  struct list_head mem_hooks;
-  uint_t num_irq_hooks;
-  struct list_head irq_hooks;
+    uint_t num_io_hooks;
+    struct list_head io_hooks;
+    uint_t num_mem_hooks;
+    struct list_head mem_hooks;
+    uint_t num_irq_hooks;
+    struct list_head irq_hooks;
 
 };
 
@@ -79,25 +79,25 @@ void v3_free_device(struct vm_device * dev);
 
 
 int v3_dev_hook_io(struct vm_device   *dev,
-               ushort_t            port,
-               int (*read)(ushort_t port, void * dst, uint_t length, struct vm_device * dev),
-               int (*write)(ushort_t port, void * src, uint_t length, struct vm_device * dev));
+                  ushort_t            port,
+                  int (*read)(ushort_t port, void * dst, uint_t length, struct vm_device * dev),
+                  int (*write)(ushort_t port, void * src, uint_t length, struct vm_device * dev));
 
 int v3_dev_unhook_io(struct vm_device   *dev,
-                 ushort_t            port);
+                    ushort_t            port);
 
 int v3_dev_hook_mem(struct vm_device   *dev,
-                void               *start,
-                void               *end);
+                   void               *start,
+                   void               *end);
 
 int v3_dev_unhook_mem(struct vm_device   * dev,
-                  void               * start,
-                  void               * end);
+                     void               * start,
+                     void               * end);
 
 
 int v3_dev_hook_irq(struct vm_device * dev,
-                uint_t irq, 
-                int (*handler)(uint_t irq, struct vm_device * dev));
+                   uint_t irq, 
+                   int (*handler)(uint_t irq, struct vm_device * dev));
 int v3_dev_unhook_irq(struct vm_device * dev, uint_t irq);