1 /*
2  * Copyright (c) 2007, 2008 Advanced Micro Devices, Inc.
3  * Author: Christoph Egger <Christoph.Egger@amd.com>
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 #ifndef ASM_TRAP_H
20 #define ASM_TRAP_H
21 
22 void async_exception_cleanup(struct vcpu *);
23 
24 uint32_t guest_io_read(unsigned int port, unsigned int bytes,
25                        struct domain *);
26 void guest_io_write(unsigned int port, unsigned int bytes, uint32_t data,
27                     struct domain *);
28 
29 const char *trapstr(unsigned int trapnr);
30 
31 #endif /* ASM_TRAP_H */
32 
33 /*
34  * Local variables:
35  * mode: C
36  * c-file-style: "BSD"
37  * c-basic-offset: 4
38  * tab-width: 4
39  * indent-tabs-mode: nil
40  * End:
41  */
42