File tree Expand file tree Collapse file tree 5 files changed +11
-10
lines changed Expand file tree Collapse file tree 5 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -42,11 +42,6 @@ config MAX_VCPUS_PER_VM
42
42
range 1 8
43
43
default 4
44
44
45
- config NR_IOAPICS
46
- int "Maximum number of IOAPICs supported"
47
- range 1 2
48
- default 1
49
-
50
45
config MAX_IOMMU_NUM
51
46
int "Maximum number of iommu dev"
52
47
range 1 2
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ static struct gsi_table gsi_table[NR_MAX_GSI];
18
18
static uint32_t nr_gsi ;
19
19
static spinlock_t ioapic_lock ;
20
20
21
- static union ioapic_rte saved_rte [CONFIG_NR_IOAPICS ][IOAPIC_MAX_PIN ];
21
+ static union ioapic_rte saved_rte [NR_IOAPICS ][IOAPIC_MAX_PIN ];
22
22
23
23
/*
24
24
* the irq to ioapic pin mapping should extract from ACPI MADT table
@@ -351,7 +351,7 @@ void setup_ioapic_irqs(void)
351
351
spinlock_init (& ioapic_lock );
352
352
353
353
for (ioapic_id = 0U ;
354
- ioapic_id < CONFIG_NR_IOAPICS ; ioapic_id ++ ) {
354
+ ioapic_id < NR_IOAPICS ; ioapic_id ++ ) {
355
355
void * addr ;
356
356
uint8_t pin , nr_pins ;
357
357
@@ -403,7 +403,7 @@ void suspend_ioapic(void)
403
403
{
404
404
uint8_t ioapic_id , ioapic_pin ;
405
405
406
- for (ioapic_id = 0U ; ioapic_id < CONFIG_NR_IOAPICS ; ioapic_id ++ ) {
406
+ for (ioapic_id = 0U ; ioapic_id < NR_IOAPICS ; ioapic_id ++ ) {
407
407
void * addr ;
408
408
uint8_t nr_pins ;
409
409
@@ -420,7 +420,7 @@ void resume_ioapic(void)
420
420
{
421
421
uint8_t ioapic_id , ioapic_pin ;
422
422
423
- for (ioapic_id = 0U ; ioapic_id < CONFIG_NR_IOAPICS ; ioapic_id ++ ) {
423
+ for (ioapic_id = 0U ; ioapic_id < NR_IOAPICS ; ioapic_id ++ ) {
424
424
void * addr ;
425
425
uint8_t nr_pins ;
426
426
Original file line number Diff line number Diff line change 12
12
13
13
#define ACPI_INFO_VALIDATED
14
14
15
+ /* APIC */
16
+ #define NR_IOAPICS 1U
17
+
15
18
/* pm sstate data */
16
19
#define PM1A_EVT_SPACE_ID SPACE_SYSTEM_IO
17
20
#define PM1A_EVT_BIT_WIDTH 0x20U
Original file line number Diff line number Diff line change 10
10
#ifndef PLATFORM_ACPI_INFO_H
11
11
#define PLATFORM_ACPI_INFO_H
12
12
13
+ /* APIC */
14
+ #define NR_IOAPICS 1U
15
+
13
16
/* pm sstate data */
14
17
#define PM1A_EVT_SPACE_ID SPACE_SYSTEM_IO
15
18
#define PM1A_EVT_BIT_WIDTH 0U
Original file line number Diff line number Diff line change 14
14
#define IOAPIC_MAX_LINES 120U
15
15
#define NR_LEGACY_IRQ 16U
16
16
#define NR_LEGACY_PIN NR_LEGACY_IRQ
17
- #define NR_MAX_GSI (CONFIG_NR_IOAPICS * IOAPIC_MAX_LINES)
17
+ #define NR_MAX_GSI (NR_IOAPICS * IOAPIC_MAX_LINES)
18
18
19
19
void setup_ioapic_irqs (void );
20
20
You can’t perform that action at this time.
0 commit comments