/*
 *               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 __IOS_USB_H__
#define __IOS_USB_H__
#include <iosusbtypes.h>
IOSError IUSB_GetAsciiStr(IOSFd fd, u8 ep, u16 index, u16 langId,
        char *buf, u16 buflen);
IOSError IUSB_GetDevDescr(IOSFd fd, struct USB_DevDescr *d);
IOSError IUSB_ReadCtrlMsg(IOSFd fd, u8 reqType, u8 request, u16 value,
             u16 index, u16 length, char *data);
IOSError IUSB_WriteCtrlMsg(IOSFd fd, u8 reqType, u8 request, u16 value,
             u16 index, u16 length, char *data);
IOSError IUSB_ReadIntrMsg(IOSFd fd, u32 ep, u32 buflen, char *buf);
IOSError IUSB_WriteIntrMsg(IOSFd fd, u32 ep, u32 buflen, char *buf);
IOSError IUSB_ReadBlkMsg(IOSFd fd, u32 ep, u32 buflen, char *buf);
IOSError IUSB_WriteBlkMsg(IOSFd fd, u32 ep, u32 buflen, char *buf);
IOSError IUSB_IsoMsgAsync(IOSFd fd, u8 *ep, u16 *buflen, u8 *buf,
        u16 *pktSize, IOSMessageQueueId mqid, IOSResourceRequest *reply,
        u8 *vecBuf);
IOSError IUSB_SuspendDevice(IOSFd fd);
IOSError IUSB_ResumeDevice(IOSFd fd);
IOSError IUSB_GetDeviceList(const char *path, USBDeviceInfo *deviceList, u8 maxDev, u8 deviceClass, u8 *numDev);
IOSError IUSB_GetRhDesca(IOSFd fd, u32 *desca);
IOSError IUSB_GetRhPortStatus(IOSFd fd, u8 port, u32 *stat);
IOSError IUSB_SetRhPortStatus(IOSFd fd, u8 port, u32 stat);
IOSError IUSB_RegisterRemovalNotify(IOSFd fd, IOSMessageQueueId mqid, IOSResourceRequest *reply);
IOSError IUSB_RegisterInsertionNotify(const char *path, IOSMessageQueueId mqid, IOSResourceRequest *reply, u16 *vid, u16 *pid, u8 *buf);
#endif /* __IOS_USB_H__ */
