This is required for Flashrom to work well. Change-Id: Id756d86a7f3b34f816ea7a7ed78f159512f550d5 Signed-off-by: Lubomir Rintel <lkundrak@v3.sk> Reviewed-on: https://review.coreboot.org/22258 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
66 lines
2.1 KiB
C
66 lines
2.1 KiB
C
/*
|
|
* This file is part of the coreboot project.
|
|
*
|
|
* Copyright (C) 2011 Alexandru Gagniuc <mr.nuke.me@gmail.com>
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*/
|
|
#ifndef __VX900_H
|
|
#define __VX900_H
|
|
|
|
#define VX900_ACPI_IO_BASE 0x0400
|
|
|
|
#define VX900_NB_IOAPIC_ID 0x2
|
|
#define VX900_NB_IOAPIC_BASE 0xfecc000
|
|
|
|
#define VX900_SB_IOAPIC_ID 0x1
|
|
#define VX900_SB_IOAPIC_BASE 0xfec0000
|
|
|
|
#define SMBUS_IO_BASE 0x500
|
|
|
|
#define VX900_MMCONFIG_MBAR 0xbc
|
|
|
|
/* The maximum number of DIMM slots that the VX900 supports */
|
|
#define VX900_MAX_DIMM_SLOTS 2
|
|
#define VX900_MAX_MEM_RANKS 4
|
|
|
|
#include <arch/io.h>
|
|
#include <device/pci.h>
|
|
|
|
#include <console/console.h>
|
|
|
|
u32 chrome9hd_fb_size(void);
|
|
u8 vx900_int15_get_5f18_bl(void);
|
|
uint64_t get_uma_memory_base(void);
|
|
|
|
/* We use these throughout the code. They really belong in a generic part of
|
|
* coreboot, but until bureaucracy gets them there, we still need them */
|
|
|
|
#ifdef __SIMPLE_DEVICE__
|
|
void dump_pci_device(pci_devfn_t dev);
|
|
void pci_mod_config8(pci_devfn_t dev, unsigned int where,
|
|
uint8_t clr_mask, uint8_t set_mask);
|
|
void pci_mod_config16(pci_devfn_t dev, unsigned int where,
|
|
uint16_t clr_mask, uint16_t set_mask);
|
|
void pci_mod_config32(pci_devfn_t dev, unsigned int where,
|
|
uint32_t clr_mask, uint32_t set_mask);
|
|
#else
|
|
void dump_pci_device(device_t dev);
|
|
void pci_mod_config8(device_t dev, unsigned int where,
|
|
uint8_t clr_mask, uint8_t set_mask);
|
|
void pci_mod_config16(device_t dev, unsigned int where,
|
|
uint16_t clr_mask, uint16_t set_mask);
|
|
void pci_mod_config32(device_t dev, unsigned int where,
|
|
uint32_t clr_mask, uint32_t set_mask);
|
|
#endif
|
|
|
|
#endif /* __VX900_H */
|