![]() |
|
|||
0001 #ifndef _UAPI_LINUX_VIRTIO_TYPES_H 0002 #define _UAPI_LINUX_VIRTIO_TYPES_H 0003 /* Type definitions for virtio implementations. 0004 * 0005 * This header is BSD licensed so anyone can use the definitions to implement 0006 * compatible drivers/servers. 0007 * 0008 * Redistribution and use in source and binary forms, with or without 0009 * modification, are permitted provided that the following conditions 0010 * are met: 0011 * 1. Redistributions of source code must retain the above copyright 0012 * notice, this list of conditions and the following disclaimer. 0013 * 2. Redistributions in binary form must reproduce the above copyright 0014 * notice, this list of conditions and the following disclaimer in the 0015 * documentation and/or other materials provided with the distribution. 0016 * 3. Neither the name of IBM nor the names of its contributors 0017 * may be used to endorse or promote products derived from this software 0018 * without specific prior written permission. 0019 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' AND 0020 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 0021 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 0022 * ARE DISCLAIMED. IN NO EVENT SHALL IBM OR CONTRIBUTORS BE LIABLE 0023 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 0024 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 0025 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 0026 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 0027 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 0028 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 0029 * SUCH DAMAGE. 0030 * 0031 * Copyright (C) 2014 Red Hat, Inc. 0032 * Author: Michael S. Tsirkin <mst@redhat.com> 0033 */ 0034 #include <linux/types.h> 0035 0036 /* 0037 * __virtio{16,32,64} have the following meaning: 0038 * - __u{16,32,64} for virtio devices in legacy mode, accessed in native endian 0039 * - __le{16,32,64} for standard-compliant virtio devices 0040 */ 0041 0042 typedef __u16 __bitwise __virtio16; 0043 typedef __u32 __bitwise __virtio32; 0044 typedef __u64 __bitwise __virtio64; 0045 0046 #endif /* _UAPI_LINUX_VIRTIO_TYPES_H */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |