1181624Skmacy/*
2181624Skmacy * Permission is hereby granted, free of charge, to any person obtaining a copy
3181624Skmacy * of this software and associated documentation files (the "Software"), to
4181624Skmacy * deal in the Software without restriction, including without limitation the
5181624Skmacy * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
6181624Skmacy * sell copies of the Software, and to permit persons to whom the Software is
7181624Skmacy * furnished to do so, subject to the following conditions:
8181624Skmacy *
9181624Skmacy * The above copyright notice and this permission notice shall be included in
10181624Skmacy * all copies or substantial portions of the Software.
11181624Skmacy *
12181624Skmacy * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13181624Skmacy * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14181624Skmacy * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15181624Skmacy * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16181624Skmacy * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
17181624Skmacy * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
18181624Skmacy * DEALINGS IN THE SOFTWARE.
19181624Skmacy *
20181624Skmacy * Copyright (C) IBM Corp. 2006
21181624Skmacy */
22181624Skmacy
23181624Skmacy#ifndef _XEN_XENCOMM_H_
24181624Skmacy#define _XEN_XENCOMM_H_
25181624Skmacy
26181624Skmacy/* A xencomm descriptor is a scatter/gather list containing physical
27181624Skmacy * addresses corresponding to a virtually contiguous memory area. The
28181624Skmacy * hypervisor translates these physical addresses to machine addresses to copy
29181624Skmacy * to and from the virtually contiguous area.
30181624Skmacy */
31181624Skmacy
32181624Skmacy#define XENCOMM_MAGIC 0x58434F4D /* 'XCOM' */
33181624Skmacy#define XENCOMM_INVALID (~0UL)
34181624Skmacy
35181624Skmacystruct xencomm_desc {
36181624Skmacy    uint32_t magic;
37181624Skmacy    uint32_t nr_addrs; /* the number of entries in address[] */
38181624Skmacy    uint64_t address[0];
39181624Skmacy};
40181624Skmacy
41181624Skmacy#endif /* _XEN_XENCOMM_H_ */
42