diff options
author | Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> | 2010-09-02 09:51:39 -0400 |
---|---|---|
committer | Stefano Stabellini <stefano.stabellini@eu.citrix.com> | 2010-10-22 16:25:43 -0400 |
commit | 38aa66fcb79e0a46c24bba96b6f2b851a6ec2037 (patch) | |
tree | ada0747fc6a242581dc8c612bae53161f97ab14a /include | |
parent | 6b0661a5e6fbfb159b78a39c0476905aa9b575fe (diff) |
xen: remap GSIs as pirqs when running as initial domain
Implement xen_register_gsi to setup the correct triggering and polarity
properties of a gsi.
Implement xen_register_pirq to register a particular gsi as pirq and
receive interrupts as events.
Call xen_setup_pirqs to register all the legacy ISA irqs as pirqs.
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/xen/interface/physdev.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/xen/interface/physdev.h b/include/xen/interface/physdev.h index 69a72b96a6cb..a85d76c2e360 100644 --- a/include/xen/interface/physdev.h +++ b/include/xen/interface/physdev.h | |||
@@ -151,6 +151,16 @@ struct physdev_op { | |||
151 | } u; | 151 | } u; |
152 | }; | 152 | }; |
153 | 153 | ||
154 | #define PHYSDEVOP_setup_gsi 21 | ||
155 | struct physdev_setup_gsi { | ||
156 | int gsi; | ||
157 | /* IN */ | ||
158 | uint8_t triggering; | ||
159 | /* IN */ | ||
160 | uint8_t polarity; | ||
161 | /* IN */ | ||
162 | }; | ||
163 | |||
154 | #define PHYSDEVOP_get_nr_pirqs 22 | 164 | #define PHYSDEVOP_get_nr_pirqs 22 |
155 | struct physdev_nr_pirqs { | 165 | struct physdev_nr_pirqs { |
156 | /* OUT */ | 166 | /* OUT */ |