win-pvdrivers

annotate common/include/public/xencomm.h @ 12:5712dede5a1b

add in xen public includes, so the extra step of copying them over is not needed
author Andy Grover <andy@groveronline.com>
date Wed Nov 28 14:44:10 2007 -0800 (2007-11-28)
parents
children
rev   line source
andy@12 1 /*
andy@12 2 * Permission is hereby granted, free of charge, to any person obtaining a copy
andy@12 3 * of this software and associated documentation files (the "Software"), to
andy@12 4 * deal in the Software without restriction, including without limitation the
andy@12 5 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
andy@12 6 * sell copies of the Software, and to permit persons to whom the Software is
andy@12 7 * furnished to do so, subject to the following conditions:
andy@12 8 *
andy@12 9 * The above copyright notice and this permission notice shall be included in
andy@12 10 * all copies or substantial portions of the Software.
andy@12 11 *
andy@12 12 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
andy@12 13 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
andy@12 14 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
andy@12 15 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
andy@12 16 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
andy@12 17 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
andy@12 18 * DEALINGS IN THE SOFTWARE.
andy@12 19 *
andy@12 20 * Copyright (C) IBM Corp. 2006
andy@12 21 */
andy@12 22
andy@12 23 #ifndef _XEN_XENCOMM_H_
andy@12 24 #define _XEN_XENCOMM_H_
andy@12 25
andy@12 26 /* A xencomm descriptor is a scatter/gather list containing physical
andy@12 27 * addresses corresponding to a virtually contiguous memory area. The
andy@12 28 * hypervisor translates these physical addresses to machine addresses to copy
andy@12 29 * to and from the virtually contiguous area.
andy@12 30 */
andy@12 31
andy@12 32 #define XENCOMM_MAGIC 0x58434F4D /* 'XCOM' */
andy@12 33 #define XENCOMM_INVALID (~0UL)
andy@12 34
andy@12 35 struct xencomm_desc {
andy@12 36 uint32_t magic;
andy@12 37 uint32_t nr_addrs; /* the number of entries in address[] */
andy@12 38 uint64_t address[0];
andy@12 39 };
andy@12 40
andy@12 41 #endif /* _XEN_XENCOMM_H_ */