X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=QuarkSocPkg%2FQuarkNorthCluster%2FSmm%2FDxe%2FSmmAccessDxe%2FSmmAccessDriver.h;fp=QuarkSocPkg%2FQuarkNorthCluster%2FSmm%2FDxe%2FSmmAccessDxe%2FSmmAccessDriver.h;h=0000000000000000000000000000000000000000;hp=aca169d3e2fc82b2b7f4dbeaee55261141054baa;hb=5347c48016f27061475fdb053e867a06ce73492f;hpb=96ef5a8e30a8da33eaab09f13cc8d752342717a5 diff --git a/QuarkSocPkg/QuarkNorthCluster/Smm/Dxe/SmmAccessDxe/SmmAccessDriver.h b/QuarkSocPkg/QuarkNorthCluster/Smm/Dxe/SmmAccessDxe/SmmAccessDriver.h deleted file mode 100644 index aca169d3e2..0000000000 --- a/QuarkSocPkg/QuarkNorthCluster/Smm/Dxe/SmmAccessDxe/SmmAccessDriver.h +++ /dev/null @@ -1,230 +0,0 @@ -/** @file -Header file for SMM Access Driver. - -This file includes package header files, library classes and protocol, PPI & GUID definitions. - -Copyright (c) 2013-2019 Intel Corporation. - -SPDX-License-Identifier: BSD-2-Clause-Patent -**/ - -#ifndef _SMM_ACCESS_DRIVER_H -#define _SMM_ACCESS_DRIVER_H - -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include - -// -// Driver Consumed Protocol Prototypes -// -#include - -// -// Driver Consumed GUID Prototypes -// -#include - -// -// Driver produced protocol -// -#include - -#include -#include - -#define MAX_CPU_SOCKET 1 -#define MAX_SMRAM_RANGES 4 - -// -// Private data structure -// -#define SMM_ACCESS_PRIVATE_DATA_SIGNATURE SIGNATURE_32 ('i', 's', 'm', 'a') - -typedef struct { - UINTN Signature; - EFI_HANDLE Handle; - EFI_SMM_ACCESS2_PROTOCOL SmmAccess; - EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *PciRootBridgeIo; - UINTN NumberRegions; - EFI_SMRAM_DESCRIPTOR SmramDesc[MAX_SMRAM_RANGES]; - UINT8 TsegSize; - UINT8 MaxBusNumber; - UINT8 SocketPopulated[MAX_CPU_SOCKET]; - UINT64 SMMRegionState; - UINT8 ActualNLIioBusNumber; -} SMM_ACCESS_PRIVATE_DATA; - - -#define SMM_ACCESS_PRIVATE_DATA_FROM_THIS(a) \ - CR ( \ - a, \ - SMM_ACCESS_PRIVATE_DATA, \ - SmmAccess, \ - SMM_ACCESS_PRIVATE_DATA_SIGNATURE \ - ) - - -// -// Prototypes -// Driver model protocol interface -// -EFI_STATUS -EFIAPI -SmmAccessDriverEntryPoint ( - IN EFI_HANDLE ImageHandle, - IN EFI_SYSTEM_TABLE *SystemTable - ) -/*++ - -Routine Description: - - This is the standard EFI driver point that detects - whether there is an proper chipset in the system - and if so, installs an SMM Access Protocol. - -Arguments: - - ImageHandle - Handle for the image of this driver. - SystemTable - Pointer to the EFI System Table. - -Returns: - - EFI_SUCCESS - Protocol successfully started and installed. - EFI_UNSUPPORTED - Protocol can't be started. - ---*/ -; - -EFI_STATUS -EFIAPI -Open ( - IN EFI_SMM_ACCESS2_PROTOCOL *This - ) -/*++ - -Routine Description: - - This routine accepts a request to "open" a region of SMRAM. The - region could be legacy ABSEG, HSEG, or TSEG near top of physical memory. - The use of "open" means that the memory is visible from all boot-service - and SMM agents. - -Arguments: - - This - Pointer to the SMM Access Interface. - DescriptorIndex - Region of SMRAM to Open. - -Returns: - - EFI_SUCCESS - The region was successfully opened. - EFI_DEVICE_ERROR - The region could not be opened because locked by - chipset. - EFI_INVALID_PARAMETER - The descriptor index was out of bounds. - ---*/ -; - -EFI_STATUS -EFIAPI -Close ( - IN EFI_SMM_ACCESS2_PROTOCOL *This - ) -/*++ - -Routine Description: - - This routine accepts a request to "close" a region of SMRAM. This is valid for - compatible SMRAM region. - -Arguments: - - This - Pointer to the SMM Access Interface. - DescriptorIndex - Region of SMRAM to Close. - -Returns: - - EFI_SUCCESS - The region was successfully closed. - EFI_DEVICE_ERROR - The region could not be closed because locked by - chipset. - EFI_INVALID_PARAMETER - The descriptor index was out of bounds. - ---*/ -; - -EFI_STATUS -EFIAPI -Lock ( - IN EFI_SMM_ACCESS2_PROTOCOL *This - ) -/*++ - -Routine Description: - - This routine accepts a request to "lock" SMRAM. The - region could be legacy AB or TSEG near top of physical memory. - The use of "lock" means that the memory can no longer be opened - to BS state.. - -Arguments: - - This - Pointer to the SMM Access Interface. - DescriptorIndex - Region of SMRAM to Lock. - -Returns: - - EFI_SUCCESS - The region was successfully locked. - EFI_DEVICE_ERROR - The region could not be locked because at least - one range is still open. - EFI_INVALID_PARAMETER - The descriptor index was out of bounds. - ---*/ -; - -EFI_STATUS -EFIAPI -GetCapabilities ( - IN CONST EFI_SMM_ACCESS2_PROTOCOL *This, - IN OUT UINTN *SmramMapSize, - IN OUT EFI_SMRAM_DESCRIPTOR *SmramMap - ) -/*++ - -Routine Description: - - This routine services a user request to discover the SMRAM - capabilities of this platform. This will report the possible - ranges that are possible for SMRAM access, based upon the - memory controller capabilities. - -Arguments: - - This - Pointer to the SMRAM Access Interface. - SmramMapSize - Pointer to the variable containing size of the - buffer to contain the description information. - SmramMap - Buffer containing the data describing the Smram - region descriptors. - -Returns: - - EFI_BUFFER_TOO_SMALL - The user did not provide a sufficient buffer. - EFI_SUCCESS - The user provided a sufficiently-sized buffer. - ---*/ -; -VOID -SyncRegionState2SmramDesc( - IN BOOLEAN OrAnd, - IN UINT64 Value - ); - -#endif