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.


modified copyright tags
[palacios.git] / palacios / include / devices / generic.h
index 05d9198..c4a38b6 100644 (file)
@@ -1,3 +1,6 @@
+/* (c) 2008, Peter Dinda <pdinda@northwestern.edu> */
+/* (c) 2008, The V3VEE Project <http://www.v3vee.org> */
+
 #ifndef __GENERIC_H
 #define __GENERIC_H
 
 //
 
 
-// A port range is low..high, inclusive
-typedef uint_t generic_port_range_type[2];
-// A memory range is low..high, inclusive
-typedef void *generic_address_range_type[2];
-// An interrupt ory map range is low..high, inclusive
-typedef uint_t generic_irq_range_type[2];
+#define GENERIC_PRINT_AND_PASSTHROUGH 0
+#define GENERIC_PRINT_AND_IGNORE      1
+
+// A port range is low..high, inclusive, third value is one of the above
+typedef uint_t generic_port_range_type[3];
+// A memory range is low..high, inclusive, flags
+typedef void *generic_address_range_type[3];
+// An interrupt ory map range is low..high, inclusive, flags
+typedef uint_t generic_irq_range_type[3];
 
+// The lists given are null terminated
 struct vm_device *create_generic(generic_port_range_type    port_ranges[], 
-                                uint_t                     num_port_ranges,
                                 generic_address_range_type addess_ranges[],
-                                uint_t                     num_address_ranges,
-                                generic_irq_range_type     irq_ranges[],
-                                uint_t                     num_irqranges);
+                                generic_irq_range_type     irq_ranges[]);  
 
 #endif