Commit Graph

83 Commits

Author SHA1 Message Date
vanjeff e5f461a850 1. Remove #ifdef _MSC_EXTENSION_ from all source files
2. Remove #ifdef _GCC_ from all resource files
3. Remove #if 0 from all resource files
4. Remove #ifdef MDE_CPU_IPF and #ifdef MDE_CPU_EBC
5. Remove #progam from Decode.c
6. Remove #ifdef TIANO_EXTENSION_FLAG from source files
7. Remove #ifdef SUPPORT_IPV6, since code base doesn't support IPV6 at all.
8. Remove #ifdef SpecialNowaitVersion from pxe_bc_mtftp.c, since it's only used for test.


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2470 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-15 02:33:16 +00:00
qwang12 c094abe585 Add a lock to protect the critical region in Service APIs for gEfiBlockIoProtocolGuid Protocol to prevent re-entrance of the same API from from different TPL level.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2443 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-12 07:47:33 +00:00
klu2 27061085e5 The latest IPF boot failure is found and is not caused by this fixing, so check-in the fixing again.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2434 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-09 09:04:53 +00:00
xli24 64b41a0710 Fix the issue of Linux cannot boot and reset on IPF.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2423 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-07 09:34:54 +00:00
klu2 635a3f5c79 Assign IDE_BLK_IO_DEV.UdmaMode when detecting the disk hardware support UDMA mode.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2418 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-05 06:42:29 +00:00
vanjeff 8ba8cb28e8 Removed EFI_SIZE_REDUCTION_APPLIED and SIZE_REDUCTION_ISA_COMBINED because one PCD PcdComponentNameDisable has been introduced.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2416 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-05 03:41:22 +00:00
klu2 8b886edc83 Fix case-sensitive build issue for filename in Linux
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2414 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-05 02:05:22 +00:00
klu2 2008636e60 Add blank line at end of file to pass GCC build.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2413 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-05 01:50:40 +00:00
klu2 bc4e770c78 In IdeBus driver block I/O read/write interface, it will always try to use UDMA mode first, if fails, then try to use PIO mode.
This may cause side effects if disk does not support UDMA mode and also let bad performance. 
The modification is to record supported mode and only try supported mode when do disk read/write. 
Also this patch combines the code for read/readex/write/writex to reduce code size.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2412 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-02 08:21:43 +00:00
qwang12 5d09d1b775 1) add && MDE_CPU_EBC guard for MSC specific pragma in Decode.c as EBC C compiler does not recongnize the pragma.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2408 6f19259b-4bc3-4df7-8a09-765794883524
2007-02-28 03:48:13 +00:00
qwang12 3bd0d8f8a9 1) add __MSC_EXTENSIONS__ guard for MSC specific pragma in Decode.c
2) remove a dangling pragma in E100b.c

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2402 6f19259b-4bc3-4df7-8a09-765794883524
2007-02-27 03:30:12 +00:00
qwang12 bc2693a840 Clean up MSA file of the checked in modules which include:
1) remove unused library class
2) remove unreferenced GUIDs


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2401 6f19259b-4bc3-4df7-8a09-765794883524
2007-02-26 07:00:31 +00:00
tgingold 0b293ccb7e fix a typo in a comment
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2360 6f19259b-4bc3-4df7-8a09-765794883524
2007-02-11 06:36:05 +00:00
xli24 3401c092e4 Make EDK Module Package pass Intel IPF compiler with /Ox switch.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2346 6f19259b-4bc3-4df7-8a09-765794883524
2007-02-02 02:50:13 +00:00
xgu3 a8b194b97c 1. PEI core needs to check image machine type
2. In BDS, Legacy free may make BdsLibConnectAllDefaultConsoles fail.
3. Pci22.h, we need to add more definition in that 
4. EBC: EBC Exception Subclass should add EFI_SUBCLASS_SPECIFIC
5. PciEnumeratorSupport Null Pointer Error


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2340 6f19259b-4bc3-4df7-8a09-765794883524
2007-01-31 07:18:41 +00:00
xli24 92dda53e9f Make EdkModulePkg pass Intel IPF compiler with /W4 /WX switches, solving warning #1419.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2338 6f19259b-4bc3-4df7-8a09-765794883524
2007-01-31 04:57:46 +00:00
xli24 963cbacb5f Further check-in to smooth Intel IPF compiler building.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2332 6f19259b-4bc3-4df7-8a09-765794883524
2007-01-29 06:09:43 +00:00
qhuang8 4d1fe68e1c 1. Add NULL QH to set as QH header;
2. Do ping for high speed OUT pipe;
3. Bug fix for QTD size detection;
4. Bug fix for short package detection;
5. Bug fix get next QTD in ExcutionTransfer;
6. BOT module modify to follow spec;
7. Massstorage error hanling enhancement 

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2321 6f19259b-4bc3-4df7-8a09-765794883524
2007-01-26 04:08:57 +00:00
xli24 fb5a3ed8c7 Remove some unused internal functions.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2315 6f19259b-4bc3-4df7-8a09-765794883524
2007-01-25 07:30:10 +00:00
xli24 1cc8ee7861 Partially make EdkModulePkg pass intel IPF compiler with /W4 /WX switched on.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2313 6f19259b-4bc3-4df7-8a09-765794883524
2007-01-25 06:15:58 +00:00
qhuang8 61fb1657e5 Fix component name bugs when input Controller Name is invalid
Fix the driver binding version for platform/OEM specific drivers 




