| 1 |
|
| 2 |
|
| 3 |
#ifndef __NORTHBRIDGE_INTEL_SANDYBRIDGE_SANDYBRIDGE_H__ |
| 4 |
#define __NORTHBRIDGE_INTEL_SANDYBRIDGE_SANDYBRIDGE_H__ |
| 5 |
|
| 6 |
|
| 7 |
#define BASE_REV_SNB 0x00 |
| 8 |
#define BASE_REV_IVB 0x50 |
| 9 |
#define BASE_REV_MASK 0x50 |
| 10 |
|
| 11 |
#include "memmap.h" |
| 12 |
|
| 13 |
|
| 14 |
#ifndef __ASSEMBLER__ |
| 15 |
#include <types.h> |
| 16 |
|
| 17 |
|
| 18 |
enum platform_type { |
| 19 |
PLATFORM_MOBILE = 0, |
| 20 |
PLATFORM_DESKTOP_SERVER, |
| 21 |
}; |
| 22 |
|
| 23 |
|
| 24 |
#define HOST_BRIDGE PCI_DEV(0, 0, 0) |
| 25 |
|
| 26 |
#include "registers/host_bridge.h" |
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
#define AFE_PWRON 0xc24 |
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
#define MSAC 0x62 |
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
#include <northbridge/intel/common/fixed_bars.h> |
| 41 |
|
| 42 |
|
| 43 |
#include "registers/mchbar.h" |
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
#include "registers/epbar.h" |
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
#include "registers/dmibar.h" |
| 56 |
|
| 57 |
bool is_sandybridge(void); |
| 58 |
|
| 59 |
void intel_sandybridge_finalize_smm(void); |
| 60 |
void systemagent_early_init(void); |
| 61 |
void sandybridge_init_iommu(void); |
| 62 |
void sandybridge_late_initialization(void); |
| 63 |
void northbridge_romstage_finalize(void); |
| 64 |
void early_init_dmi(void); |
| 65 |
|
| 66 |
|
| 67 |
void mainboard_early_init(int s3resume); |
| 68 |
void perform_raminit(int s3resume); |
| 69 |
void report_memory_config(void); |
| 70 |
enum platform_type get_platform_type(void); |
| 71 |
|
| 72 |
#include <device/device.h> |
| 73 |
|
| 74 |
struct acpi_rsdp; |
| 75 |
unsigned long northbridge_write_acpi_tables(const struct device *device, unsigned long start, |
| 76 |
struct acpi_rsdp *rsdp); |
| 77 |
|
| 78 |
#endif |
| 79 |
#endif |