Michael Kubacki 
							
						 
					 
					
						
						
							
						
						1436aea4d5 
					 
					
						
						
							
							MdeModulePkg: Apply uncrustify changes  
						
						... 
						
						
						
						REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737 
Apply uncrustify changes to .c/.h files in the MdeModulePkg package
Cc: Andrew Fish <afish@apple.com >
Cc: Leif Lindholm <leif@nuviainc.com >
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com >
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn > 
						
						
					 
					
						2021-12-07 17:24:28 +00:00 
						 
				 
			
				
					
						
							
							
								Michael D Kinney 
							
						 
					 
					
						
						
							
						
						87000d7708 
					 
					
						
						
							
							MdeModulePkg: Change use of EFI_D_* to DEBUG_*  
						
						... 
						
						
						
						REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3739 
Update all use of EFI_D_* defines in DEBUG() macros to DEBUG_* defines.
Cc: Andrew Fish <afish@apple.com >
Cc: Leif Lindholm <leif@nuviainc.com >
Cc: Michael Kubacki <michael.kubacki@microsoft.com >
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com >
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn > 
						
						
					 
					
						2021-12-07 17:24:28 +00:00 
						 
				 
			
				
					
						
							
							
								Antoine Coeur 
							
						 
					 
					
						
						
							
						
						957ca63190 
					 
					
						
						
							
							MdeModulePkg/UsbMass: Fix various typos  
						
						... 
						
						
						
						Fix various typos in comments and documentation.
Cc: Jian J Wang <jian.j.wang@intel.com >
Cc: Hao A Wu <hao.a.wu@intel.com >
Cc: Ray Ni <ray.ni@intel.com >
Signed-off-by: Antoine Coeur <coeur@gmx.fr >
Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com >
Acked-by: Liming Gao <liming.gao@intel.com >
Signed-off-by: Philippe Mathieu-Daude <philmd@redhat.com >
Message-Id: <20200207010831.9046-20-philmd@redhat.com > 
						
						
					 
					
						2020-02-10 22:30:07 +00:00 
						 
				 
			
				
					
						
							
							
								Michael D Kinney 
							
						 
					 
					
						
						
							
						
						9d510e61fc 
					 
					
						
						
							
							MdeModulePkg: Replace BSD License with BSD+Patent License  
						
						... 
						
						
						
						https://bugzilla.tianocore.org/show_bug.cgi?id=1373 
Replace BSD 2-Clause License with BSD+Patent License.  This change is
based on the following emails:
  https://lists.01.org/pipermail/edk2-devel/2019-February/036260.html 
  https://lists.01.org/pipermail/edk2-devel/2018-October/030385.html 
RFCs with detailed process for the license change:
  V3: https://lists.01.org/pipermail/edk2-devel/2019-March/038116.html 
  V2: https://lists.01.org/pipermail/edk2-devel/2019-March/037669.html 
  V1: https://lists.01.org/pipermail/edk2-devel/2019-March/037500.html 
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com >
Reviewed-by: Hao Wu <hao.a.wu@intel.com >
Reviewed-by: Jian J Wang <jian.j.wang@intel.com > 
					
						2019-04-09 10:58:08 -07:00 
						 
				 
			
				
					
						
							
							
								Liming Gao 
							
						 
					 
					
						
						
							
						
						d1102dba72 
					 
					
						
						
							
							MdeModulePkg: Clean up source files  
						
						... 
						
						
						
						1. Do not use tab characters
2. No trailing white space in one line
3. All files must end with CRLF
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Liming Gao <liming.gao@intel.com >
Reviewed-by: Star Zeng <star.zeng@intel.com > 
						
						
					 
					
						2018-06-28 11:19:45 +08:00 
						 
				 
			
				
					
						
							
							
								Michael D Kinney 
							
						 
					 
					
						
						
							
						
						8d92f819f5 
					 
					
						
						
							
							MdeModulePkg/UsbMassStorageDxe: Check Get Max LUN status/value  
						
						... 
						
						
						
						https://bugzilla.tianocore.org/show_bug.cgi?id=767 