git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2274 6f19259b-4bc3-4df7-8a09-765794883524
2007-01-19 08:06:15 +00:00
bbahnsen fae0da0d2c Fix several capitalization issues.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2255 6f19259b-4bc3-4df7-8a09-765794883524
2007-01-16 19:59:43 +00:00
klu2 9a037c5d09 Correct the right bits judgment for get size of OptionROM.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2236 6f19259b-4bc3-4df7-8a09-765794883524
2007-01-12 06:20:33 +00:00
klu2 3727980651 Remove two global variable: mUsbCapabilityLen and mDeviceSpeed and integrate them into USB2_HC_DEV.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2235 6f19259b-4bc3-4df7-8a09-765794883524
2007-01-12 05:47:58 +00:00
klu2 74c56167df EHCI driver need enable routine and disable Legacy USB
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2233 6f19259b-4bc3-4df7-8a09-765794883524
2007-01-12 05:17:27 +00:00
zliu3 6c31fdb887 The updating (change the Interrupt Line to 0xFF for unknown setting) is only for x86 based on the PCI spec, so added the compiler option for such code.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2229 6f19259b-4bc3-4df7-8a09-765794883524
2007-01-12 03:42:01 +00:00
klu2 38a7027076 AsyncRequestPtr maybe NULL after its callback function is invoke. So Caching it temporary.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2217 6f19259b-4bc3-4df7-8a09-765794883524
2007-01-11 07:06:00 +00:00
xli24 715a44f11b IDEBusDriverBindingStart() calls REPORT_STATUS_CODE_WITH_DEVICE_PATH with NULL device path. If progress code is switched on, ASSERT would happen.
This update fixes the issue.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2208 6f19259b-4bc3-4df7-8a09-765794883524
2007-01-10 09:07:51 +00:00
qhuang8 e53a7e1bc9 Set 0xff to both bridge & non-bridge device in case of unknown device.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2123 6f19259b-4bc3-4df7-8a09-765794883524
2006-12-20 09:21:41 +00:00
klu2 d43eee260f Merge R8 track #8354: SupportPalette() algorithm incorrect
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2100 6f19259b-4bc3-4df7-8a09-765794883524
2006-12-14 08:47:45 +00:00
qwang12 0265b1e8cb 1) Use FeatureFlag PcdPciBusHotplugDeviceSupport to merge LightPciLib.c with PcdLib.c.
2) Correct some minor bugs: when invoking gRT->GetVariable the Attributes field can be optianal.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2091 6f19259b-4bc3-4df7-8a09-765794883524
2006-12-13 03:16:04 +00:00
qwang12 6874dbd0e2 1) Use FeatureFlag PcdPciBusHotplugDeviceSupport to merge LightPciLib.c with PcdLib.c.
2) Correct some minor bugs: when invoking gRT->GetVariable the Attributes field can be optianal.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2090 6f19259b-4bc3-4df7-8a09-765794883524
2006-12-13 03:11:47 +00:00
wuyizhong 406adcd15c Merge GOP related code from r8->r9.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2085 6f19259b-4bc3-4df7-8a09-765794883524
2006-12-12 07:09:03 +00:00
klu2 f588bef047 Add comments for all file tagged with "ToolCode="DUMMY"".
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1939 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-13 08:39:49 +00:00
cwu11 3681d193ed This check-in fixed the following bugs:
1.	Pci22.h EFI_LEGACY_EXPANSION_ROM_HEADER definition error
(MdePkg\Include\IndustryStandard\Pci22.h; Tools\CCode\Source\Include\IndustryStandard\Pci22.h)
2.	SetVariable() with DataSize=0xffffffff will cause system hang
(EdkModulePkg\Universal\Variable\RuntimeDxe\Variable.c)
3.	Windows XP Pro & XP HOME Fails to Install from Retail CD
(EdkModulePkg\Bus\Pci\Pcibus\Dxe\PciResourceSupport.c)
4.	Pci22.h header file needs to add some recent type
(MdePkg\Include\IndustryStandard\Pci22.h; Tools\CCode\Source\Include\IndustryStandard\Pci22.h)
5.	Fix issues when ODD cannot boot from Sil0680 PCI-IDE controller
(EdkModulePkg\Bus\Pci\PciBus\Dxe\PciOptionromSupport.c;
EdkModulePkg\Bus\Pci\PciBus\Dxe\PciBus.msa;
EdkModulePkg\ EdkModulePkg.spd)


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1900 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-06 04:20:32 +00:00
jtang12 1723b2e2b2 Change #define bit(a) 1 << (a)
to     #define bit(a) (1 << (a))

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1885 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-02 05:01:08 +00:00
yshang1 f81f558de8 Follow up tracker EDKT285.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1826 6f19259b-4bc3-4df7-8a09-765794883524
2006-10-23 06:10:44 +00:00
jtang12 aa23173f1a Make sure all DMA related buffer allocation through PCI IO interface, not allocated by driver itself.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1815 6f19259b-4bc3-4df7-8a09-765794883524
2006-10-22 14:41:47 +00:00
mikewuping c5986ece67 Fix a bug by the check-in of 1738, which programs SATA interrupt line wrongly and will block booting from SATA disk.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1762 6f19259b-4bc3-4df7-8a09-765794883524
2006-10-16 09:39:41 +00:00
jwang36 713ace4c96 Removed GLOBAL_REMOVE_IF_UNREFENRENCED because it will cause compiler failure.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1743 6f19259b-4bc3-4df7-8a09-765794883524
2006-10-13 09:05:56 +00:00
dtang2 71a62114eb 1. Add the GLOBAL_REMOVE_IF_UNREFERENCED to globe variables which are used only in debug version;
2. Use ZeroMem to replace gBS->SetMem;
3. Remove marked code;
4. Add IsHub judgement in UsbPortReset function to following EFI1.1 spec;
5. Add brackets for macro definition

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1740 6f19259b-4bc3-4df7-8a09-765794883524
2006-10-13 06:36:11 +00:00
jtang12 a98f11c5b9 1. Changed device detect method to use ATA/ATAPI device signature;
2. Enhancements to better support SATA CDROM;
3. Fixed UDMA operation for buffer above 4G memory issue;
4. Fixed maximal block setting for ATAPI read sector operation to comply with spec;
5. Some minor fixes.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1739 6f19259b-4bc3-4df7-8a09-765794883524
2006-10-13 05:51:59 +00:00
cwu11 c51cec2560 The reasons for the changes made are:
1)PciCommand.h: Add some macro constants definitions that will be used by other changes.
2)PciDeviceSupport.c: 
a)Fix the bug that programs Non-Bridge Devices' Interrupt Line Register to 0x00. Although this register is rarely used in modern OS (actually, only Dos still uses it), it is good practice to modify it so it will align the spec. Please refer to PCI 3.0 Spec for the chapter on Interrupt line register.
b) Change the way used to detect VGA device. The old method will fail.
3)PciEnumeratorSupport.c: Make changes so Pci Driver will preserve those bits in Command & Bridge Control Register that were set by Customer's Chipset initialization code. Pci Driver is supposed to only touch those bits that are generic. Problems will arise if we destroy some initializations already done.
4)PciIo.c: PollIo() is not conformant to EFI spec so fix it. Also, some fixes are introduced to better support VGA card. These modifications are supposed to work with fixes in PciDeviceSupport.c.
5) PciOptionromSupport.c:Add the fix to enhance the logic working with OptionRom. Some legacy cards do not report correct imagelength so we add double check.
And add EFI_MIN and EFI_MAX macro definition since they are not currently defined in global files.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1738 6f19259b-4bc3-4df7-8a09-765794883524
2006-10-13 04:12:23 +00:00
lgao4 542834ce80 Remove the duplicated Copy Right in msa header.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1634 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-27 09:26:40 +00:00
vanjeff 61249ae523 Merger DriverBinding and ComponentName into one <extern> section for all *.msa files
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1585 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-21 05:25:07 +00:00
lgao4 62f8431554 changed EdkModulePkg GUID from the original B6EC423C-21D2-490D-85C6-DD5864EAA674 to new 68169ab0-d41b-4009-9060-292c253ac43d to avoid its conflict with gPeiBaseMemoryTestPpiGuid and change all msa and fpd file in EdkII, which depends on EdkModulePkg.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1551 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-18 11:31:20 +00:00
jchen20 33dc2c50a1 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1538 6f19259b-4bc3-4df7-8a09-765794883524 2006-09-14 09:30:35 +00:00
jchen20 66ce26dad5 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1537 6f19259b-4bc3-4df7-8a09-765794883524 2006-09-14 09:30:04 +00:00
jchen20 905dd497d2 Modify for enabling native VISTA
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1520 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-13 02:22:42 +00:00
vanjeff 3eeb9655a1 added 20ms stall to wait for slave device ready when identify some type of Seagate Hard Disk.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1358 6f19259b-4bc3-4df7-8a09-765794883524
2006-08-23 03:07:01 +00:00