45 u32 tomk, tolud, tseg_sizek;
46 u32 cbmem_topk, delta_cbmem;
68 printk(
BIOS_DEBUG,
"TOUUD 0x%llx TOLUD 0x%08x TOM 0x%llx ", touud, tolud, tom);
88 tseg_sizek = gtt_basek - tseg_basek;
95 delta_cbmem = tomk - cbmem_topk;
98 printk(
BIOS_DEBUG,
"Unused RAM between cbmem_top and TOMK: 0x%xK\n", delta_cbmem);
113 if (touud > top32memk) {
114 ram_resource(dev, index++, top32memk, touud - top32memk);
116 (touud - top32memk) /
KiB);
129 die(
"could not find pci 00:00.0!\n");
#define HPET_BASE_ADDRESS
#define printk(level,...)
void __noreturn die(const char *fmt,...)
void generate_cpu_entries(const struct device *device)
void assign_resources(struct bus *bus)
Assign the computed resources to the devices on the bus.
DEVTREE_CONST struct device * pcidev_on_root(uint8_t dev, uint8_t fn)
struct resource * new_resource(struct device *dev, unsigned int index)
See if a resource structure already exists for a given index and if not allocate one.
void mmconf_resource(struct device *dev, unsigned long index)
void report_resource_stored(struct device *dev, const struct resource *resource, const char *comment)
Print the resource that was just stored.
u32 decode_igd_memory_size(u32 gms)
Decodes used Graphics Mode Select (GMS) to kilobytes.
u32 decode_igd_gtt_size(u32 gsm)
Decodes used Graphics Stolen Memory (GSM) to kilobytes.
static void noop_read_resources(struct device *dev)
Standard device operations function pointers shims.
static void noop_set_resources(struct device *dev)
static void mp_cpu_bus_init(struct device *dev)
#define ram_resource(dev, idx, basek, sizek)
#define mmio_resource(dev, idx, basek, sizek)
#define reserved_ram_resource(dev, idx, basek, sizek)
static __always_inline void pci_or_config16(const struct device *dev, u16 reg, u16 ormask)
static __always_inline u16 pci_read_config16(const struct device *dev, u16 reg)
static __always_inline u32 pci_read_config32(const struct device *dev, u16 reg)
static __always_inline void pci_write_config8(const struct device *dev, u16 reg, u8 val)
#define BIOS_INFO
BIOS_INFO - Expected events.
#define BIOS_DEBUG
BIOS_DEBUG - Verbose output.
void northbridge_write_smram(u8 smram)
static struct device_operations cpu_bus_ops
static struct device_operations pci_domain_ops
static void enable_dev(struct device *dev)
static void mch_domain_set_resources(struct device *dev)
static const int legacy_hole_base_k
static void mch_domain_read_resources(struct device *dev)
static void add_fixed_resources(struct device *dev, int index)
struct chip_operations northbridge_intel_pineview_ops
static void mch_domain_init(struct device *dev)
static const char * northbridge_acpi_name(const struct device *dev)
@ DEVICE_PATH_CPU_CLUSTER
#define PCI_DEVFN(slot, func)
void pci_domain_read_resources(struct device *dev)
void pci_domain_scan_bus(struct device *dev)
Scan a PCI domain.
#define IORESOURCE_RESERVE
#define IORESOURCE_STORED
#define IORESOURCE_ASSIGNED
void(* read_resources)(struct device *dev)
enum device_path_type type
struct device_operations * ops
DEVTREE_CONST struct bus * bus
DEVTREE_CONST struct bus * link_list
DEVTREE_CONST struct resource * resource_list
DEVTREE_CONST struct resource * next