If a USB Mass Storage device does not support the Get
Max LUN command, then the USB I/O Protocol ControlTransfer()
service may return an error.  If an error is returned for
this command, then assume that the device does not support
multiple LUNs and return a maximum LUN value of 0.
The USB Mass Storage Class Specification states that a
maximum LUN value larger than 0x0F is invalid.  Add
a check to make sure this maximum LUN value is in this
valid range, and if it is not, then assume that the
device does not support multiple LUNs and return a
maximum LUN value of 0.
This change improves compatibility with USB FLASH drives
that do not support the Get Max LUN command or return
an invalid maximum LUN value.
Cc: Star Zeng <star.zeng@intel.com >
Cc: Eric Dong <eric.dong@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com >
Reviewed-by: Star Zeng <star.zeng@intel.com > 
					
						2017-11-20 14:43:37 -08:00 
						 
				 
			
				
					
						
							
							
								Feng Tian 
							
						 
					 
					
						
						
							
						
						b17d5507cf 
					 
					
						
						
							
							MdeModulePkg/UsbMass: Revert changes of removing retry logic  
						
						... 
						
						
						
						This patch is used to revert changes done in commit 17f3e942star.zeng@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Feng Tian <feng.tian@intel.com >
Reviewed-by: Star Zeng <star.zeng@intel.com > 
						
						
					 
					
						2016-11-14 14:10:30 +08:00 
						 
				 
			
				
					
						
							
							
								Gary Lin 
							
						 
					 
					
						
						
							
						
						ed356b9e80 
					 
					
						
						
							
							MdeModulePkg/Bus: Fix typos in comments  
						
						... 
						
						
						
						- TURE -> TRUE
- stoping -> stopping
- doule -> double
- Peroidic -> Periodic
- stardard -> standard
- a a -> a
- reseting -> resetting
- excute -> execute
- connectted -> connected
- Sumbit -> Submit
Cc: Feng Tian <feng.tian@intel.com >
Cc: Star Zeng <star.zeng@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Gary Lin <glin@suse.com >
Reviewed-by: Feng Tian <feng.tian@intel.com >
Reviewed-by: Star Zeng <star.zeng@intel.com > 
						
						
					 
					
						2016-10-27 09:11:16 +08:00 
						 
				 
			
				
					
						
							
							
								Feng Tian 
							
						 
					 
					
						
						
							
						
						17f3e942bc 
					 
					
						
						
							
							MdeModulePkg/UsbMass: Not retry if usb bot transfer execution fail  
						
						... 
						
						
						
						The retry mechanism will bring issue if the usb device is unplugged
from XHCI HC but s/w is trying to access it through BlockIo. The
current cmd will get device error return status, but the sequential
cmds will be timeout. This behavior will cause system unresponsive
for a long while and bring bad user experience.
So we break the retry loop if found device error.
Cc: Star Zeng <star.zeng@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Feng Tian <feng.tian@intel.com > 
						
						
					 
					
						2016-08-03 09:52:19 +08:00 
						 
				 
			
				
					
						
							
							
								erictian 
							
						 
					 
					
						
						
							
						
						39840c50c1 
					 
					
						
						
							
							Produce DiskInfo for usb mass storage device  
						
						... 
						
						
						
						Signed-off-by:erictian
