| 1 |
|
| 2 |
|
| 3 |
#ifndef SOC_INTEL_COMMON_BLOCK_ITSS_H |
| 4 |
#define SOC_INTEL_COMMON_BLOCK_ITSS_H |
| 5 |
|
| 6 |
#define ITSS_MAX_IRQ 119 |
| 7 |
#define IRQS_PER_IPC 32 |
| 8 |
#define NUM_IPC_REGS ((ITSS_MAX_IRQ + IRQS_PER_IPC - 1)/IRQS_PER_IPC) |
| 9 |
|
| 10 |
|
| 11 |
#define PCR_ITSS_PIRQA_ROUT 0x3100 |
| 12 |
|
| 13 |
#define PCR_ITSS_PIRQB_ROUT 0x3101 |
| 14 |
|
| 15 |
#define PCR_ITSS_PIRQC_ROUT 0x3102 |
| 16 |
|
| 17 |
#define PCR_ITSS_PIRQD_ROUT 0x3103 |
| 18 |
|
| 19 |
#define PCR_ITSS_PIRQE_ROUT 0x3104 |
| 20 |
|
| 21 |
#define PCR_ITSS_PIRQF_ROUT 0x3105 |
| 22 |
|
| 23 |
#define PCR_ITSS_PIRQG_ROUT 0x3106 |
| 24 |
|
| 25 |
#define PCR_ITSS_PIRQH_ROUT 0x3107 |
| 26 |
|
| 27 |
#define PCR_ITSS_PIR 0x3140 |
| 28 |
#define PCI_ITSS_PIR(i) (PCR_ITSS_PIR + (i) * 2) |
| 29 |
|
| 30 |
#define PCR_ITSS_IPC0_CONF 0x3200 |
| 31 |
|
| 32 |
#define PCR_ITSS_ITSSPRC 0x3300 |
| 33 |
|
| 34 |
#if !defined(__ACPI__) |
| 35 |
|
| 36 |
#include <device/device.h> |
| 37 |
#include <southbridge/intel/common/acpi_pirq_gen.h> |
| 38 |
#include <stdint.h> |
| 39 |
|
| 40 |
|
| 41 |
void itss_set_irq_polarity(int irq, int active_low); |
| 42 |
|
| 43 |
|
| 44 |
void itss_snapshot_irq_polarities(int start, int end); |
| 45 |
void itss_restore_irq_polarities(int start, int end); |
| 46 |
|
| 47 |
void itss_irq_init(const uint8_t pch_interrupt_routing[PIRQ_COUNT]); |
| 48 |
void itss_clock_gate_8254(void); |
| 49 |
|
| 50 |
|
| 51 |
uint32_t itss_soc_get_on_chip_dev_pir(const struct device *dev); |
| 52 |
|
| 53 |
|
| 54 |
enum pirq itss_get_on_chip_dev_pirq(const struct device *dev, enum pci_pin pin); |
| 55 |
|
| 56 |
#endif |
| 57 |
|
| 58 |
#endif |