Subversion Repositories HelenOS

Rev

Rev 2927 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2927 Rev 4344
Line 24... Line 24...
24
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
 */
27
 */
28
 
28
 
29
/** @addtogroup ia32   
29
/** @addtogroup ia32
30
 * @{
30
 * @{
31
 */
31
 */
32
/** @file
32
/** @file
33
 */
33
 */
34
 
34
 
35
#ifndef KERN_ia32_MEMMAP_H_
35
#ifndef KERN_ia32_MEMMAP_H_
36
#define KERN_ia32_MEMMAP_H_
36
#define KERN_ia32_MEMMAP_H_
37
 
37
 
38
/* E820h memory range types - other values*/
38
/* E820h memory range types */
39
    /* Free memory */
-
 
40
#define MEMMAP_MEMORY_AVAILABLE 1
-
 
41
    /* Not available for OS */
-
 
42
#define MEMMAP_MEMORY_RESERVED  2 
-
 
43
    /* OS may use it after reading ACPI table */
-
 
44
#define MEMMAP_MEMORY_ACPI  3 
-
 
45
    /* Unusable, required to be saved and restored across an NVS sleep */
-
 
46
#define MEMMAP_MEMORY_NVS   4 
-
 
47
    /* Corrupted memory */
-
 
48
#define MEMMAP_MEMORY_UNUSABLE  5 
-
 
49
 
-
 
50
     /* size of one entry */
-
 
51
#define MEMMAP_E820_RECORD_SIZE 20 
-
 
52
    /* maximum entries */
-
 
53
#define MEMMAP_E820_MAX_RECORDS 32 
-
 
54
 
39
 
-
 
40
/* Free memory */
-
 
41
#define MEMMAP_MEMORY_AVAILABLE  1
-
 
42
 
-
 
43
/* Not available for OS */
-
 
44
#define MEMMAP_MEMORY_RESERVED   2
-
 
45
 
-
 
46
/* OS may use it after reading ACPI table */
-
 
47
#define MEMMAP_MEMORY_ACPI       3
-
 
48
 
-
 
49
/* Unusable, required to be saved and restored across an NVS sleep */
-
 
50
#define MEMMAP_MEMORY_NVS        4
-
 
51
 
-
 
52
/* Corrupted memory */
-
 
53
#define MEMMAP_MEMORY_UNUSABLE   5
-
 
54
 
-
 
55
/* Size of one entry */
-
 
56
#define MEMMAP_E820_RECORD_SIZE  20
-
 
57
 
-
 
58
/* Maximum entries */
-
 
59
#define MEMMAP_E820_MAX_RECORDS  32
55
 
60
 
56
#ifndef __ASM__
61
#ifndef __ASM__
57
 
62
 
58
#include <arch/types.h>
63
#include <arch/types.h>
59
 
64