Reviewed-by:niruiyu
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11817  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2011-06-13 05:27:23 +00:00 
						 
				 
			
				
					
						
							
							
								erictian 
							
						 
					 
					
						
						
							
						
						c6e797aeda 
					 
					
						
						
							
							return EFI_DEVICE_ERROR if the Status value is not EFI_SUCCESS.  
						
						... 
						
						
						
						it's because BlockIo.Reset() only has two possible values: EFI_SUCCESS and EFI_DEVICE_ERROR according to UEFI2.3 spec
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10956  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2010-10-19 02:55:16 +00:00 
						 
				 
			
				
					
						
							
							
								hhtian 
							
						 
					 
					
						
						
							
						
						cd5ebaa06d 
					 
					
						
						
							
							Update the copyright notice format  
						
						... 
						
						
						
						git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10420  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2010-04-24 09:49:11 +00:00 
						 
				 
			
				
					
						
							
							
								eric_tian 
							
						 
					 
					
						
						
							
						
						efe9186f09 
					 
					
						
						
							
							add error handling on usb related modules.  
						
						... 
						
						
						
						git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9566  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2009-12-16 00:58:46 +00:00 
						 
				 
			
				
					
						
							
							
								xli24 
							
						 
					 
					
						
						
							
						
						c92e277d99 
					 
					
						
						
							
							Minor refinement for USB modules.  
						
						... 
						
						
						
						git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7257  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2009-01-13 08:46:31 +00:00 
						 
				 
			
				
					
						
							
							
								xli24 
							
						 
					 
					
						
						
							
						
						3e03cb4d84 
					 
					
						
						
							
							Refine USB Mass Storage Driver.  
						
						... 
						
						
						
						git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7247  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2009-01-12 07:30:42 +00:00 
						 
				 
			
				
					
						
							
							
								xli24 
							
						 
					 
					
						
						
							
						
						d80ed2a76e 
					 
					
						
						
							
							Code scrub for USB Mass Storage Driver.  
						
						... 
						
						
						
						git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7243  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2009-01-12 03:11:00 +00:00 
						 
				 
			
				
					
						
							
							
								eric_tian 
							
						 
					 
					
						
						
							
						
						cc5166ff80 
					 
					
						
						
							
							modify coding style to pass ecc tool  
						
						... 
						
						
						
						git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5555  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2008-07-23 08:30:25 +00:00 
						 
				 
			
				
					
						
							
							
								vanjeff 
							
						 
					 
					
						
						
							
						
						c7e39923c0 
					 
					
						
						
							
							[Description]:  
						
						... 
						
						
						
						UsbMassStorage driver need support multi-lun feature.
[Impaction]:
 UsbMassStorageDxe.
[Reference Info]:
 EDK tracker 1143 - UsbMassStorage driver need support multi-lun feature. 
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5375  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2008-06-27 08:09:00 +00:00 
						 
				 
			
				
					
						
							
							
								vanjeff 
							
						 
					 
					
						
						
							
						
						1c61953576 
					 
					
						
						
							
							1. Added EFI_MEDIA_CHANGED and EFI_INVALID_PARAMETER returns in UsbMassReadBlocks().  
						
						... 
						
						
						
						2. Use DEBUG () to replace some native debug function in USB stack modules.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4689  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2008-02-13 09:08:24 +00:00 
						 
				 
			
				
					
						
							
							
								yshang1 
							
						 
					 
					
						
						
							
						
						41e8ff2781 
					 
					
						
						
							
							Fixed unexpected timeout in Usb MassStorage Driver.  
						
						... 
						
						
						
						Fixed unexpected timeout in Uhci/Ehci driver.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4038  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2007-10-08 06:14:13 +00:00 
						 
				 
			
				
					
						
							
							
								qwang12 
							
						 
					 
					
						
						
							
						
						84b5c78e89 
					 
					
						
						
							
							Make MdeModulePkg GCC clean.  
						
						... 
						
						
						
						It also pass ICC+IPF and MYTOOLS+EBC build.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3711  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2007-08-27 03:33:51 +00:00 
						 
				 
			
				
					
						
							
							
								vanjeff 
							
						 
					 
					
						
						
							
						
						c52fa98ca9 
					 
					
						
						
							
							1. Fixed tools_def.template to meet ICC build for IA32  
						
						... 
						
						
						
						2. Modified some source files to meet ICC build for IA32 and IPF.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3271  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2007-07-17 01:48:09 +00:00 
						 
				 
			
				
					
						
							
							
								vanjeff 
							
						 
					 
					
						
						
							
						
						e237e7ae9f 
					 
					
						
						
							
							Import Usb/UsbBusDxe and Usb/UsbMassStorageDxe into MdeModulePkg.  
						
						... 
						
						
						
						git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3193  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2007-07-11 08:47:37 +00:00