indent mptable.c
Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5332 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
parent
fc2b8ec5ad
commit
0b2f18523a
|
@ -15,24 +15,24 @@
|
||||||
#define PCI_IRQ(dev, intLine) (((dev)<<2) | intLine)
|
#define PCI_IRQ(dev, intLine) (((dev)<<2) | intLine)
|
||||||
|
|
||||||
|
|
||||||
void xe7501devkit_register_buses(struct mp_config_table *mc)
|
static void xe7501devkit_register_buses(struct mp_config_table *mc)
|
||||||
{
|
{
|
||||||
// Bus ID, Bus Type
|
// Bus ID, Bus Type
|
||||||
smp_write_bus(mc, PCI_BUS_CHIPSET, BUSTYPE_PCI);
|
smp_write_bus(mc, PCI_BUS_CHIPSET, BUSTYPE_PCI);
|
||||||
smp_write_bus(mc, PCI_BUS_E7501_HI_B, BUSTYPE_PCI);
|
smp_write_bus(mc, PCI_BUS_E7501_HI_B, BUSTYPE_PCI);
|
||||||
smp_write_bus(mc, PCI_BUS_P64H2_2_B, BUSTYPE_PCI);
|
smp_write_bus(mc, PCI_BUS_P64H2_2_B, BUSTYPE_PCI);
|
||||||
smp_write_bus(mc, PCI_BUS_P64H2_2_A, BUSTYPE_PCI);
|
smp_write_bus(mc, PCI_BUS_P64H2_2_A, BUSTYPE_PCI);
|
||||||
smp_write_bus(mc, PCI_BUS_E7501_HI_D, BUSTYPE_PCI);
|
smp_write_bus(mc, PCI_BUS_E7501_HI_D, BUSTYPE_PCI);
|
||||||
smp_write_bus(mc, PCI_BUS_P64H2_1_B, BUSTYPE_PCI);
|
smp_write_bus(mc, PCI_BUS_P64H2_1_B, BUSTYPE_PCI);
|
||||||
smp_write_bus(mc, PCI_BUS_P64H2_1_A, BUSTYPE_PCI);
|
smp_write_bus(mc, PCI_BUS_P64H2_1_A, BUSTYPE_PCI);
|
||||||
smp_write_bus(mc, PCI_BUS_ICH3, BUSTYPE_PCI);
|
smp_write_bus(mc, PCI_BUS_ICH3, BUSTYPE_PCI);
|
||||||
smp_write_bus(mc, SUPERIO_BUS, BUSTYPE_ISA);
|
smp_write_bus(mc, SUPERIO_BUS, BUSTYPE_ISA);
|
||||||
}
|
}
|
||||||
|
|
||||||
void xe7501devkit_register_ioapics(struct mp_config_table *mc)
|
static void xe7501devkit_register_ioapics(struct mp_config_table *mc)
|
||||||
{
|
{
|
||||||
device_t dev;
|
device_t dev;
|
||||||
struct resource *res;
|
struct resource *res;
|
||||||
|
|
||||||
// TODO: Gack. This is REALLY ugly.
|
// TODO: Gack. This is REALLY ugly.
|
||||||
|
|
||||||
|
@ -145,18 +145,18 @@ void xe7501devkit_register_interrupts(struct mp_config_table *mc)
|
||||||
static void *smp_write_config_table(void* v)
|
static void *smp_write_config_table(void* v)
|
||||||
{
|
{
|
||||||
static const char sig[4] = MPC_SIGNATURE;
|
static const char sig[4] = MPC_SIGNATURE;
|
||||||
static const char oem[8] = "INTEL ";
|
static const char oem[8] = "INTEL ";
|
||||||
static const char productid[12] = "XE7501DEVKIT";
|
static const char productid[12] = "XE7501DEVKIT";
|
||||||
struct mp_config_table *mc = (void *)(((char *)v) + SMP_FLOATING_TABLE_LEN);
|
struct mp_config_table *mc = (void *)(((char *)v) + SMP_FLOATING_TABLE_LEN);
|
||||||
memset(mc, 0, sizeof(*mc));
|
memset(mc, 0, sizeof(*mc));
|
||||||
|
|
||||||
memcpy(mc->mpc_signature, sig, sizeof(sig));
|
memcpy(mc->mpc_signature, sig, sizeof(sig));
|
||||||
memcpy(mc->mpc_oem, oem, sizeof(oem));
|
memcpy(mc->mpc_oem, oem, sizeof(oem));
|
||||||
memcpy(mc->mpc_productid, productid, sizeof(productid));
|
memcpy(mc->mpc_productid, productid, sizeof(productid));
|
||||||
|
|
||||||
mc->mpc_length = sizeof(*mc); // initially just the header
|
mc->mpc_length = sizeof(*mc); // initially just the header
|
||||||
mc->mpc_spec = 0x04; // Multiprocessing Spec V1.4
|
mc->mpc_spec = 0x04; // Multiprocessing Spec V1.4
|
||||||
mc->mpc_lapic = LAPIC_ADDR;
|
mc->mpc_lapic = LAPIC_ADDR;
|
||||||
|
|
||||||
smp_write_processors(mc);
|
smp_write_processors(mc);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue