Home
last modified time | relevance | path

Searched refs:uPort (Results 1 – 25 of 40) sorted by relevance

12

/utopia/UTPA2-700.0.x/modules/usb/drv/usb_ecos/newhost/
H A DdrvMSC.c102 extern VOID RemoveUSBDiskPort(U8 uPort, U8 uLunNum);
103 extern BOOL ConnectUSBDisk(U8 uPort, U8 uLunNum);
348 BOOL ms_bSCSI_REQ_SENSE(U8 uPort, U8 uLunNum, U8 *pSenseBuf)
356 if ( (pMass_stor = Mass_stor_us[uPort]) == NULL)
389 static BOOL ms_bSCSI_INQUIRY(U8 uPort, U8 uLunNum, U8 *pIngBuf) in ms_bSCSI_INQUIRY() argument
396 if ( (pMass_stor = Mass_stor_us[uPort]) == NULL) in ms_bSCSI_INQUIRY()
405 if ( (pMass_stor = Mass_stor_us[uPort]) == NULL) in ms_bSCSI_INQUIRY()
431 static BOOL ms_bSCSI_MODE_SENSE(U8 uPort, U8 uLunNum, U8 *pModSenBuf, U16 uBufLen) in ms_bSCSI_MODE_SENSE() argument
438 if ( (pMass_stor = Mass_stor_us[uPort]) == NULL) in ms_bSCSI_MODE_SENSE()
447 if ( (pMass_stor = Mass_stor_us[uPort]) == NULL) in ms_bSCSI_MODE_SENSE()
[all …]
H A DdrvUSBDisk.c99 int uPort; member
172 uPort: _port_ , \
287 if ((usb_info->uPort == -1) || in usb_disk_read()
295 if (ms_bSCSI_Read_10(usb_info->uPort, usb_info->uLunNum, block_num, in usb_disk_read()
301 usb_info->uPort, usb_info->uLunNum, block_num, len , (int)buf); in usb_disk_read()
324 if ((usb_info->uPort == -1) || in usb_disk_write()
333 if (ms_bSCSI_Write_10(usb_info->uPort, usb_info->uLunNum, block_num, in usb_disk_write()
352 if ((usb_info->uPort == -1) || in usb_disk_get_config()
363 LunDevice = Mass_stor_us[usb_info->uPort]->msc_device; in usb_disk_get_config()
441 host_id = Mass_stor_us[p_usb_info->uPort]->host_id; in MDrv_USB_MscLookupHostID()
[all …]
H A DdrvMSC.h170 extern BOOL ms_bSCSI_Read_10(U8 uPort, unsigned char uLunNum, U32 u32BlockAddr, U32 u32BlockNum, un…
171 extern BOOL ms_bSCSI_Write_10(U8 uPort, unsigned char uLunNum, U32 u32BlockAddr, U32 u32BlockNum, u…
/utopia/UTPA2-700.0.x/modules/usb/drv/usb_ecos/usbhost/
H A DdrvSCSI.c109 BOOL bSCSI_Initial(U8 uPort);
110 BOOL bInit_USB_Disk(U8 uPort);
111 BOOL bSCSI_ERASE(U8 uPort, U8 uLunNum, U32 u32BlockAddr, U32 u32BlockNum,
113 BOOL bSCSI_Read_10(U8 uPort, U8 uLunNum, U32 u32BlockAddr, U32 u32BlockNum,
115 BOOL bSCSI_Write_10(U8 uPort, U8 uLunNum, U32 u32BlockAddr, U32 u32BlockNum,
117 BOOL bSCSI_Read_10_512(U8 uPort, U8 uLunNum, U32 u32BlockAddr, U32 u32BlockNum,
119 BOOL bSCSI_Write_10_512(U8 uPort, U8 uLunNum, U32 u32BlockAddr, U32 u32BlockNum,
121 VOID RemoveUSBDiskPort(U8 uPort, U8 uLunNum);
122 BOOL ConnectUSBDisk(U8 uPort, U8 uLunNum);
390 BOOL bSCSI_REQ_SENSE(U8 uPort, U8 uLunNum, U8 *pSenseBuf) in bSCSI_REQ_SENSE() argument
[all …]
H A DdrvUSBDisk.c94 extern void RemoveUSBDiskPort(U8 uPort, U8 uLunNum);
100 int uPort; member
174 uPort: _port_ , \
282 if ((usb_info->uPort == -1) || in usb_disk_read()
290 if (bSCSI_Read_10(usb_info->uPort, usb_info->num, block_num, in usb_disk_read()
296 usb_info->uPort, usb_info->num, block_num, len , (int)buf); in usb_disk_read()
316 if ((usb_info->uPort == -1) || in usb_disk_write()
325 if (bSCSI_Write_10(usb_info->uPort, usb_info->num, block_num, in usb_disk_write()
408 host_id = Mass_stor_us[p_usb_info->uPort]->host_id; in MDrv_USB_MscLookupHostID()
436 pstr = Mass_stor_us[p_usb_info->uPort]->pusb_dev->product; in MDrv_USB_MscLookupProductString()
[all …]
H A DdrvMassStor.h255 extern void vChk_USB_LUNs(U8 uPort);
261 static inline void Clr_Stor_Dev_Info(MS_U8 uPort) in Clr_Stor_Dev_Info() argument
263 Mass_stor_us[uPort] = NULL; in Clr_Stor_Dev_Info()
266 static inline BOOL Is_Stor_Dev_Info_Valid(MS_U8 uPort) in Is_Stor_Dev_Info_Valid() argument
268 return (Mass_stor_us[uPort] != NULL); in Is_Stor_Dev_Info_Valid()
271 static inline BOOL Is_Stor_Dev_Init(MS_U8 uPort) in Is_Stor_Dev_Init() argument
273 return (Mass_stor_us[uPort]->bDevInit); in Is_Stor_Dev_Init()
276 static inline void Set_Stor_Dev_Init(MS_U8 uPort, BOOL bInit) in Set_Stor_Dev_Init() argument
278 Mass_stor_us[uPort]->bDevInit = bInit; in Set_Stor_Dev_Init()
281 static inline unsigned char Get_Stor_Max_Lun(MS_U8 uPort) in Get_Stor_Max_Lun() argument
[all …]
H A DdrvSCSI.h506 extern BOOL bSCSI_INQUIRY(U8 uPort, unsigned char uLunNum, unsigned char *pIngBuf);
507 extern BOOL bSCSI_READ_CAPACITY(U8 uPort, unsigned char uLunNum,
510 extern BOOL bSCSI_TEST_UNIT_READY(U8 uPort, unsigned char uLunNum, BOOL CheckCBI); //GGYY
511 extern BOOL bInit_USB_Disk(U8 uPort);
512 extern BOOL bSCSI_Read_10(U8 uPort,
518 extern BOOL bSCSI_Write_10(U8 uPort,
524 extern BOOL bSCSI_Read_10_512(U8 uPort,
530 extern BOOL bSCSI_Write_10_512(U8 uPort,
536 extern BOOL bIsDevValid(U8 uPort, unsigned char LunNum);
537 extern unsigned char u8GetDevType(U8 uPort, unsigned char LunNum);
[all …]
H A DdrvUSBEntry.c756 extern int usb_hid_get_int_ex (U8 uPort, U8 *Buf, U8 size);
757 extern int usb_hid_get_int_ex_MultipleIntf (U8 uPort, U8 uIntfNum, U8 *Buf, U8 size);
1368 MS_U32 MDrv_GetUsbBlockSizeEx(MS_U8 uPort, MS_U8 lun) in MDrv_GetUsbBlockSizeEx() argument
1372 if ( (Mass_stor_us[uPort] != NULL) && (lun <= Mass_stor_us[uPort]->max_lun) ) in MDrv_GetUsbBlockSizeEx()
1374 uBlkSize = Mass_stor_us[uPort]->Mass_stor_device[lun].u32BlockSize; in MDrv_GetUsbBlockSizeEx()
1392 MS_U32 MDrv_GetUsbBlockNumEx(MS_U8 uPort, MS_U8 lun) in MDrv_GetUsbBlockNumEx() argument
1396 if ( (Mass_stor_us[uPort] != NULL) && (lun <= Mass_stor_us[uPort]->max_lun) ) in MDrv_GetUsbBlockNumEx()
1398 uTotalBlks = Mass_stor_us[uPort]->Mass_stor_device[lun].u32BlockTotalNum; in MDrv_GetUsbBlockNumEx()
1412 MS_U8 MDrv_UsbGetMaxLUNCountEx(MS_U8 uPort) in MDrv_UsbGetMaxLUNCountEx() argument
1414 if (Mass_stor_us[uPort] != NULL) in MDrv_UsbGetMaxLUNCountEx()
[all …]
H A DdrvUSB.h150 MS_BOOL MDrv_UsbBlockReadToMIUEx(MS_U8 uPort,MS_U8 lun, MS_U32 u32BlockAddr, MS_U32 u32BlockNum, MS…
151 MS_BOOL MDrv_UsbBlockWriteFromMIUEx(MS_U8 uPort,MS_U8 lun, MS_U32 u32BlockAddr, MS_U32 u32BlockNum,…
168 MS_U32 MDrv_GetUsbBlockSizeEx(MS_U8 uPort, MS_U8 lun);
169 MS_U32 MDrv_GetUsbBlockNumEx(MS_U8 uPort, MS_U8 lun);
173 MS_U8 MDrv_UsbGetMaxLUNCountEx(MS_U8 uPort);
176 MS_BOOL ChkUsbReadyEx(MS_U8 uPort);
177 MS_BOOL MDrv_UsbIsLunConnected(MS_U8 uPort, MS_U8 lun);
/utopia/UTPA2-700.0.x/modules/usb/hal/messi/usbhost/
H A DhalUSB.c26 void HAL_USB_BC_Enable(U8 uPort, BOOLEAN bEnable) in HAL_USB_BC_Enable() argument
31 if (uPort == 0) in HAL_USB_BC_Enable()
36 else if (uPort == 1) in HAL_USB_BC_Enable()
41 else if (uPort == 2) in HAL_USB_BC_Enable()
46 else if (uPort == 3) in HAL_USB_BC_Enable()
53 printf("HAL_USB_BC_Enable: invalid port number %d\n", uPort); in HAL_USB_BC_Enable()
59 if ( !PortBCStaus[uPort] ) in HAL_USB_BC_Enable()
67 PortBCStaus[uPort] = 1; in HAL_USB_BC_Enable()
72 if ( PortBCStaus[uPort] ) in HAL_USB_BC_Enable()
78 PortBCStaus[uPort] = 0; in HAL_USB_BC_Enable()
H A DhalUSB.h22 void HAL_USB_BC_Enable(U8 uPort, BOOLEAN bEnable);
/utopia/UTPA2-700.0.x/modules/usb/hal/M7621/usbhost/
H A DhalUSB.c26 void HAL_USB_BC_Enable(U8 uPort, BOOLEAN bEnable) in HAL_USB_BC_Enable() argument
31 if (uPort == 0) in HAL_USB_BC_Enable()
36 else if (uPort == 1) in HAL_USB_BC_Enable()
41 else if (uPort == 2) in HAL_USB_BC_Enable()
46 else if (uPort == 3) in HAL_USB_BC_Enable()
53 printf("HAL_USB_BC_Enable: invalid port number %d\n", uPort); in HAL_USB_BC_Enable()
59 if ( !PortBCStaus[uPort] ) in HAL_USB_BC_Enable()
67 PortBCStaus[uPort] = 1; in HAL_USB_BC_Enable()
72 if ( PortBCStaus[uPort] ) in HAL_USB_BC_Enable()
78 PortBCStaus[uPort] = 0; in HAL_USB_BC_Enable()
/utopia/UTPA2-700.0.x/modules/usb/hal/maxim/usbhost/
H A DhalUSB.c26 void HAL_USB_BC_Enable(U8 uPort, BOOLEAN bEnable) in HAL_USB_BC_Enable() argument
31 if (uPort == 0) in HAL_USB_BC_Enable()
36 else if (uPort == 1) in HAL_USB_BC_Enable()
41 else if (uPort == 2) in HAL_USB_BC_Enable()
46 else if (uPort == 3) in HAL_USB_BC_Enable()
53 printf("HAL_USB_BC_Enable: invalid port number %d\n", uPort); in HAL_USB_BC_Enable()
59 if ( !PortBCStaus[uPort] ) in HAL_USB_BC_Enable()
67 PortBCStaus[uPort] = 1; in HAL_USB_BC_Enable()
72 if ( PortBCStaus[uPort] ) in HAL_USB_BC_Enable()
78 PortBCStaus[uPort] = 0; in HAL_USB_BC_Enable()
/utopia/UTPA2-700.0.x/modules/usb/hal/manhattan/usbhost/
H A DhalUSB.c26 void HAL_USB_BC_Enable(U8 uPort, BOOLEAN bEnable) in HAL_USB_BC_Enable() argument
31 if (uPort == 0) in HAL_USB_BC_Enable()
36 else if (uPort == 1) in HAL_USB_BC_Enable()
41 else if (uPort == 2) in HAL_USB_BC_Enable()
46 else if (uPort == 3) in HAL_USB_BC_Enable()
53 printf("HAL_USB_BC_Enable: invalid port number %d\n", uPort); in HAL_USB_BC_Enable()
59 if ( !PortBCStaus[uPort] ) in HAL_USB_BC_Enable()
67 PortBCStaus[uPort] = 1; in HAL_USB_BC_Enable()
72 if ( PortBCStaus[uPort] ) in HAL_USB_BC_Enable()
78 PortBCStaus[uPort] = 0; in HAL_USB_BC_Enable()
/utopia/UTPA2-700.0.x/modules/usb/hal/M7821/usbhost/
H A DhalUSB.c26 void HAL_USB_BC_Enable(U8 uPort, BOOLEAN bEnable) in HAL_USB_BC_Enable() argument
31 if (uPort == 0) in HAL_USB_BC_Enable()
36 else if (uPort == 1) in HAL_USB_BC_Enable()
41 else if (uPort == 2) in HAL_USB_BC_Enable()
46 else if (uPort == 3) in HAL_USB_BC_Enable()
53 printf("HAL_USB_BC_Enable: invalid port number %d\n", uPort); in HAL_USB_BC_Enable()
59 if ( !PortBCStaus[uPort] ) in HAL_USB_BC_Enable()
67 PortBCStaus[uPort] = 1; in HAL_USB_BC_Enable()
72 if ( PortBCStaus[uPort] ) in HAL_USB_BC_Enable()
78 PortBCStaus[uPort] = 0; in HAL_USB_BC_Enable()
/utopia/UTPA2-700.0.x/modules/usb/hal/maserati/usbhost/
H A DhalUSB.c26 void HAL_USB_BC_Enable(U8 uPort, BOOLEAN bEnable) in HAL_USB_BC_Enable() argument
31 if (uPort == 0) in HAL_USB_BC_Enable()
36 else if (uPort == 1) in HAL_USB_BC_Enable()
41 else if (uPort == 2) in HAL_USB_BC_Enable()
46 else if (uPort == 3) in HAL_USB_BC_Enable()
53 printf("HAL_USB_BC_Enable: invalid port number %d\n", uPort); in HAL_USB_BC_Enable()
59 if ( !PortBCStaus[uPort] ) in HAL_USB_BC_Enable()
67 PortBCStaus[uPort] = 1; in HAL_USB_BC_Enable()
72 if ( PortBCStaus[uPort] ) in HAL_USB_BC_Enable()
78 PortBCStaus[uPort] = 0; in HAL_USB_BC_Enable()
/utopia/UTPA2-700.0.x/modules/usb/hal/macan/usbhost/
H A DhalUSB.c26 void HAL_USB_BC_Enable(U8 uPort, BOOLEAN bEnable) in HAL_USB_BC_Enable() argument
31 if (uPort == 0) in HAL_USB_BC_Enable()
36 else if (uPort == 1) in HAL_USB_BC_Enable()
41 else if (uPort == 2) in HAL_USB_BC_Enable()
46 else if (uPort == 3) in HAL_USB_BC_Enable()
53 printf("HAL_USB_BC_Enable: invalid port number %d\n", uPort); in HAL_USB_BC_Enable()
59 if ( !PortBCStaus[uPort] ) in HAL_USB_BC_Enable()
67 PortBCStaus[uPort] = 1; in HAL_USB_BC_Enable()
72 if ( PortBCStaus[uPort] ) in HAL_USB_BC_Enable()
78 PortBCStaus[uPort] = 0; in HAL_USB_BC_Enable()
/utopia/UTPA2-700.0.x/modules/usb/hal/mainz/usbhost/
H A DhalUSB.c26 void HAL_USB_BC_Enable(U8 uPort, BOOLEAN bEnable) in HAL_USB_BC_Enable() argument
31 if (uPort == 0) in HAL_USB_BC_Enable()
36 else if (uPort == 1) in HAL_USB_BC_Enable()
41 else if (uPort == 2) in HAL_USB_BC_Enable()
46 else if (uPort == 3) in HAL_USB_BC_Enable()
53 printf("HAL_USB_BC_Enable: invalid port number %d\n", uPort); in HAL_USB_BC_Enable()
59 if ( !PortBCStaus[uPort] ) in HAL_USB_BC_Enable()
67 PortBCStaus[uPort] = 1; in HAL_USB_BC_Enable()
72 if ( PortBCStaus[uPort] ) in HAL_USB_BC_Enable()
78 PortBCStaus[uPort] = 0; in HAL_USB_BC_Enable()
/utopia/UTPA2-700.0.x/modules/usb/hal/mustang/usbhost/
H A DhalUSB.c26 void HAL_USB_BC_Enable(U8 uPort, BOOLEAN bEnable) in HAL_USB_BC_Enable() argument
31 if (uPort == 0) in HAL_USB_BC_Enable()
36 else if (uPort == 1) in HAL_USB_BC_Enable()
41 else if (uPort == 2) in HAL_USB_BC_Enable()
48 printf("HAL_USB_BC_Enable: invalid port number %d\n", uPort); in HAL_USB_BC_Enable()
54 if ( !PortBCStaus[uPort] ) in HAL_USB_BC_Enable()
62 PortBCStaus[uPort] = 1; in HAL_USB_BC_Enable()
67 if ( PortBCStaus[uPort] ) in HAL_USB_BC_Enable()
73 PortBCStaus[uPort] = 0; in HAL_USB_BC_Enable()
/utopia/UTPA2-700.0.x/modules/usb/hal/maldives/usbhost/
H A DhalUSB.c26 void HAL_USB_BC_Enable(U8 uPort, BOOLEAN bEnable) in HAL_USB_BC_Enable() argument
31 if (uPort == 0) in HAL_USB_BC_Enable()
36 else if (uPort == 1) in HAL_USB_BC_Enable()
41 else if (uPort == 2) in HAL_USB_BC_Enable()
48 printf("HAL_USB_BC_Enable: invalid port number %d\n", uPort); in HAL_USB_BC_Enable()
54 if ( !PortBCStaus[uPort] ) in HAL_USB_BC_Enable()
62 PortBCStaus[uPort] = 1; in HAL_USB_BC_Enable()
67 if ( PortBCStaus[uPort] ) in HAL_USB_BC_Enable()
73 PortBCStaus[uPort] = 0; in HAL_USB_BC_Enable()
/utopia/UTPA2-700.0.x/projects/tmplib/include/
H A DdrvUSB_eCos.h161 MS_BOOL MDrv_UsbBlockReadToMIUEx(MS_U8 uPort,MS_U8 lun, MS_U32 u32BlockAddr, MS_U32 u32BlockNum, MS…
162 MS_BOOL MDrv_UsbBlockWriteFromMIUEx(MS_U8 uPort,MS_U8 lun, MS_U32 u32BlockAddr, MS_U32 u32BlockNum,…
164 MS_U32 MDrv_GetUsbBlockSizeEx(MS_U8 uPort, MS_U8 lun);
165 MS_U32 MDrv_GetUsbBlockNumEx(MS_U8 uPort, MS_U8 lun);
168 MS_U8 MDrv_UsbGetMaxLUNCountEx(MS_U8 uPort);
169 MS_BOOL MDrv_UsbIsLunConnected(MS_U8 uPort, MS_U8 lun);
172 MS_BOOL ChkUsbReadyEx(MS_U8 uPort); // Obsolete
/utopia/UTPA2-700.0.x/mxlib/include/
H A DdrvUSB_eCos.h162 MS_BOOL MDrv_UsbBlockReadToMIUEx(MS_U8 uPort,MS_U8 lun, MS_U32 u32BlockAddr, MS_U32 u32BlockNum, MS…
163 MS_BOOL MDrv_UsbBlockWriteFromMIUEx(MS_U8 uPort,MS_U8 lun, MS_U32 u32BlockAddr, MS_U32 u32BlockNum,…
165 MS_U32 MDrv_GetUsbBlockSizeEx(MS_U8 uPort, MS_U8 lun);
166 MS_U32 MDrv_GetUsbBlockNumEx(MS_U8 uPort, MS_U8 lun);
169 MS_U8 MDrv_UsbGetMaxLUNCountEx(MS_U8 uPort);
170 MS_BOOL MDrv_UsbIsLunConnected(MS_U8 uPort, MS_U8 lun);
173 MS_BOOL ChkUsbReadyEx(MS_U8 uPort); // Obsolete
/utopia/UTPA2-700.0.x/modules/usb/drv/usbhost/source/usb_host_p1/
H A DdrvUsbMain.c315 void MDrv_USBSetPortSwitch(U8 uPort) in MDrv_USBSetPortSwitch() argument
327 printf("Force to set USB port switch to %d\n", uPort); in MDrv_USBSetPortSwitch()
328 if (uPort ==0) in MDrv_USBSetPortSwitch()
330 else if (uPort ==1) in MDrv_USBSetPortSwitch()
/utopia/UTPA2-700.0.x/modules/usb/hal/k6lite/usbhost/
H A DhalUSB.c26 void HAL_USB_BC_Enable(U8 uPort, BOOLEAN bEnable) in HAL_USB_BC_Enable() argument
/utopia/UTPA2-700.0.x/modules/usb/hal/curry/usbhost/
H A DhalUSB.c26 void HAL_USB_BC_Enable(U8 uPort, BOOLEAN bEnable) in HAL_USB_BC_Enable() argument

12