/* -*- linux-c -*- * Copyright (c) 2004-2006 Winbond Electronics Corp. All rights reserved. * * The contents of this file are subject to the Open * Software License version 1.1 that can be found at * http://www.opensource.org/licenses/osl-1.1.txt and is included herein * by reference. * * Alternatively, the contents of this file may be used under the terms * of the GNU General Public License version 2 (the "GPL") as distributed * in the kernel source COPYING file, in which case the provisions of * the GPL are applicable instead of the above. If you wish to allow * the use of your version of this file only under the terms of the * GPL and not to allow others to use your version of this file under * the OSL, indicate your decision by deleting the provisions above and * replace them with the notice and other provisions required by the GPL. * If you do not delete the provisions above, a recipient may use your * version of this file under either the OSL or the GPL. * Maintained by: Weiming Shuai Jin Yuan Mu Dezheng Shen $Author: sjin $ $Id: wbvirtualdev.h,v 1.4.2.4 2006/06/22 06:06:13 sjin Exp $ --- don't modify lines above --- Description: Enviornments: (1) RedHat 9 on 32-bit Intel UP/32-bit Intel dual-core (2) Fedora Core 4 (2.6.11) on 32-bit Intel/32-bit Intel dual-core/64-bit AMD/64-bit Intel dual-core (3) RedHat Enterprise Workstatin Rel 4 UP2 (2.6.9) on 32-bit Intel 32-bit Intel dual-core/64-bit AMD/64-bit Intel dual-core */ #ifndef _WB_VIRTUAL_DEV_H_ #define _WB_VIRTUAL_DEV_H_ static void *wbvdev_detect(void); static int wbvdev_release(void); // the number of total sectors in this virtual device static int wbvdev_get_capacity(void); static int wbvdev_read_wrt(unsigned int start_lba, unsigned int length, unsigned char *buffer, unsigned char read_wrt_flag); #define WB_VIRTUAL_STATE_PROTECTED (1) #define WB_VIRTUAL_STATE_PRESENT (1 << 1) #define WB_VIRTUAL_STATE_CHANGED (1 << 2) static unsigned char wbvdev_get_state(int which_state); static void wbvdev_set_state(int which_state, unsigned char state); static int wbvdev_init_card(void); #endif /* _WB_VIRTUAL_DEV_H_ */