coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
mptable.c File Reference
Include dependency graph for mptable.c:

Go to the source code of this file.

Macros

#define IO_LOCAL_INT(type, intr, apicid, pin)
 
#define PCI_INT(bus, dev, int_sign, pin)
 

Functions

static void smp_add_mpc_entry (struct mp_config_table *mc, unsigned int length)
 
static void my_smp_write_bus (struct mp_config_table *mc, unsigned char id, const char *bustype)
 
static voidsmp_write_config_table (void *v)
 
unsigned long write_smp_table (unsigned long addr)
 

Macro Definition Documentation

◆ IO_LOCAL_INT

#define IO_LOCAL_INT (   type,
  intr,
  apicid,
  pin 
)
Value:
bus_isa, (intr), (apicid), (pin))
unsigned int type
Definition: edid.c:57
void smp_write_lintsrc(struct mp_config_table *mc, u8 irqtype, u16 irqflag, u8 srcbusid, u8 srcbusirq, u8 destapic, u8 destapiclint)
Definition: mpspec.c:337
#define MP_IRQ_POLARITY_HIGH
Definition: mpspec.h:124
#define MP_IRQ_TRIGGER_EDGE
Definition: mpspec.h:128

◆ PCI_INT

#define PCI_INT (   bus,
  dev,
  int_sign,
  pin 
)
Value:
(bus), (((dev)<<2)|(int_sign)), ioapic_id, (pin))
@ mp_INT
Definition: mpspec.h:117
void smp_write_intsrc(struct mp_config_table *mc, u8 irqtype, u16 irqflag, u8 srcbus, u8 srcbusirq, u8 dstapic, u8 dstirq)
Definition: mpspec.c:237
#define MP_IRQ_POLARITY_LOW
Definition: mpspec.h:125
#define MP_IRQ_TRIGGER_LEVEL
Definition: mpspec.h:129
Definition: device.h:76

Function Documentation

◆ my_smp_write_bus()

static void my_smp_write_bus ( struct mp_config_table mc,
unsigned char  id,
const char *  bustype 
)
static

Definition at line 15 of file mptable.c.

References memcpy(), memset(), MP_BUS, mpc_config_bus::mpc_busid, mpc_config_bus::mpc_bustype, mpc_config_bus::mpc_type, smp_add_mpc_entry(), and smp_next_mpc_entry().

Referenced by smp_write_config_table().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ smp_add_mpc_entry()

static void smp_add_mpc_entry ( struct mp_config_table mc,
unsigned int  length 
)
static

Definition at line 9 of file mptable.c.

References length, mp_config_table::mpc_entry_count, and mp_config_table::mpc_length.

Referenced by my_smp_write_bus().

Here is the caller graph for this function:

◆ smp_write_config_table()

static void* smp_write_config_table ( void v)
static

◆ write_smp_table()

unsigned long write_smp_table ( unsigned long  addr)

Definition at line 128 of file mptable.c.

References addr, smp_write_config_table(), and smp_write_floating_table().

Here is the call graph for this function: