soc: Remove copyright notices
[coreboot.git] / src / soc / intel / common / block / include / intelblocks / itss.h
blob4d1f05dfe8d314c5049044f3eed3af797971eff9
1 /*
2 * This file is part of the coreboot project.
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; version 2 of the License.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
12 * GNU General Public License for more details.
15 #ifndef SOC_INTEL_COMMON_BLOCK_ITSS_H
16 #define SOC_INTEL_COMMON_BLOCK_ITSS_H
18 /* Max PXRC registers in ITSS*/
19 #define MAX_PXRC_CONFIG (PCR_ITSS_PIRQH_ROUT - PCR_ITSS_PIRQA_ROUT + 1)
21 /* PIRQA Routing Control Register*/
22 #define PCR_ITSS_PIRQA_ROUT 0x3100
23 /* PIRQB Routing Control Register*/
24 #define PCR_ITSS_PIRQB_ROUT 0x3101
25 /* PIRQC Routing Control Register*/
26 #define PCR_ITSS_PIRQC_ROUT 0x3102
27 /* PIRQD Routing Control Register*/
28 #define PCR_ITSS_PIRQD_ROUT 0x3103
29 /* PIRQE Routing Control Register*/
30 #define PCR_ITSS_PIRQE_ROUT 0x3104
31 /* PIRQF Routing Control Register*/
32 #define PCR_ITSS_PIRQF_ROUT 0x3105
33 /* PIRQG Routing Control Register*/
34 #define PCR_ITSS_PIRQG_ROUT 0x3106
35 /* PIRQH Routing Control Register*/
36 #define PCR_ITSS_PIRQH_ROUT 0x3107
37 /* ITSS Interrupt polarity control*/
38 #define PCR_ITSS_IPC0_CONF 0x3200
39 /* ITSS Power reduction control */
40 #define PCR_ITSS_ITSSPRC 0x3300
42 #if !defined(__ACPI__)
44 #include <stdint.h>
46 /* Set the interrupt polarity for provided IRQ to the APIC. */
47 void itss_set_irq_polarity(int irq, int active_low);
49 /* Snapshot and restore IRQ polarity settings for the inclusive range. */
50 void itss_snapshot_irq_polarities(int start, int end);
51 void itss_restore_irq_polarities(int start, int end);
53 void itss_irq_init(uint8_t pch_interrupt_routing[MAX_PXRC_CONFIG]);
54 void itss_clock_gate_8254(void);
56 #endif /* !defined(__ACPI__) */
58 #endif /* SOC_INTEL_COMMON_BLOCK_ITSS_H */