coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
itss.c File Reference
#include <stdint.h>
#include <commonlib/helpers.h>
#include <console/console.h>
#include <intelblocks/itss.h>
#include <intelblocks/pcr.h>
#include <soc/itss.h>
#include <soc/pcr_ids.h>
#include <southbridge/intel/common/acpi_pirq_gen.h>
Include dependency graph for itss.c:

Go to the source code of this file.

Functions

void itss_irq_init (const uint8_t pch_interrupt_routing[PIRQ_COUNT])
 
void itss_clock_gate_8254 (void)
 
void itss_set_irq_polarity (int irq, int active_low)
 
void itss_snapshot_irq_polarities (int start, int end)
 
static void show_irq_polarities (const char *msg)
 
void itss_restore_irq_polarities (int start, int end)
 

Variables

static uint32_t irq_snapshot [NUM_IPC_REGS]
 

Function Documentation

◆ itss_clock_gate_8254()

void itss_clock_gate_8254 ( void  )

Definition at line 38 of file itss.c.

References PCR_ITSS_ITSSPRC, pcr_rmw32(), and PID_ITSS.

Here is the call graph for this function:

◆ itss_irq_init()

void itss_irq_init ( const uint8_t  pch_interrupt_routing[PIRQ_COUNT])

Definition at line 12 of file itss.c.

References ARRAY_SIZE, pch_interrupt_routing, PCR_ITSS_PIRQA_ROUT, pcr_write32(), PID_ITSS, PIRQ_COUNT, and val.

Referenced by pch_pirq_init().

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

◆ itss_restore_irq_polarities()

void itss_restore_irq_polarities ( int  start,
int  end 
)

Definition at line 94 of file itss.c.

References irq_snapshot, IRQS_PER_IPC, ITSS_MAX_IRQ, mask, MAX, MIN, PCR_ITSS_IPC0_CONF, pcr_rmw32(), PID_ITSS, and show_irq_polarities().

Referenced by soc_init().

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

◆ itss_set_irq_polarity()

void itss_set_irq_polarity ( int  irq,
int  active_low 
)

Definition at line 45 of file itss.c.

References IRQS_PER_IPC, ITSS_MAX_IRQ, mask, PCR_ITSS_IPC0_CONF, pcr_rmw32(), and PID_ITSS.

Referenced by gpio_configure_itss().

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

◆ itss_snapshot_irq_polarities()

void itss_snapshot_irq_polarities ( int  start,
int  end 
)

Definition at line 62 of file itss.c.

References irq_snapshot, IRQS_PER_IPC, ITSS_MAX_IRQ, PCR_ITSS_IPC0_CONF, pcr_read32(), and PID_ITSS.

Referenced by soc_init().

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

◆ show_irq_polarities()

static void show_irq_polarities ( const char *  msg)
static

Definition at line 82 of file itss.c.

References BIOS_INFO, NUM_IPC_REGS, PCR_ITSS_IPC0_CONF, pcr_read32(), PID_ITSS, and printk.

Referenced by itss_restore_irq_polarities().

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

Variable Documentation

◆ irq_snapshot

uint32_t irq_snapshot[NUM_IPC_REGS]
static

Definition at line 60 of file itss.c.

Referenced by itss_restore_irq_polarities(), and itss_snapshot_irq_polarities().