X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Finclude%2Fdevices%2Fide.h;h=85c26af624e453ba47cf07bff1d66b7712ed91a4;hb=5db3136d5331c355c188537c68005db8d2cb4eac;hp=940882b53ce4af6ddbd1c7e9e8bcdb68adb6da30;hpb=30f88bcf48e9bf46f69a8ef16dbadfe66ce145c9;p=palacios.releases.git diff --git a/palacios/include/devices/ide.h b/palacios/include/devices/ide.h index 940882b..85c26af 100644 --- a/palacios/include/devices/ide.h +++ b/palacios/include/devices/ide.h @@ -1,3 +1,39 @@ +/* + * Copyright (C) 2002 MandrakeSoft S.A. + * + * MandrakeSoft S.A. + * 43, rue d'Aboukir + * 75002 Paris - France + * http://www.linux-mandrake.com/ + * http://www.mandrakesoft.com/ + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + * Major modifications made for the V3VEE project + * + * The V3VEE Project is a joint project between Northwestern University + * and the University of New Mexico. You can find out more at + * http://www.v3vee.org + * + * Copyright (c) 2008, Zheng Cui + * Copyright (c) 2008, Jack Lange + * Copyright (c) 2008, The V3VEE Project + * All rights reserved for original changes + * + */ + #ifndef __IDE_H__ #define __IDE_H__ @@ -5,7 +41,7 @@ #ifdef __V3VEE__ #include -#ifdef __V3_32BIT__ + typedef long off_t; typedef sint32_t ssize_t; typedef unsigned int rd_bool; @@ -13,9 +49,11 @@ typedef uchar_t Bit8u; typedef ushort_t Bit16u; typedef uint32_t Bit32u; typedef uint64_t Bit64u; -#endif + +#define MAX_ATA_CHANNEL 4 + typedef enum _sense { SENSE_NONE = 0, SENSE_NOT_READY = 2, @@ -184,9 +222,12 @@ struct channel_t { +struct ramdisk_t { + struct channel_t channels[MAX_ATA_CHANNEL]; +}; + -struct ramdisk_t;