view xen/include/xen/shutdown.h @ 19800:78962f85c562

IOMMU: Add two generic functions to vendor neutral interface

Add 2 generic functions into the vendor neutral iommu interface, The
reason is that from changeset 19732, there is only one global flag
"iommu_enabled" that controls iommu enablement for both vtd and amd
systems, so we need different code paths for vtd and amd iommu systems
if this flag has been turned on. Also, the early checking of
"iommu_enabled" in iommu_setup() is removed to prevent iommu
functionalities from been disabled on amd systems.

Signed-off-by: Wei Wang <wei.wang2@amd.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri Jun 19 08:41:50 2009 +0100 (2009-06-19)
parents 0c857419d354
line source
1 #ifndef __XEN_SHUTDOWN_H__
2 #define __XEN_SHUTDOWN_H__
4 /* opt_noreboot: If true, machine will need manual reset on error. */
5 extern int opt_noreboot;
7 void dom0_shutdown(u8 reason);
9 void machine_restart(unsigned int delay_millisecs);
10 void machine_halt(void);
11 void machine_power_off(void);
13 #endif /* __XEN_SHUTDOWN_H__ */