win-pvdrivers

changeset 589:e99c24e36f2f

Fixed newlines
author James Harper <james.harper@bendigoit.com.au>
date Tue Jun 09 12:31:57 2009 +1000 (2009-06-09)
parents 1d2e51af8e46
children d40c760a4f6b
files common/include/public/hvm/hvm_op.h
line diff
     1.1 --- a/common/include/public/hvm/hvm_op.h	Tue Jun 09 12:31:38 2009 +1000
     1.2 +++ b/common/include/public/hvm/hvm_op.h	Tue Jun 09 12:31:57 2009 +1000
     1.3 @@ -1,76 +1,76 @@
     1.4 -/*
     1.5 - * Permission is hereby granted, free of charge, to any person obtaining a copy
     1.6 - * of this software and associated documentation files (the "Software"), to
     1.7 - * deal in the Software without restriction, including without limitation the
     1.8 - * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
     1.9 - * sell copies of the Software, and to permit persons to whom the Software is
    1.10 - * furnished to do so, subject to the following conditions:
    1.11 - *
    1.12 - * The above copyright notice and this permission notice shall be included in
    1.13 - * all copies or substantial portions of the Software.
    1.14 - *
    1.15 - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    1.16 - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    1.17 - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    1.18 - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    1.19 - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
    1.20 - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
    1.21 - * DEALINGS IN THE SOFTWARE.
    1.22 - */
    1.23 -
    1.24 -#ifndef __XEN_PUBLIC_HVM_HVM_OP_H__
    1.25 -#define __XEN_PUBLIC_HVM_HVM_OP_H__
    1.26 -
    1.27 -/* Get/set subcommands: extra argument == pointer to xen_hvm_param struct. */
    1.28 -#define HVMOP_set_param           0
    1.29 -#define HVMOP_get_param           1
    1.30 -struct xen_hvm_param {
    1.31 -    domid_t  domid;    /* IN */
    1.32 -    uint32_t index;    /* IN */
    1.33 -    uint64_t value;    /* IN/OUT */
    1.34 -};
    1.35 -typedef struct xen_hvm_param xen_hvm_param_t;
    1.36 -DEFINE_XEN_GUEST_HANDLE(xen_hvm_param_t);
    1.37 -
    1.38 -/* Set the logical level of one of a domain's PCI INTx wires. */
    1.39 -#define HVMOP_set_pci_intx_level  2
    1.40 -struct xen_hvm_set_pci_intx_level {
    1.41 -    /* Domain to be updated. */
    1.42 -    domid_t  domid;
    1.43 -    /* PCI INTx identification in PCI topology (domain:bus:device:intx). */
    1.44 -    uint8_t  domain, bus, device, intx;
    1.45 -    /* Assertion level (0 = unasserted, 1 = asserted). */
    1.46 -    uint8_t  level;
    1.47 -};
    1.48 -typedef struct xen_hvm_set_pci_intx_level xen_hvm_set_pci_intx_level_t;
    1.49 -DEFINE_XEN_GUEST_HANDLE(xen_hvm_set_pci_intx_level_t);
    1.50 -
    1.51 -/* Set the logical level of one of a domain's ISA IRQ wires. */
    1.52 -#define HVMOP_set_isa_irq_level   3
    1.53 -struct xen_hvm_set_isa_irq_level {
    1.54 -    /* Domain to be updated. */
    1.55 -    domid_t  domid;
    1.56 -    /* ISA device identification, by ISA IRQ (0-15). */
    1.57 -    uint8_t  isa_irq;
    1.58 -    /* Assertion level (0 = unasserted, 1 = asserted). */
    1.59 -    uint8_t  level;
    1.60 -};
    1.61 -typedef struct xen_hvm_set_isa_irq_level xen_hvm_set_isa_irq_level_t;
    1.62 -DEFINE_XEN_GUEST_HANDLE(xen_hvm_set_isa_irq_level_t);
    1.63 -
    1.64 -#define HVMOP_set_pci_link_route  4
    1.65 -struct xen_hvm_set_pci_link_route {
    1.66 -    /* Domain to be updated. */
    1.67 -    domid_t  domid;
    1.68 -    /* PCI link identifier (0-3). */
    1.69 -    uint8_t  link;
    1.70 -    /* ISA IRQ (1-15), or 0 (disable link). */
    1.71 -    uint8_t  isa_irq;
    1.72 -};
    1.73 -typedef struct xen_hvm_set_pci_link_route xen_hvm_set_pci_link_route_t;
    1.74 -DEFINE_XEN_GUEST_HANDLE(xen_hvm_set_pci_link_route_t);
    1.75 -
    1.76 -/* Flushes all VCPU TLBs: @arg must be NULL. */
    1.77 -#define HVMOP_flush_tlbs          5
    1.78 -
    1.79 -#endif /* __XEN_PUBLIC_HVM_HVM_OP_H__ */
    1.80 +/*
    1.81 + * Permission is hereby granted, free of charge, to any person obtaining a copy
    1.82 + * of this software and associated documentation files (the "Software"), to
    1.83 + * deal in the Software without restriction, including without limitation the
    1.84 + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
    1.85 + * sell copies of the Software, and to permit persons to whom the Software is
    1.86 + * furnished to do so, subject to the following conditions:
    1.87 + *
    1.88 + * The above copyright notice and this permission notice shall be included in
    1.89 + * all copies or substantial portions of the Software.
    1.90 + *
    1.91 + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    1.92 + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    1.93 + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    1.94 + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    1.95 + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
    1.96 + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
    1.97 + * DEALINGS IN THE SOFTWARE.
    1.98 + */
    1.99 +
   1.100 +#ifndef __XEN_PUBLIC_HVM_HVM_OP_H__
   1.101 +#define __XEN_PUBLIC_HVM_HVM_OP_H__
   1.102 +
   1.103 +/* Get/set subcommands: extra argument == pointer to xen_hvm_param struct. */
   1.104 +#define HVMOP_set_param           0
   1.105 +#define HVMOP_get_param           1
   1.106 +struct xen_hvm_param {
   1.107 +    domid_t  domid;    /* IN */
   1.108 +    uint32_t index;    /* IN */
   1.109 +    uint64_t value;    /* IN/OUT */
   1.110 +};
   1.111 +typedef struct xen_hvm_param xen_hvm_param_t;
   1.112 +DEFINE_XEN_GUEST_HANDLE(xen_hvm_param_t);
   1.113 +
   1.114 +/* Set the logical level of one of a domain's PCI INTx wires. */
   1.115 +#define HVMOP_set_pci_intx_level  2
   1.116 +struct xen_hvm_set_pci_intx_level {
   1.117 +    /* Domain to be updated. */
   1.118 +    domid_t  domid;
   1.119 +    /* PCI INTx identification in PCI topology (domain:bus:device:intx). */
   1.120 +    uint8_t  domain, bus, device, intx;
   1.121 +    /* Assertion level (0 = unasserted, 1 = asserted). */
   1.122 +    uint8_t  level;
   1.123 +};
   1.124 +typedef struct xen_hvm_set_pci_intx_level xen_hvm_set_pci_intx_level_t;
   1.125 +DEFINE_XEN_GUEST_HANDLE(xen_hvm_set_pci_intx_level_t);
   1.126 +
   1.127 +/* Set the logical level of one of a domain's ISA IRQ wires. */
   1.128 +#define HVMOP_set_isa_irq_level   3
   1.129 +struct xen_hvm_set_isa_irq_level {
   1.130 +    /* Domain to be updated. */
   1.131 +    domid_t  domid;
   1.132 +    /* ISA device identification, by ISA IRQ (0-15). */
   1.133 +    uint8_t  isa_irq;
   1.134 +    /* Assertion level (0 = unasserted, 1 = asserted). */
   1.135 +    uint8_t  level;
   1.136 +};
   1.137 +typedef struct xen_hvm_set_isa_irq_level xen_hvm_set_isa_irq_level_t;
   1.138 +DEFINE_XEN_GUEST_HANDLE(xen_hvm_set_isa_irq_level_t);
   1.139 +
   1.140 +#define HVMOP_set_pci_link_route  4
   1.141 +struct xen_hvm_set_pci_link_route {
   1.142 +    /* Domain to be updated. */
   1.143 +    domid_t  domid;
   1.144 +    /* PCI link identifier (0-3). */
   1.145 +    uint8_t  link;
   1.146 +    /* ISA IRQ (1-15), or 0 (disable link). */
   1.147 +    uint8_t  isa_irq;
   1.148 +};
   1.149 +typedef struct xen_hvm_set_pci_link_route xen_hvm_set_pci_link_route_t;
   1.150 +DEFINE_XEN_GUEST_HANDLE(xen_hvm_set_pci_link_route_t);
   1.151 +
   1.152 +/* Flushes all VCPU TLBs: @arg must be NULL. */
   1.153 +#define HVMOP_flush_tlbs          5
   1.154 +
   1.155 +#endif /* __XEN_PUBLIC_HVM_HVM_OP_H__ */