ia64/xen-unstable

view tools/libxc/xc_physdev.c @ 1921:24ecc060e9d7

bitkeeper revision 1.1108.21.1 (41062740xHG36OEbpVAmVX5N9WCaNw)

make vmlinuz really stripped
author cl349@freefall.cl.cam.ac.uk
date Tue Jul 27 09:58:24 2004 +0000 (2004-07-27)
parents 236a9f2698a3
children 49599761f3ce 39bfbd5ae9b8
line source
1 /******************************************************************************
2 * xc_physdev.c
3 *
4 * API for manipulating physical-device access permissions.
5 *
6 * Copyright (c) 2004, Rolf Neugebauer (Intel Research Cambridge)
7 * Copyright (c) 2004, K A Fraser (University of Cambridge)
8 */
10 #include "xc_private.h"
12 int xc_physdev_pci_access_modify(int xc_handle,
13 u32 domid,
14 int bus,
15 int dev,
16 int func,
17 int enable)
18 {
19 dom0_op_t op;
21 op.cmd = DOM0_PCIDEV_ACCESS;
22 op.u.pcidev_access.domain = (domid_t)domid;
23 op.u.pcidev_access.bus = bus;
24 op.u.pcidev_access.dev = dev;
25 op.u.pcidev_access.func = func;
26 op.u.pcidev_access.enable = enable;
28 return do_dom0_op(xc_handle, &op);
29 }