]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/io/server/src/hw_msi.h
update
[l4.git] / l4 / pkg / io / server / src / hw_msi.h
1 /*
2  * (c) 2011 Alexander Warg <warg@os.inf.tu-dresden.de>
3  *     economic rights: Technische Universität Dresden (Germany)
4  *
5  * This file is part of TUD:OS and distributed under the terms of the
6  * GNU General Public License 2.
7  * Please see the COPYING-GPL-2 file for details.
8  */
9
10 #pragma once
11
12 #include "resource.h"
13 #include "irqs.h"
14
15 namespace Hw {
16   class Msi_resource : public Adr_resource, public Kernel_irq_pin
17   {
18   public:
19     Msi_resource(unsigned msi)
20     : Adr_resource(Resource::Irq_res | Resource::Irq_edge, msi, msi),
21       Kernel_irq_pin(msi |  L4::Icu::F_msi)
22     {}
23   };
24 }