coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
memmap.c File Reference
#include <cbmem.h>
#include <arch/io.h>
#include <arch/romstage.h>
#include <console/console.h>
#include <cpu/x86/smm.h>
#include "memory.h"
#include "fw_cfg.h"
Include dependency graph for memmap.c:

Go to the source code of this file.

Macros

#define CMOS_ADDR_PORT   0x70
 
#define CMOS_DATA_PORT   0x71
 
#define HIGH_RAM_ADDR   0x35
 
#define LOW_RAM_ADDR   0x34
 
#define HIGH_HIGHRAM_ADDR   0x5d
 
#define MID_HIGHRAM_ADDR   0x5c
 
#define LOW_HIGHRAM_ADDR   0x5b
 

Functions

unsigned long qemu_get_high_memory_size (void)
 
unsigned long qemu_get_memory_size (void)
 
voidcbmem_top_chipset (void)
 
void fill_postcar_frame (struct postcar_frame *pcf)
 

Macro Definition Documentation

◆ CMOS_ADDR_PORT

#define CMOS_ADDR_PORT   0x70

Definition at line 11 of file memmap.c.

◆ CMOS_DATA_PORT

#define CMOS_DATA_PORT   0x71

Definition at line 12 of file memmap.c.

◆ HIGH_HIGHRAM_ADDR

#define HIGH_HIGHRAM_ADDR   0x5d

Definition at line 17 of file memmap.c.

◆ HIGH_RAM_ADDR

#define HIGH_RAM_ADDR   0x35

Definition at line 14 of file memmap.c.

◆ LOW_HIGHRAM_ADDR

#define LOW_HIGHRAM_ADDR   0x5b

Definition at line 19 of file memmap.c.

◆ LOW_RAM_ADDR

#define LOW_RAM_ADDR   0x34

Definition at line 15 of file memmap.c.

◆ MID_HIGHRAM_ADDR

#define MID_HIGHRAM_ADDR   0x5c

Definition at line 18 of file memmap.c.

Function Documentation

◆ cbmem_top_chipset()

void* cbmem_top_chipset ( void  )

Definition at line 44 of file memmap.c.

References BIOS_WARNING, CONFIG, fw_cfg_tolud(), printk, qemu_get_memory_size(), and smm_region().

Here is the call graph for this function:

◆ fill_postcar_frame()

void fill_postcar_frame ( struct postcar_frame pcf)

Definition at line 63 of file memmap.c.

◆ qemu_get_high_memory_size()

unsigned long qemu_get_high_memory_size ( void  )

Definition at line 21 of file memmap.c.

References CMOS_ADDR_PORT, CMOS_DATA_PORT, HIGH_HIGHRAM_ADDR, inb(), LOW_HIGHRAM_ADDR, MID_HIGHRAM_ADDR, and outb().

Referenced by cpu_pci_domain_read_resources().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ qemu_get_memory_size()

unsigned long qemu_get_memory_size ( void  )

Definition at line 33 of file memmap.c.

References CMOS_ADDR_PORT, CMOS_DATA_PORT, HIGH_RAM_ADDR, inb(), LOW_RAM_ADDR, and outb().

Referenced by cbmem_top_chipset(), cpu_pci_domain_read_resources(), and smm_region().

Here is the call graph for this function:
Here is the caller graph for this function: