summaryrefslogtreecommitdiff
path: root/src/mainboard/asus/p2b/variants
diff options
context:
space:
mode:
authorPatrick Georgi <pgeorgi@google.com>2021-02-11 14:40:01 +0100
committerPatrick Georgi <pgeorgi@google.com>2021-02-17 11:34:27 +0000
commit71555955e91e1aac6c4ef32ebb7ee817fc31e31f (patch)
tree82f13913e6ddddb39b79f25fa8d9ebd829cc9000 /src/mainboard/asus/p2b/variants
parent2cba9e44b622be58caa577049bd544ddf17a26e1 (diff)
mb: guard irq_tables for clang-format
Some (notably older Intel) boards use a tabular description of irq routing that we want to keep pristine no matter what clang-format considers correct (as that's ugly). Change-Id: I259255a9f60208c659b658ecb81535e84a2aaa8c Signed-off-by: Patrick Georgi <pgeorgi@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/50545 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
Diffstat (limited to 'src/mainboard/asus/p2b/variants')
-rw-r--r--src/mainboard/asus/p2b/variants/p2b-d/irq_tables.c2
-rw-r--r--src/mainboard/asus/p2b/variants/p2b-ds/irq_tables.c2
-rw-r--r--src/mainboard/asus/p2b/variants/p2b-f/irq_tables.c2
-rw-r--r--src/mainboard/asus/p2b/variants/p2b-ls/irq_tables.c2
-rw-r--r--src/mainboard/asus/p2b/variants/p2b/irq_tables.c2
-rw-r--r--src/mainboard/asus/p2b/variants/p3b-f/irq_tables.c2
6 files changed, 12 insertions, 0 deletions
diff --git a/src/mainboard/asus/p2b/variants/p2b-d/irq_tables.c b/src/mainboard/asus/p2b/variants/p2b-d/irq_tables.c
index 705e1f25d3..358260b67d 100644
--- a/src/mainboard/asus/p2b/variants/p2b-d/irq_tables.c
+++ b/src/mainboard/asus/p2b/variants/p2b-d/irq_tables.c
@@ -14,6 +14,7 @@ static const struct irq_routing_table intel_irq_routing_table = {
0, /* Miniport data */
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, /* u8 rfu[11] */
0x54, /* Checksum */
+ /* clang-format off */
{
/* bus, dev | fn, {link, bitmap}, {link, bitmap}, {link, bitmap}, {link, bitmap}, slot, rfu */
{0x00, (0x0c << 3) | 0x0, {{0x60, 0x1eb8}, {0x61, 0x1eb8}, {0x62, 0x1eb8}, {0x63, 0x1eb8}}, 0x1, 0x0},
@@ -23,6 +24,7 @@ static const struct irq_routing_table intel_irq_routing_table = {
{0x00, (0x04 << 3) | 0x0, {{0x60, 0x1eb8}, {0x61, 0x1eb8}, {0x62, 0x1eb8}, {0x63, 0x1eb8}}, 0x0, 0x0},
{0x00, (0x01 << 3) | 0x0, {{0x60, 0x1eb8}, {0x61, 0x1eb8}, {0x62, 0x1eb8}, {0x63, 0x1eb8}}, 0x0, 0x0},
}
+ /* clang-format on */
};
unsigned long write_pirq_routing_table(unsigned long addr)
diff --git a/src/mainboard/asus/p2b/variants/p2b-ds/irq_tables.c b/src/mainboard/asus/p2b/variants/p2b-ds/irq_tables.c
index 620815224e..0b78c0bd0e 100644
--- a/src/mainboard/asus/p2b/variants/p2b-ds/irq_tables.c
+++ b/src/mainboard/asus/p2b/variants/p2b-ds/irq_tables.c
@@ -14,6 +14,7 @@ static const struct irq_routing_table intel_irq_routing_table = {
0, /* Miniport data */
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, /* u8 rfu[11] */
0x36, /* Checksum */
+ /* clang-format off */
{
/* bus, dev | fn, {link, bitmap}, {link, bitmap}, {link, bitmap}, {link, bitmap}, slot, rfu */
{0x00, (0x0c << 3) | 0x0, {{0x60, 0x1eb8}, {0x61, 0x1eb8}, {0x62, 0x1eb8}, {0x63, 0x1eb8}}, 0x1, 0x0},
@@ -24,6 +25,7 @@ static const struct irq_routing_table intel_irq_routing_table = {
{0x00, (0x01 << 3) | 0x0, {{0x60, 0x1eb8}, {0x61, 0x1eb8}, {0x62, 0x1eb8}, {0x63, 0x1eb8}}, 0x0, 0x0},
{0x00, (0x06 << 3) | 0x0, {{0x63, 0x1eb8}, {0x60, 0x1eb8}, {0x61, 0x1eb8}, {0x62, 0x1eb8}}, 0x0, 0x0},
}
+ /* clang-format on */
};
unsigned long write_pirq_routing_table(unsigned long addr)
diff --git a/src/mainboard/asus/p2b/variants/p2b-f/irq_tables.c b/src/mainboard/asus/p2b/variants/p2b-f/irq_tables.c
index c3cdd0bb48..8c57ca6e40 100644
--- a/src/mainboard/asus/p2b/variants/p2b-f/irq_tables.c
+++ b/src/mainboard/asus/p2b/variants/p2b-f/irq_tables.c
@@ -14,6 +14,7 @@ static const struct irq_routing_table intel_irq_routing_table = {
0, /* Miniport data */
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, /* u8 rfu[11] */
0xf9, /* Checksum */
+ /* clang-format off */
{
/* bus, dev|fn, {link, bitmap}, {link, bitmap}, {link, bitmap}, {link, bitmap}, slot, rfu */
{0x00,(0x0c << 3)|0x0, {{0x60, 0x1eb8}, {0x61, 0x1eb8}, {0x62, 0x1eb8}, {0x63, 0x01eb8}}, 0x1, 0x0},
@@ -24,6 +25,7 @@ static const struct irq_routing_table intel_irq_routing_table = {
{0x00,(0x04 << 3)|0x0, {{0x60, 0x1eb8}, {0x61, 0x1eb8}, {0x62, 0x1eb8}, {0x63, 0x01eb8}}, 0x0, 0x0},
{0x00,(0x01 << 3)|0x0, {{0x60, 0x1eb8}, {0x61, 0x1eb8}, {0x62, 0x1eb8}, {0x63, 0x01eb8}}, 0x0, 0x0},
}
+ /* clang-format on */
};
unsigned long write_pirq_routing_table(unsigned long addr)
diff --git a/src/mainboard/asus/p2b/variants/p2b-ls/irq_tables.c b/src/mainboard/asus/p2b/variants/p2b-ls/irq_tables.c
index ac1040e7eb..1bad19bbfc 100644
--- a/src/mainboard/asus/p2b/variants/p2b-ls/irq_tables.c
+++ b/src/mainboard/asus/p2b/variants/p2b-ls/irq_tables.c
@@ -17,6 +17,7 @@ static const struct irq_routing_table intel_irq_routing_table = {
* would give 0 after the sum of all bytes
* for this structure (including checksum).
*/
+ /* clang-format off */
{
/* bus, dev | fn, {link, bitmap}, {link, bitmap}, {link, bitmap}, {link, bitmap}, slot, rfu */
{0x00, (0x0c << 3) | 0x0, {{0x60, 0x1eb8}, {0x61, 0x1eb8}, {0x62, 0x1eb8}, {0x63, 0x1eb8}}, 0x1, 0x0},
@@ -28,6 +29,7 @@ static const struct irq_routing_table intel_irq_routing_table = {
{0x00, (0x06 << 3) | 0x0, {{0x63, 0x1eb8}, {0x60, 0x1eb8}, {0x61, 0x1eb8}, {0x62, 0x1eb8}}, 0x0, 0x0},
{0x00, (0x07 << 3) | 0x0, {{0x62, 0x1eb8}, {0x63, 0x1eb8}, {0x60, 0x1eb8}, {0x61, 0x1eb8}}, 0x0, 0x0},
}
+ /* clang-format on */
};
unsigned long write_pirq_routing_table(unsigned long addr)
diff --git a/src/mainboard/asus/p2b/variants/p2b/irq_tables.c b/src/mainboard/asus/p2b/variants/p2b/irq_tables.c
index ced257e03a..8967f845cf 100644
--- a/src/mainboard/asus/p2b/variants/p2b/irq_tables.c
+++ b/src/mainboard/asus/p2b/variants/p2b/irq_tables.c
@@ -14,6 +14,7 @@ static const struct irq_routing_table intel_irq_routing_table = {
0, /* Miniport data */
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, /* u8 rfu[11] */
0x54, /* Checksum */
+ /* clang-format off */
{
/* bus, dev|fn, {link, bitmap}, {link, bitmap}, {link, bitmap}, {link, bitmap}, slot, rfu */
{0x00,(0x0c << 3)|0x0, {{0x60, 0x1eb8}, {0x61, 0x1eb8}, {0x62, 0x1eb8}, {0x63, 0x01eb8}}, 0x1, 0x0},
@@ -23,6 +24,7 @@ static const struct irq_routing_table intel_irq_routing_table = {
{0x00,(0x04 << 3)|0x0, {{0x60, 0x1eb8}, {0x61, 0x1eb8}, {0x62, 0x1eb8}, {0x63, 0x01eb8}}, 0x0, 0x0},
{0x00,(0x01 << 3)|0x0, {{0x60, 0x1eb8}, {0x61, 0x1eb8}, {0x62, 0x1eb8}, {0x63, 0x01eb8}}, 0x0, 0x0},
}
+ /* clang-format on */
};
unsigned long write_pirq_routing_table(unsigned long addr)
diff --git a/src/mainboard/asus/p2b/variants/p3b-f/irq_tables.c b/src/mainboard/asus/p2b/variants/p3b-f/irq_tables.c
index cd052a15eb..39c2058672 100644
--- a/src/mainboard/asus/p2b/variants/p3b-f/irq_tables.c
+++ b/src/mainboard/asus/p2b/variants/p3b-f/irq_tables.c
@@ -14,6 +14,7 @@ static const struct irq_routing_table intel_irq_routing_table = {
0, /* Miniport data */
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, /* u8 rfu[11] */
0x95, /* Checksum */
+ /* clang-format off */
{
/* bus, dev|fn, {link, bitmap}, {link, bitmap}, {link, bitmap}, {link, bitmap}, slot, rfu */
{0x00,(0x0c << 3)|0x0, {{0x60, 0x1eb8}, {0x61, 0x1eb8}, {0x62, 0x1eb8}, {0x63, 0x01eb8}}, 0x1, 0x0},
@@ -25,6 +26,7 @@ static const struct irq_routing_table intel_irq_routing_table = {
{0x00,(0x04 << 3)|0x0, {{0x60, 0x1eb8}, {0x61, 0x1eb8}, {0x62, 0x1eb8}, {0x63, 0x01eb8}}, 0x0, 0x0},
{0x00,(0x01 << 3)|0x0, {{0x60, 0x1eb8}, {0x61, 0x1eb8}, {0x62, 0x1eb8}, {0x63, 0x01eb8}}, 0x0, 0x0},
}
+ /* clang-format on */
};
unsigned long write_pirq_routing_table(unsigned long addr)