⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 usbd_scsi.h

📁 F:worksip2440a board可启动u-boot-like.tar.gz F:worksip2440a board可启动u-boot-like.tar.gz
💻 H
字号:
/* *      A     EEEE  SSSS   OOO  PPPP  *     A A    E     S     O   O P   P *    AAAAA   EEEE  SSSS  O   O PPPP *   A     A  E         S O   O P *   A     A  EEEE  SSSS   OOO  P * *  An Entertainment Solution On a Platform (AESOP) is a completely Open Source  *  based graphical user environment and suite of applications for PDAs and other  *  devices running Linux. It is included in various embedded Linux distributions  *  such as OpenZaurus - http://www.aesop-embedded.org  * * *  This program is free software; you can redistribute it and/or modify *  it under the terms of the GNU General Public License as published by *  the Free Software Foundation; either version 2 of the License, or *  (at your option) any later version. * *  This program is distributed in the hope that it will be useful, *  but WITHOUT ANY WARRANTY; without even the implied warranty of *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the *  GNU General Public License for more details. * * *	Title           : usbd_scsi.h *	Author          :  *	Created date    : 2005. 06. 26. 23:14:24 KST *	Description     :  * *	$Revision: 1.2 $ *	$Log: usbd_scsi.h,v $ *	Revision 1.2  2005/07/05 14:16:41  jeenspa *	usbdmass fixup, nand, mkyaffs *	 *	Revision 1.1.1.1  2005/06/27 17:04:30  linuxpark *	Initial import. *	 *	 * */ #ident  "@(*) $Header: /cvsroot/aesop-embedded/u-boot-aesop/board/aesop2440/usbd_scsi.h,v 1.2 2005/07/05 14:16:41 jeenspa Exp $"/* * Copyright (c) 2005 * Junyoung Song, kernelproject.org <jun0song@kornet.net> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307	 USA * */#ifndef __USBD_SCSI_H__#define __USBD_SCSI_H__#define SCSI_ComTestUnitReady		0x00#define SCSI_ComRezeroUnit		0x01#define SCSI_ComRequestSense		0x03#define SCSI_ComFormatUnit		0x04#define SCSI_ComRead6			0x08#define SCSI_ComRead10			0x28#define SCSI_ComWrite6			0x0a#define SCSI_ComWrite10			0x2a#define SCSI_ComSeek6			0x0b#define SCSI_ComSeek10			0x2b#define SCSI_ComInquiry			0x12#define SCSI_ComModeSelect6		0x15#define SCSI_ComModeSelect10		0x55#define SCSI_ComReserveUnit		0x16#define SCSI_ComReleaseUnit		0x17#define SCSI_ComModeSense6		0x1a#define SCSI_ComModeSense10		0x5a#define SCSI_ComStartStopUnit		0x1b#define SCSI_ComPreAllMedRemoval	0x1e#define SCSI_ComSendDiagnostic		0x1d#define SCSI_ComReadFormatCapacities	0x23#define SCSI_ComReadCapacity		0x25#define SCSI_ComWriteVerify		0x2e#define SCSI_ComVerify			0x2f#define SCSI_ComSyncCache		0x35#define SCSI_ERROR_NoError		0#define SCSI_ERROR_NotReady		1#define SCSI_ERROR_BecomingReady	2#define SCSI_ERROR_FormatProgress	3#define SCSI_ERROR_MediumNotPresent	4#define SCSI_ERROR_WriteFault		5#define SCSI_ERROR_ReadError		6#define SCSI_ERROR_IncompatibleMedium	7#define SCSI_ERROR_UnknownFormat	8#define SCSI_ERROR_IncompatibleFormat	9#define SCSI_ERROR_FormatFail		10#define SCSI_ERROR_FormatFailLast	11#define SCSI_ERROR_HardwareError	12#define SCSI_ERROR_InvalidCommand	13#define SCSI_ERROR_AddressOutOfRange	14#define SCSI_ERROR_InvalidFieldCdb	15#define SCSI_ERROR_InvalidFieldParameter	16#define SCSI_ERROR_SavingParameterNotSupported	17#define SCSI_ERROR_RemovalPrevented	18#define SCSI_ERROR_MediumChanged	19#define SCSI_ERROR_Reset		20#define SCSI_ERROR_WriteProtect		21#define SCSI_ERROR_MAX			22#define SCSI_STRING_MANUFACTURER	"GENERIC aESOP-2440      1.00"char usbd_scsi_command(usbd_mass_instance *);void usbd_scsi_init(usbd_mass_instance *);char usbd_scsi_com_(usbd_mass_instance *);char usbd_scsi_com_unknown(usbd_mass_instance *);char usbd_scsi_com_inquiry(usbd_mass_instance *);char usbd_scsi_com_readformatcapacities(usbd_mass_instance *);char usbd_scsi_com_readcapacity(usbd_mass_instance *);char usbd_scsi_com_testunitready(usbd_mass_instance *);char usbd_scsi_com_requestsense(usbd_mass_instance *);char usbd_scsi_com_modesense(usbd_mass_instance *);void usbd_scsi_com_modesense_rwerror(usbd_mass_instance *);void usbd_scsi_com_modesense_flexible(usbd_mass_instance *);char usbd_scsi_com_read(usbd_mass_instance *);char usbd_scsi_com_write(usbd_mass_instance *);char usbd_scsi_com_senddiagnostic(usbd_mass_instance *);char usbd_scsi_command_noerror_end(usbd_mass_instance *);char usbd_scsi_command_end_send(usbd_mass_instance *);int usbd_scsi_send_data_wait(usbd_mass_instance *);int usbd_scsi_recv_data_wait(usbd_mass_instance *);int usbd_scsi_check_lba(usbd_mass_instance *, unsigned long);char usbd_scsi_check_media(usbd_mass_instance *);void usbd_scsi_set_error(usbd_mass_instance *, int, unsigned long);unsigned long usbd_scsi_get_bigendian(unsigned char *, int);void usbd_scsi_put_bigendian(unsigned char *, unsigned long, int);void usbd_scsi_strcpy(char *, char *, int);void usbd_scsi_clear_buff(usbd_mass_instance *);#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -