2008-05-21 03:40:12 +02:00
|
|
|
/** @file
|
2008-07-24 04:54:45 +02:00
|
|
|
GCD Operations and data structure used to
|
2008-04-09 09:07:50 +02:00
|
|
|
convert from GCD attributes to EFI Memory Map attributes.
|
2008-05-21 03:40:12 +02:00
|
|
|
|
2014-11-20 02:23:49 +01:00
|
|
|
Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
|
2019-04-04 01:05:13 +02:00
|
|
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
2007-07-04 12:51:54 +02:00
|
|
|
|
2008-04-09 09:07:50 +02:00
|
|
|
**/
|
2007-07-04 12:51:54 +02:00
|
|
|
|
2008-05-09 09:08:30 +02:00
|
|
|
#ifndef _GCD_H_
|
|
|
|
#define _GCD_H_
|
2007-07-04 12:51:54 +02:00
|
|
|
|
|
|
|
//
|
|
|
|
// GCD Operations
|
|
|
|
//
|
|
|
|
#define GCD_MEMORY_SPACE_OPERATION 0x20
|
|
|
|
#define GCD_IO_SPACE_OPERATION 0x40
|
|
|
|
|
2014-11-20 02:23:49 +01:00
|
|
|
#define GCD_ADD_MEMORY_OPERATION (GCD_MEMORY_SPACE_OPERATION | 0)
|
|
|
|
#define GCD_ALLOCATE_MEMORY_OPERATION (GCD_MEMORY_SPACE_OPERATION | 1)
|
|
|
|
#define GCD_FREE_MEMORY_OPERATION (GCD_MEMORY_SPACE_OPERATION | 2)
|
|
|
|
#define GCD_REMOVE_MEMORY_OPERATION (GCD_MEMORY_SPACE_OPERATION | 3)
|
|
|
|
#define GCD_SET_ATTRIBUTES_MEMORY_OPERATION (GCD_MEMORY_SPACE_OPERATION | 4)
|
|
|
|
#define GCD_SET_CAPABILITIES_MEMORY_OPERATION (GCD_MEMORY_SPACE_OPERATION | 5)
|
|
|
|
|
|
|
|
#define GCD_ADD_IO_OPERATION (GCD_IO_SPACE_OPERATION | 0)
|
|
|
|
#define GCD_ALLOCATE_IO_OPERATION (GCD_IO_SPACE_OPERATION | 1)
|
|
|
|
#define GCD_FREE_IO_OPERATION (GCD_IO_SPACE_OPERATION | 2)
|
|
|
|
#define GCD_REMOVE_IO_OPERATION (GCD_IO_SPACE_OPERATION | 3)
|
2007-07-04 12:51:54 +02:00
|
|
|
|
|
|
|
//
|
|
|
|
// The data structure used to convert from GCD attributes to EFI Memory Map attributes
|
|
|
|
//
|
|
|
|
typedef struct {
|
|
|
|
UINT64 Attribute;
|
|
|
|
UINT64 Capability;
|
|
|
|
BOOLEAN Memory;
|
|
|
|
} GCD_ATTRIBUTE_CONVERSION_ENTRY;
|
|
|
|
|
|
|
|
#endif
|