EDK2 doxygen online documents - Firmware Encoding Index 1
EDK2 doxygen online documents - Firmware Encoding Index

EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/Library/EdkIIGluePciCf8Lib.h

Go to the documentation of this file.
00001 /*++
00002 
00003 Copyright (c) 2004 - 2006, Intel Corporation. All rights reserved.<BR>
00004 This program and the accompanying materials                          
00005 are licensed and made available under the terms and conditions of the BSD License         
00006 which accompanies this distribution.  The full text of the license may be found at        
00007 http://opensource.org/licenses/bsd-license.php                                            
00008                                                                                           
00009 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     
00010 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.  
00011 
00012 
00013 Module Name:
00014 
00015   EdkIIGluePciCf8Lib.h
00016   
00017 Abstract: 
00018 
00019   Public header file for Pci Cf8 Lib
00020 
00021 --*/
00022 
00023 #ifndef __EDKII_GLUE_PCI_CF8_LIB_H__
00024 #define __EDKII_GLUE_PCI_CF8_LIB_H__
00025 
00026 
00043 #define PCI_CF8_LIB_ADDRESS(Bus,Device,Function,Offset) \
00044   (((Offset) & 0xfff) | (((Function) & 0x07) << 12) | (((Device) & 0x1f) << 15) | (((Bus) & 0xff) << 20))
00045 
00062 UINT8
00063 EFIAPI
00064 PciCf8Read8 (
00065   IN      UINTN                     Address
00066   );
00067 
00085 UINT8
00086 EFIAPI
00087 PciCf8Write8 (
00088   IN      UINTN                     Address,
00089   IN      UINT8                     Data
00090   );
00091 
00113 UINT8
00114 EFIAPI
00115 PciCf8Or8 (
00116   IN      UINTN                     Address,
00117   IN      UINT8                     OrData
00118   );
00119 
00141 UINT8
00142 EFIAPI
00143 PciCf8And8 (
00144   IN      UINTN                     Address,
00145   IN      UINT8                     AndData
00146   );
00147 
00171 UINT8
00172 EFIAPI
00173 PciCf8AndThenOr8 (
00174   IN      UINTN                     Address,
00175   IN      UINT8                     AndData,
00176   IN      UINT8                     OrData
00177   );
00178 
00201 UINT8
00202 EFIAPI
00203 PciCf8BitFieldRead8 (
00204   IN      UINTN                     Address,
00205   IN      UINTN                     StartBit,
00206   IN      UINTN                     EndBit
00207   );
00208 
00233 UINT8
00234 EFIAPI
00235 PciCf8BitFieldWrite8 (
00236   IN      UINTN                     Address,
00237   IN      UINTN                     StartBit,
00238   IN      UINTN                     EndBit,
00239   IN      UINT8                     Value
00240   );
00241 
00269 UINT8
00270 EFIAPI
00271 PciCf8BitFieldOr8 (
00272   IN      UINTN                     Address,
00273   IN      UINTN                     StartBit,
00274   IN      UINTN                     EndBit,
00275   IN      UINT8                     OrData
00276   );
00277 
00305 UINT8
00306 EFIAPI
00307 PciCf8BitFieldAnd8 (
00308   IN      UINTN                     Address,
00309   IN      UINTN                     StartBit,
00310   IN      UINTN                     EndBit,
00311   IN      UINT8                     AndData
00312   );
00313 
00344 UINT8
00345 EFIAPI
00346 PciCf8BitFieldAndThenOr8 (
00347   IN      UINTN                     Address,
00348   IN      UINTN                     StartBit,
00349   IN      UINTN                     EndBit,
00350   IN      UINT8                     AndData,
00351   IN      UINT8                     OrData
00352   );
00353 
00371 UINT16
00372 EFIAPI
00373 PciCf8Read16 (
00374   IN      UINTN                     Address
00375   );
00376 
00395 UINT16
00396 EFIAPI
00397 PciCf8Write16 (
00398   IN      UINTN                     Address,
00399   IN      UINT16                    Data
00400   );
00401 
00424 UINT16
00425 EFIAPI
00426 PciCf8Or16 (
00427   IN      UINTN                     Address,
00428   IN      UINT16                    OrData
00429   );
00430 
00453 UINT16
00454 EFIAPI
00455 PciCf8And16 (
00456   IN      UINTN                     Address,
00457   IN      UINT16                    AndData
00458   );
00459 
00484 UINT16
00485 EFIAPI
00486 PciCf8AndThenOr16 (
00487   IN      UINTN                     Address,
00488   IN      UINT16                    AndData,
00489   IN      UINT16                    OrData
00490   );
00491 
00515 UINT16
00516 EFIAPI
00517 PciCf8BitFieldRead16 (
00518   IN      UINTN                     Address,
00519   IN      UINTN                     StartBit,
00520   IN      UINTN                     EndBit
00521   );
00522 
00548 UINT16
00549 EFIAPI
00550 PciCf8BitFieldWrite16 (
00551   IN      UINTN                     Address,
00552   IN      UINTN                     StartBit,
00553   IN      UINTN                     EndBit,
00554   IN      UINT16                    Value
00555   );
00556 
00585 UINT16
00586 EFIAPI
00587 PciCf8BitFieldOr16 (
00588   IN      UINTN                     Address,
00589   IN      UINTN                     StartBit,
00590   IN      UINTN                     EndBit,
00591   IN      UINT16                    OrData
00592   );
00593 
00622 UINT16
00623 EFIAPI
00624 PciCf8BitFieldAnd16 (
00625   IN      UINTN                     Address,
00626   IN      UINTN                     StartBit,
00627   IN      UINTN                     EndBit,
00628   IN      UINT16                    AndData
00629   );
00630 
00662 UINT16
00663 EFIAPI
00664 PciCf8BitFieldAndThenOr16 (
00665   IN      UINTN                     Address,
00666   IN      UINTN                     StartBit,
00667   IN      UINTN                     EndBit,
00668   IN      UINT16                    AndData,
00669   IN      UINT16                    OrData
00670   );
00671 
00689 UINT32
00690 EFIAPI
00691 PciCf8Read32 (
00692   IN      UINTN                     Address
00693   );
00694 
00713 UINT32
00714 EFIAPI
00715 PciCf8Write32 (
00716   IN      UINTN                     Address,
00717   IN      UINT32                    Data
00718   );
00719 
00742 UINT32
00743 EFIAPI
00744 PciCf8Or32 (
00745   IN      UINTN                     Address,
00746   IN      UINT32                    OrData
00747   );
00748 
00771 UINT32
00772 EFIAPI
00773 PciCf8And32 (
00774   IN      UINTN                     Address,
00775   IN      UINT32                    AndData
00776   );
00777 
00802 UINT32
00803 EFIAPI
00804 PciCf8AndThenOr32 (
00805   IN      UINTN                     Address,
00806   IN      UINT32                    AndData,
00807   IN      UINT32                    OrData
00808   );
00809 
00833 UINT32
00834 EFIAPI
00835 PciCf8BitFieldRead32 (
00836   IN      UINTN                     Address,
00837   IN      UINTN                     StartBit,
00838   IN      UINTN                     EndBit
00839   );
00840 
00866 UINT32
00867 EFIAPI
00868 PciCf8BitFieldWrite32 (
00869   IN      UINTN                     Address,
00870   IN      UINTN                     StartBit,
00871   IN      UINTN                     EndBit,
00872   IN      UINT32                    Value
00873   );
00874 
00903 UINT32
00904 EFIAPI
00905 PciCf8BitFieldOr32 (
00906   IN      UINTN                     Address,
00907   IN      UINTN                     StartBit,
00908   IN      UINTN                     EndBit,
00909   IN      UINT32                    OrData
00910   );
00911 
00940 UINT32
00941 EFIAPI
00942 PciCf8BitFieldAnd32 (
00943   IN      UINTN                     Address,
00944   IN      UINTN                     StartBit,
00945   IN      UINTN                     EndBit,
00946   IN      UINT32                    AndData
00947   );
00948 
00980 UINT32
00981 EFIAPI
00982 PciCf8BitFieldAndThenOr32 (
00983   IN      UINTN                     Address,
00984   IN      UINTN                     StartBit,
00985   IN      UINTN                     EndBit,
00986   IN      UINT32                    AndData,
00987   IN      UINT32                    OrData
00988   );
00989 
01014 UINTN
01015 EFIAPI
01016 PciCf8ReadBuffer (
01017   IN      UINTN                     StartAddress,
01018   IN      UINTN                     Size,
01019   OUT     VOID                      *Buffer
01020   );
01021 
01047 UINTN
01048 EFIAPI
01049 PciCf8WriteBuffer (
01050   IN      UINTN                     StartAddress,
01051   IN      UINTN                     Size,
01052   IN      VOID                      *Buffer
01053   );
01054 
01055 #endif
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Defines