mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
This tree shows the new model. It demonstrates the constructor array in use, for devices that are and are not specified in the dts. It introduces a new generic structure, device_id, analogous to device_path, which can describe all the types of device IDs we have. It shows a way to set up arrays of structs, in the dts, for the constructors, so we avoid ldscript hacks. Signed-off-by: Ronald G. Minnich <rminnich@gmail.com> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@233 f3766cd6-281f-0410-b1cd-43a5c92072e9
59 lines
1.5 KiB
Text
59 lines
1.5 KiB
Text
/*
|
|
* This file is part of the LinuxBIOS project.
|
|
*
|
|
* Copyright (C) 2007 Ronald G. Minnich <rminnich@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.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
*/
|
|
/{
|
|
config="mainboard,emulation,qemu-x86";
|
|
enabled;
|
|
|
|
cpus {
|
|
enabled;
|
|
};
|
|
domain0{
|
|
enabled;
|
|
config="northbridge,intel,i440bxemulation";
|
|
ops="i440bxemulation_pcidomainops";
|
|
pcidomain = "0";
|
|
device0,0{
|
|
enabled;
|
|
pcipath="0,0";
|
|
};
|
|
/* southbridge,intel,piix4{
|
|
pcipath = "0,0";
|
|
enabled;
|
|
};
|
|
*/
|
|
};
|
|
|
|
};
|
|
|
|
%%
|
|
|
|
#include <southbridge/intel/i82371eb/config.h>
|
|
|
|
struct mainboard_emulation_qemu_x86_config root = {
|
|
.nothing = 1,
|
|
};
|
|
|
|
struct northbridge_intel_i440bx_config domain0 = {
|
|
.ramsize = CONFIG_NORTHBRIDGE_INTEL_I440BXEMULATION_RAMSIZE,
|
|
};
|
|
|
|
struct constructor *all_constructors[] ={
|
|
i440bx_constructors, i82371eb_constructors, 0
|
|
};
|