Modules/USB MSC - Error handling and fix for Tegra2 Qemu
[tpg/acess2.git] / KernelLand / Modules / USB / MSC / common.h
1 /*
2  * Acess2 USB Stack Mass Storage Driver
3  * - By John Hodge (thePowersGang)
4  *
5  * common.h
6  * - Common header
7  */
8 #ifndef _MSC__COMMON_H_
9 #define _MSC__COMMON_H_
10
11 #include <usb_core.h>
12 #include <Storage/LVM/include/lvm.h>
13
14 typedef struct sMSCInfo tMSCInfo;
15
16 struct sMSCInfo
17 {
18         Uint64  BlockCount;
19         size_t  BlockSize;
20 };
21
22 extern int      MSC_SendData(tUSBInterface *Dev, size_t CmdLen, const void *CmdData, size_t DataLen, const void *Data);
23 extern int      MSC_RecvData(tUSBInterface *Dev, size_t CmdLen, const void *CmdData, size_t DataLen, void *Data);
24
25 extern tLVM_VolType     gMSC_SCSI_VolType;
26 extern Uint64 MSC_SCSI_GetSize(tUSBInterface *Dev, size_t *BlockSize);
27 #endif
28

UCC git Repository :: git.ucc.asn.au