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 
						 
				 
			
				
					
						
							
							
								Laszlo Ersek 
							
						 
					 
					
						
						
							
						
						9388c6b1c1 
					 
					
						
						
							
							MdeModulePkg: fix UninstallMultipleProtocolInterfaces() calls  
						
						... 
						
						
						
						Unlike the InstallMultipleProtocolInterfaces() boot service, which takes
an (EFI_HANDLE*) as first parameter, the
UninstallMultipleProtocolInterfaces() boot service takes an EFI_HANDLE as
first parameter.
These are actual bugs. They must have remained hidden until now because
they are on error paths. Fix the UninstallMultipleProtocolInterfaces()
calls.
Cc: Hao A Wu <hao.a.wu@intel.com >
Cc: Jian J Wang <jian.j.wang@intel.com >
Cc: Ray Ni <ray.ni@intel.com >
Signed-off-by: Laszlo Ersek <lersek@redhat.com >
Reviewed-by: Ray Ni <ray.ni@intel.com >
Reviewed-by: Hao A Wu <hao.a.wu@intel.com > 
						
						
					 
					
						2019-10-09 09:40:10 +02: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 
						 
				 
			
				
					
						
							
							
								Ruiyu Ni 
							
						 
					 
					
						
						
							
						
						e59db6a732 
					 
					
						
						
							
							MdeModulePkg/UsbMass: Merge UsbBoot(Read|Write)Blocks(16)  
						
						... 
						
						
						
						The change doesn't have functionality impact.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com >
Cc: Star Zeng <star.zeng@intel.com >
Reviewed-by: Star Zeng <star.zeng@intel.com > 
						
						
					 
					
						2018-10-17 11:03:54 +08: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 
						 
				 
			
				
					
						
							
							
								Star Zeng 
							
						 
					 
					
						
						
							
						
						b77e1a240e 
					 
					
						
						
							
							MdeModulePkg UsbMass: Correct comment about TPL for BLOCK IO APIs  
						
						... 
						
						
						
						Current BLOCK IO API code is using TPL_CALLBACK,
but comment is saying TPL_NOTIFY.
Cc: Ruiyu Ni <ruiyu.ni@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com >
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com > 
						
						
					 
					
						2018-03-04 14:47:14 +08:00 
						 
				 
			
				
					
						
							
							
								Ruiyu Ni 
							
						 
					 
					
						
						
							
						
						06e2409667 
					 
					
						
						
							
							MdeModulePkg/UsbMass: Retry CMD for MediaChanged sense key  
						
						... 
						
						
						
						When a USB device reports failure for a CMD and REQUEST SENSE returns
Media Changed key, UsbBootExecCmdWithRetry() stops to retry CMD and
returns EFI_MEDIA_CHANGED to caller.
For this case, the CMD should be retried until success, getting
NoMedia sense key or timeout.
The patch updates UsbBootExecCmdWithRetry() to follow the above
rule so EFI_MEDIA_CHANGED is no longer returned.
UsbBootDetectMedia() is updated accordingly.
Because UsbBootGetParams() is called for new plugged USB storage,
and some USB storage devices may report Media Changed key,
UsbBootGetParams() is updated to treat it as a Success.
This change could fix the issue that some USB storage devices
cannot be detected.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com >
Reviewed-by: Star Zeng <star.zeng@intel.com > 
						
						
					 
					
						2018-03-03 15:49:24 +08:00 
						 
				 
			
				
					
						
							
							
								Feng Tian 
							
						 
					 
					
						
						
							
						
						3cf6450eb5 
					 
					
						
						
							
							MdeModulePkg/Usb: Adjust TPL to not block async transfer during usb enum.  
						
						... 
						
						
						
						EDKII usb stack is using a TPL_CALLBACK timer to monitor async transfer
request and signal event if it's done. As usb enumeration and usb mass
storage block i/o read/write runs on TPL_CALLBACK and TPL_NOTIFY level
respectively, It blocks usb async transfer requests, usually usb mouse
/use kb, getting time to run.
Without this change, user couldn't get usb mouse/kb state in time (will
show a little lag from UI view) when there is other usb transactions, such
as a new usb device inserted.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Feng Tian <feng.tian@intel.com >
Reviewed-by: Star Zeng <star.zeng@intel.com >
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18169  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2015-08-06 07:13:16 +00:00 
						 
				 
			
				
					
						
							
							
								Tian, Feng 
							
						 
					 
					
						
						
							
						
						66a5771e7a 
					 
					
						
						
							
							MdeModulePkg/UsbMassStorage: Don't send READ_CAPACITY to unsupported usb mass storage type device.  
						
						... 
						
						
						
						Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Tian, Feng <feng.tian@intel.com >
