summaryrefslogtreecommitdiff
path: root/include/linux/switchtec.h
diff options
context:
space:
mode:
authorLogan Gunthorpe <logang@deltatee.com>2017-11-29 20:28:43 +0300
committerBjorn Helgaas <bhelgaas@google.com>2017-12-19 08:08:11 +0300
commitf0edce7a7f4c236f2d05040746b388cfac8796a1 (patch)
tree2f3307725b8660e602be3afcdfe34e351a2a6d1f /include/linux/switchtec.h
parent1291a0d5049dbc06baaaf66a9ff3f53db493b19b (diff)
downloadlinux-f0edce7a7f4c236f2d05040746b388cfac8796a1.tar.xz
switchtec: Add Global Fabric Manager Server (GFMS) event
Add a new event type that is newly exposed by recent firmware. The event will never occur if the firmware is too old. If user space tries to use this event in an older kernel, it will just get an EINVAL which is perfectly acceptable in the existing user space code. Signed-off-by: Logan Gunthorpe <logang@deltatee.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'include/linux/switchtec.h')
-rw-r--r--include/linux/switchtec.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/switchtec.h b/include/linux/switchtec.h
index 09d73d0d1aa8..42d121174fe2 100644
--- a/include/linux/switchtec.h
+++ b/include/linux/switchtec.h
@@ -100,6 +100,9 @@ struct sw_event_regs {
u32 gpio_interrupt_hdr;
u32 gpio_interrupt_data;
u32 reserved16[4];
+ u32 gfms_event_hdr;
+ u32 gfms_event_data;
+ u32 reserved17[4];
} __packed;
enum {