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.


b778f1efa334ebabf4bf431308f943684d9a139f
[palacios.git] / palacios / include / devices / ide.h
1 /* 
2  * This file is part of the Palacios Virtual Machine Monitor developed
3  * by the V3VEE Project with funding from the United States National 
4  * Science Foundation and the Department of Energy.  
5  *
6  * The V3VEE Project is a joint project between Northwestern University
7  * and the University of New Mexico.  You can find out more at 
8  * http://www.v3vee.org
9  *
10  * Copyright (c) 2008, Jack Lange <jarusl@cs.northwestern.edu> 
11  * Copyright (c) 2008, The V3VEE Project <http://www.v3vee.org> 
12  * All rights reserved.
13  *
14  * Author: Jack Lange <jarusl@cs.northwestern.edu>
15  *
16  * This is free software.  You are permitted to use,
17  * redistribute, and modify it as specified in the file "V3VEE_LICENSE".
18  */
19
20 #ifndef __DEVICES_IDE_H__
21 #define __DEVICES_IDE_H__
22
23 #ifdef __V3VEE__
24
25 #include <devices/block_dev.h>
26
27 struct ide_cfg {
28     char pci[32];
29     char southbridge[32];
30 };
31
32
33 int v3_ide_register_cdrom(struct vm_device * ide, 
34                           uint_t bus_num, 
35                           uint_t drive_num, 
36                           char * drive_name,
37                           struct v3_cd_ops * ops, 
38                           void * private_data);
39
40 int v3_ide_register_harddisk(struct vm_device * ide, 
41                              uint_t bus_num, 
42                              uint_t drive_num, 
43                              char * drive_name,
44                              struct v3_hd_ops * ops, 
45                              void * private_data);
46
47
48
49
50
51 int v3_ide_get_geometry(struct vm_device * ide_dev, int channel_num, int drive_num, 
52                         uint32_t * cylinders, uint32_t * heads, uint32_t * sectors);
53
54
55 #endif // ! __V3VEE__
56
57
58 #endif
59