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.
6 * The V3VEE Project is a joint project between Northwestern University
7 * and the University of New Mexico. You can find out more at
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.
14 * Author: Jack Lange <jarusl@cs.northwestern.edu>
16 * This is free software. You are permitted to use,
17 * redistribute, and modify it as specified in the file "V3VEE_LICENSE".
21 #ifndef __DEVICES_IDE_TYPES_H__
22 #define __DEVICES_IDE_TYPES_H__
26 #include <palacios/vmm_types.h>
29 struct ide_error_reg {
33 uint_t addr_mark_nf : 1;
39 uint_t data_error : 1;
41 } __attribute__((packed));
42 } __attribute__((packed));
43 } __attribute__((packed));
46 struct ide_drive_head_reg {
55 } __attribute__((packed));
56 } __attribute__((packed));
57 } __attribute__((packed));
59 struct ide_status_reg {
67 uint_t seek_complete : 1;
68 uint_t write_fault : 1;
71 } __attribute__((packed));
72 } __attribute__((packed));
73 } __attribute__((packed));
76 struct ide_drive_ctrl_reg {
81 uint_t irq_enable : 1;
82 uint_t soft_reset : 1;
84 } __attribute__((packed));
85 } __attribute__((packed));
86 } __attribute__((packed));
89 struct ide_features_reg {
92 } __attribute__((packed));
93 } __attribute__((packed));
97 READ_SECT_W_RETRY = 0x20,
99 READ_LONG_W_RETRY = 0x22,
101 READ_VRFY_SECT_W_RETRY = 0x40,
102 READ_VRFY_SECT = 0x41,
104 EXEC_DRV_DIAG = 0x90,
105 INIT_DRIVE_PARAM = 0x91,
112 #endif // ! __V3VEE__