ia64/xen-unstable

diff xen/arch/x86/hvm/vmx/vtd/vtd.h @ 16830:cc5bb500df5f

vtd: Enable queued invalidation method if such HW support is
detected. Otherwise, register invalidation method is used.

Signed-off-by: Allen Kay <allen.m.kay@intel.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Jan 22 09:48:51 2008 +0000 (2008-01-22)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/xen/arch/x86/hvm/vmx/vtd/vtd.h	Tue Jan 22 09:48:51 2008 +0000
     1.3 @@ -0,0 +1,54 @@
     1.4 +/*
     1.5 + * Copyright (c) 2006, Intel Corporation.
     1.6 + *
     1.7 + * This program is free software; you can redistribute it and/or modify it
     1.8 + * under the terms and conditions of the GNU General Public License,
     1.9 + * version 2, as published by the Free Software Foundation.
    1.10 + *
    1.11 + * This program is distributed in the hope it will be useful, but WITHOUT
    1.12 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    1.13 + * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
    1.14 + * more details.
    1.15 + *
    1.16 + * You should have received a copy of the GNU General Public License along with
    1.17 + * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
    1.18 + * Place - Suite 330, Boston, MA 02111-1307 USA.
    1.19 + *
    1.20 + * Copyright (C) Allen Kay <allen.m.kay@intel.com>
    1.21 + * Copyright (C) Weidong Han <weidong.han@intel.com>
    1.22 + */
    1.23 +
    1.24 +#ifndef _VTD_H_
    1.25 +#define _VTD_H_
    1.26 +
    1.27 +#include <xen/list.h>
    1.28 +#include <asm/iommu.h>
    1.29 +
    1.30 +#define VTDPREFIX "[VT-D]" 
    1.31 +
    1.32 +#define DMAR_OPERATION_TIMEOUT (HZ*60) /* 1m */
    1.33 +#define time_after(a,b)         \
    1.34 +        (typecheck(unsigned long, a) && \
    1.35 +         typecheck(unsigned long, b) && \
    1.36 +         ((long)(b) - (long)(a) < 0))
    1.37 +
    1.38 +struct IO_APIC_route_remap_entry {
    1.39 +    union {
    1.40 +        u64 val;
    1.41 +        struct {
    1.42 +            u64 vector:8,
    1.43 +            delivery_mode:3,
    1.44 +            index_15:1,
    1.45 +            delivery_status:1,
    1.46 +            polarity:1,
    1.47 +            irr:1,
    1.48 +            trigger:1,
    1.49 +            mask:1,
    1.50 +            reserved:31,
    1.51 +            format:1,
    1.52 +            index_0_14:15;
    1.53 +        };
    1.54 +    };
    1.55 +};
    1.56 +
    1.57 +#endif // _VTD_H_