/*1* Permission is hereby granted, free of charge, to any person obtaining a copy2* of this software and associated documentation files (the "Software"), to3* deal in the Software without restriction, including without limitation the4* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or5* sell copies of the Software, and to permit persons to whom the Software is6* furnished to do so, subject to the following conditions:7*8* The above copyright notice and this permission notice shall be included in9* all copies or substantial portions of the Software.10*11* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR12* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,13* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE14* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER15* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING16* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER17* DEALINGS IN THE SOFTWARE.18*19* Copyright (C) IBM Corp. 200620*/2122#ifndef _XEN_XENCOMM_H_23#define _XEN_XENCOMM_H_2425/* A xencomm descriptor is a scatter/gather list containing physical26* addresses corresponding to a virtually contiguous memory area. The27* hypervisor translates these physical addresses to machine addresses to copy28* to and from the virtually contiguous area.29*/3031#define XENCOMM_MAGIC 0x58434F4D /* 'XCOM' */32#define XENCOMM_INVALID (~0UL)3334struct xencomm_desc {35uint32_t magic;36uint32_t nr_addrs; /* the number of entries in address[] */37uint64_t address[0];38};3940#endif /* _XEN_XENCOMM_H_ */414243