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.


Added intial cut at IDE disk support
[palacios.git] / palacios / include / devices / ide.h
index 4dce588..e0356b2 100644 (file)
@@ -24,6 +24,9 @@
 #include <palacios/vm_dev.h>
 
 
+#define ATAPI_BLOCK_SIZE 2048
+#define IDE_SECTOR_SIZE 512
+
 typedef enum {IDE_DISK, IDE_CDROM, IDE_NONE} v3_ide_dev_type_t;
 
 struct v3_ide_cd_ops {
@@ -35,7 +38,9 @@ struct v3_ide_cd_ops {
 
 
 struct v3_ide_hd_ops {
-    
+    uint32_t (*get_capacity)(void * private_data);
+    // Reads always operate on 2048 byte blocks
+    int (*read)(uint8_t * buf, int count, int lba, void * private_data);    
 
 };