Reviewed-by: Zeng, Star <star.zeng@intel.com >
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15447  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2014-04-10 02:45:32 +00:00 
						 
				 
			
				
					
						
							
							
								erictian 
							
						 
					 
					
						
						
							
						
						99c1725ee6 
					 
					
						
						
							
							MdeModulePkg/UsbMassStorage: Add 16 byte SCSI cmds support if the last LBA can not be presented by 4bytes width  
						
						... 
						
						
						
						Signed-off-by: Feng Tian <feng.tian@intel.com >
Reviewed-by: Li Elvin <elvin.li@intel.com >
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13311  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2012-05-14 07:50:07 +00:00 
						 
				 
			
				
					
						
							
							
								erictian 
							
						 
					 
					
						
						
							
						
						19bc852765 
					 
					
						
						
							
							remove unnecessary retry logic from usb mass storage driver.  
						
						... 
						
						
						
						Signed-off-by: erictian
Reviewed-by: li-elvin
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12476  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2011-09-29 09:14:30 +00: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 
						 
				 
			
				
					
						
							
							
								niruiyu 
							
						 
					 
					
						
						
							
						
						fcf5e49dc9 
					 
					
						
						
							
							Change BlockIo drivers to return EFI_NO_MEDIA or EFI_MEDIA_CHANGED even the Buffer/BufferSize/Lba is invalid so that caller can probe the media status easier.  
						
						... 
						
						
						
						git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11584  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2011-04-25 09:31:57 +00:00 
						 
				 
			
				
					
						
							
							
								erictian 
							
						 
					 
					
						
						
							
						
						15cc67e616 
					 
					
						
						
							
							raise TPL to TPL_CALLBACK level at DriverBindingStart() for all usb-related modules, which prevent DriverBindingStop() from being invoked when DriverBindingStart() runs.  
						
						... 
						
						
						
						git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10460  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2010-05-05 05:21:38 +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 
							
						 
					 
					
						
						
							
						
						73f8ef8c08 
					 
					
						
						
							
							add error handler in return places.  
						
						... 
						
						
						
						git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9119  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2009-08-19 02:32:56 +00:00 
						 
				 
			
				
					
						
							
							
								vanjeff 
							
						 
					 
					
						
						
							
						
						db0bd81c85 
					 
					
						
						
							
							enhanced security check.  
						
						... 
						
						
						
						git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7516  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2009-02-13 03:36:02 +00:00 
						 
				 
			
				
					
						
							
							
								xli24 
							
						 
					 
					
						
						
							
						
						81464cf106 
					 
					
						
						
							
							Update for code security.  
						
						... 
						
						
						
						git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7255  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2009-01-13 08:29:55 +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 
						 
				 
			
				
					
						
							
							
								jji4 
							
						 
					 
					
						
						
							
						
						7df7393feb 
					 
					
						
						
							
							check the usage of %d,%x,%ld,%lx and so on in debug print statement.  
						
						... 
						
						
						
						git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7080  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2008-12-18 08:48:36 +00:00 
						 
				 
			
				
					
						
							
							
								gikidy 
							
						 
					 
					
						
						
							
						
						d7db090280 
					 
					
						
						
							
							Fix some typo.  
						
						... 
						
						
						
						git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7008  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2008-12-12 06:04:02 +00:00 
						 
				 
			
				
					
						
							
							
								jji4 
							
						 
					 
					
						
						
							
						
						fe1e36e550 
					 
					
						
						
							
							Patch to remove STATIC modifier. This is on longer recommended by EFI Framework coding style. All duplicated symbols has been renamed accordingly.  
						
						... 
						
						
						
						git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6296  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2008-10-30 06:05:06 +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 
							
						 
					 
					
						
						
							
						
						b16b8bf9d0 
					 
					
						
						
							
							Clean ICC build  
						
						... 
						
						
						
						git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5376  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2008-06-27 08:17:11 +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 
						 
				 
			
				
					
						
							
							
								qhuang8 
							
						 
					 
					
						
						
							
						
						62b9bb55c9 
					 
					
						
						
							
							Update to support to produce Component Name and  & Component Name 2 protocol based on Feature flag PcdComponentNameDisable & PcdComponentName2Disable.  
						
						... 
						
						
						
						git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4002  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2007-09-30 02:47:05 +00:00 
						 
				 
			
				
					
						
							
							
								vanjeff 
							
						 
					 
					
						
						
							
						
						d01c093a58 
					 
					
						
						
							
							1. Sync Tcp4 protocol definitions to match UEFI 2.1  
						
						... 
						
						
						
						2. Clean up codes.
3. Remove struct definition content for big-endian, because UEFI 2.1 declare only little-endian supported.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3714  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2007-08-27 07:02:05 +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