/*
 *              Copyright (C) 2005, BroadOn Communications Corp.
 *
 * These coded instructions, statements, and computer programs contain
 * unpublished  proprietary information of BroadOn Communications Corp.,
 * and  are protected by Federal copyright law. They may not be disclosed
 * to  third  parties or copied or duplicated in any form, in whole or in
 * part, without the prior written consent of BroadOn Communications Corp.
 *
 */

#ifndef __NC_USB_MSD_DISK_H_
#define __NC_USB_MSD_DISK_H_

#define DISK_IMAGE_FILE   "/sys/setup.msd"

IOSError msdOpen(IOSResourceRequest *req);
IOSError msdClose(IOSResourceRequest *req);
IOSError msdRead(IOSResourceRequest *req);
IOSError msdWrite(IOSResourceRequest *req);
IOSError msdIoctl(IOSResourceRequest *req);

IOSError msdInit(int iso);
IOSError msdExit();
IOSError msdReset();
IOSError msdSuspend();
IOSError msdUnplug();
int msdClassReq(USBSetupPacket *r, u8 *buf);

IOSError msdEp0Recv(int evt, int len);
IOSError msdEp0Send(int evt, int len);
IOSError msdEp1Recv(int evt, int len);
IOSError msdEp1Send(int evt, int len);
IOSError msdEp2Send(int evt, int len);
IOSError msdEp3Recv(int evt, int len);

#endif

