1 /******************************************************************************
4 * Copyright (c) 2008 Tristan Gingold <tgingold@free.fr>
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to
8 * deal in the Software without restriction, including without limitation the
9 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
10 * sell copies of the Software, and to permit persons to whom the Software is
11 * furnished to do so, subject to the following conditions:
13 * The above copyright notice and this permission notice shall be included in
14 * all copies or substantial portions of the Software.
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22 * DEALINGS IN THE SOFTWARE.
25 #ifndef __XEN_PUBLIC_IA64_SIOEMU_H__
26 #define __XEN_PUBLIC_IA64_SIOEMU_H__
28 /* SIOEMU specific hypercalls.
29 The numbers are the minor part of FW_HYPERCALL_SIOEMU. */
31 /* Defines the callback entry point. r8=ip, r9=data.
32 Must be called per-vcpu. */
33 #define SIOEMU_HYPERCALL_SET_CALLBACK 0x01
35 /* Finish sioemu fw initialization and start firmware. r8=ip. */
36 #define SIOEMU_HYPERCALL_START_FW 0x02
38 /* Add IO pages in physmap. */
39 #define SIOEMU_HYPERCALL_ADD_IO_PHYSMAP 0x03
41 /* Get wallclock time. */
42 #define SIOEMU_HYPERCALL_GET_TIME 0x04
45 #define SIOEMU_HYPERCALL_FLUSH_CACHE 0x07
48 #define SIOEMU_HYPERCALL_FREQ_BASE 0x08
50 /* Return from callback. */
51 #define SIOEMU_HYPERCALL_CALLBACK_RETURN 0x09
53 /* Deliver an interrupt. */
54 #define SIOEMU_HYPERCALL_DELIVER_INT 0x0a
56 /* SIOEMU callback reason. */
58 /* An event (from event channel) has to be delivered. */
59 #define SIOEMU_CB_EVENT 0x00
61 /* Emulate an IO access. */
62 #define SIOEMU_CB_IO_EMULATE 0x01
64 /* An IPI is sent to a dead vcpu. */
65 #define SIOEMU_CB_WAKEUP_VCPU 0x02
67 /* A SAL hypercall is executed. */
68 #define SIOEMU_CB_SAL_ASSIST 0x03
71 struct sioemu_callback_info {
72 /* Saved registers. */
82 /* Callback parameters. */
88 unsigned long _pad2[2];
91 #endif /* __ASSEMBLY__ */
92 #endif /* __XEN_PUBLIC_IA64_SIOEMU_H__ */