diff options
author | kaf24@freefall.cl.cam.ac.uk <kaf24@freefall.cl.cam.ac.uk> | 2004-11-02 09:08:37 +0000 |
---|---|---|
committer | kaf24@freefall.cl.cam.ac.uk <kaf24@freefall.cl.cam.ac.uk> | 2004-11-02 09:08:37 +0000 |
commit | 58f3afdd98a8c34b799f975fd5fc064d50c7a4eb (patch) | |
tree | dbcf4eff78d649761099a9c4e59358c7af4cfc58 /linux-2.6.9-xen-sparse | |
parent | 76c572186dd41afe5a1b512c8cbd7c671a8dcbb7 (diff) | |
download | xen-58f3afdd98a8c34b799f975fd5fc064d50c7a4eb.tar.gz xen-58f3afdd98a8c34b799f975fd5fc064d50c7a4eb.tar.bz2 xen-58f3afdd98a8c34b799f975fd5fc064d50c7a4eb.zip |
bitkeeper revision 1.1159.1.332 (41874e954CLIDA2J3phVFD2RnzVTpA)
Clean up public XenLinux header files. Now accessible from userspace as
#include <xen/linux...>
Got rid of the linux-xen-sparse symlink as it's no longer needed.
Diffstat (limited to 'linux-2.6.9-xen-sparse')
-rw-r--r-- | linux-2.6.9-xen-sparse/arch/xen/Makefile | 3 | ||||
-rw-r--r-- | linux-2.6.9-xen-sparse/arch/xen/kernel/reboot.c | 2 | ||||
-rw-r--r-- | linux-2.6.9-xen-sparse/drivers/xen/privcmd/privcmd.c | 4 | ||||
-rw-r--r-- | linux-2.6.9-xen-sparse/include/asm-xen/linux-public/privcmd.h | 88 | ||||
-rw-r--r-- | linux-2.6.9-xen-sparse/include/asm-xen/linux-public/suspend.h (renamed from linux-2.6.9-xen-sparse/include/asm-xen/suspend.h) | 0 | ||||
-rw-r--r-- | linux-2.6.9-xen-sparse/include/asm-xen/proc_cmd.h | 65 |
6 files changed, 93 insertions, 69 deletions
diff --git a/linux-2.6.9-xen-sparse/arch/xen/Makefile b/linux-2.6.9-xen-sparse/arch/xen/Makefile index a0d11b2e22..add0e416b9 100644 --- a/linux-2.6.9-xen-sparse/arch/xen/Makefile +++ b/linux-2.6.9-xen-sparse/arch/xen/Makefile @@ -52,7 +52,8 @@ install: vmlinuz install -m0644 vmlinux $(INSTALL_PATH)/boot/vmlinux-syms-$(XINSTALL_NAME)$(INSTALL_SUFFIX) install -m0664 .config $(INSTALL_PATH)/boot/config-$(XINSTALL_NAME)$(INSTALL_SUFFIX) install -m0664 System.map $(INSTALL_PATH)/boot/System.map-$(XINSTALL_NAME)$(INSTALL_SUFFIX) - + mkdir -p $(INSTALL_PATH)/usr/include/xen/linux + install -m0644 include/asm-xen/linux-public/*.h $(INSTALL_PATH)/usr/include/xen/linux dist: $(MAKE) INSTALL_PATH=../install install diff --git a/linux-2.6.9-xen-sparse/arch/xen/kernel/reboot.c b/linux-2.6.9-xen-sparse/arch/xen/kernel/reboot.c index 2e81929624..bf6e00bd31 100644 --- a/linux-2.6.9-xen-sparse/arch/xen/kernel/reboot.c +++ b/linux-2.6.9-xen-sparse/arch/xen/kernel/reboot.c @@ -13,7 +13,7 @@ static int errno; #include <asm-xen/ctrl_if.h> #include <asm-xen/hypervisor.h> #include <asm-xen/xen-public/dom0_ops.h> -#include <asm-xen/suspend.h> +#include <asm-xen/linux-public/suspend.h> #include <asm-xen/queues.h> void machine_restart(char * __unused) diff --git a/linux-2.6.9-xen-sparse/drivers/xen/privcmd/privcmd.c b/linux-2.6.9-xen-sparse/drivers/xen/privcmd/privcmd.c index 4a3d26d61b..4316d8e2f9 100644 --- a/linux-2.6.9-xen-sparse/drivers/xen/privcmd/privcmd.c +++ b/linux-2.6.9-xen-sparse/drivers/xen/privcmd/privcmd.c @@ -1,5 +1,5 @@ /****************************************************************************** - * core.c + * privcmd.c * * Interface to privileged domain-0 commands. * @@ -25,7 +25,7 @@ #include <asm/pgtable.h> #include <asm/uaccess.h> #include <asm/tlb.h> -#include <asm-xen/proc_cmd.h> +#include <asm-xen/linux-public/privcmd.h> #include <asm-xen/xen-public/dom0_ops.h> #include <asm-xen/xen_proc.h> diff --git a/linux-2.6.9-xen-sparse/include/asm-xen/linux-public/privcmd.h b/linux-2.6.9-xen-sparse/include/asm-xen/linux-public/privcmd.h new file mode 100644 index 0000000000..9142c6b35d --- /dev/null +++ b/linux-2.6.9-xen-sparse/include/asm-xen/linux-public/privcmd.h @@ -0,0 +1,88 @@ +/****************************************************************************** + * privcmd.h + * + * Interface to /proc/xen/privcmd. + * + * Copyright (c) 2003-2004, K A Fraser + * + * This file may be distributed separately from the Linux kernel, or + * incorporated into other software packages, subject to the following license: + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this source file (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, copy, modify, + * merge, publish, distribute, sublicense, and/or sell copies of the Software, + * and to permit persons to whom the Software is furnished to do so, subject to + * the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ + +#ifndef __PRIVCMD_H__ +#define __PRIVCMD_H__ + +typedef struct privcmd_hypercall +{ + unsigned long op; + unsigned long arg[5]; +} privcmd_hypercall_t; + +typedef struct privcmd_mmap_entry { + unsigned long va; + unsigned long mfn; + unsigned long npages; +} privcmd_mmap_entry_t; + +typedef struct privcmd_mmap { + int num; + domid_t dom; /* target domain */ + privcmd_mmap_entry_t *entry; +} privcmd_mmap_t; + +typedef struct privcmd_mmapbatch { + int num; /* number of pages to populate */ + domid_t dom; /* target domain */ + unsigned long addr; /* virtual address */ + unsigned long *arr; /* array of mfns - top nibble set on err */ +} privcmd_mmapbatch_t; + +typedef struct privcmd_blkmsg +{ + unsigned long op; + void *buf; + int buf_size; +} privcmd_blkmsg_t; + +/* + * @cmd: IOCTL_PRIVCMD_HYPERCALL + * @arg: &privcmd_hypercall_t + * Return: Value returned from execution of the specified hypercall. + */ +#define IOCTL_PRIVCMD_HYPERCALL \ + _IOC(_IOC_NONE, 'P', 0, sizeof(privcmd_hypercall_t)) + +/* + * @cmd: IOCTL_PRIVCMD_INITDOMAIN_EVTCHN + * @arg: n/a + * Return: Port associated with domain-controller end of control event channel + * for the initial domain. + */ +#define IOCTL_PRIVCMD_INITDOMAIN_EVTCHN \ + _IOC(_IOC_NONE, 'P', 1, 0) +#define IOCTL_PRIVCMD_MMAP \ + _IOC(_IOC_NONE, 'P', 2, sizeof(privcmd_mmap_t)) +#define IOCTL_PRIVCMD_MMAPBATCH \ + _IOC(_IOC_NONE, 'P', 3, sizeof(privcmd_mmapbatch_t)) +#define IOCTL_PRIVCMD_GET_MACH2PHYS_START_MFN \ + _IOC(_IOC_READ, 'P', 4, sizeof(unsigned long)) + +#endif /* __PRIVCMD_H__ */ diff --git a/linux-2.6.9-xen-sparse/include/asm-xen/suspend.h b/linux-2.6.9-xen-sparse/include/asm-xen/linux-public/suspend.h index f05e1b288f..f05e1b288f 100644 --- a/linux-2.6.9-xen-sparse/include/asm-xen/suspend.h +++ b/linux-2.6.9-xen-sparse/include/asm-xen/linux-public/suspend.h diff --git a/linux-2.6.9-xen-sparse/include/asm-xen/proc_cmd.h b/linux-2.6.9-xen-sparse/include/asm-xen/proc_cmd.h deleted file mode 100644 index 4292427c68..0000000000 --- a/linux-2.6.9-xen-sparse/include/asm-xen/proc_cmd.h +++ /dev/null @@ -1,65 +0,0 @@ -/****************************************************************************** - * proc_cmd.h - * - * Interface to /proc/cmd and /proc/xen/privcmd. - */ - -#ifndef __PROC_CMD_H__ -#define __PROC_CMD_H__ - -typedef struct privcmd_hypercall -{ - unsigned long op; - unsigned long arg[5]; -} privcmd_hypercall_t; - -typedef struct privcmd_mmap_entry { - unsigned long va; - unsigned long mfn; - unsigned long npages; -} privcmd_mmap_entry_t; - -typedef struct privcmd_mmap { - int num; - domid_t dom; /* target domain */ - privcmd_mmap_entry_t *entry; -} privcmd_mmap_t; - -typedef struct privcmd_mmapbatch { - int num; // number of pages to populate - domid_t dom; // target domain - unsigned long addr; // virtual address - unsigned long *arr; // array of mfns - top nibble set on err -} privcmd_mmapbatch_t; - -typedef struct privcmd_blkmsg -{ - unsigned long op; - void *buf; - int buf_size; -} privcmd_blkmsg_t; - -/* - * @cmd: IOCTL_PRIVCMD_HYPERCALL - * @arg: &privcmd_hypercall_t - * Return: Value returned from execution of the specified hypercall. - */ -#define IOCTL_PRIVCMD_HYPERCALL \ - _IOC(_IOC_NONE, 'P', 0, sizeof(privcmd_hypercall_t)) - -/* - * @cmd: IOCTL_PRIVCMD_INITDOMAIN_EVTCHN - * @arg: n/a - * Return: Port associated with domain-controller end of control event channel - * for the initial domain. - */ -#define IOCTL_PRIVCMD_INITDOMAIN_EVTCHN \ - _IOC(_IOC_NONE, 'P', 1, 0) -#define IOCTL_PRIVCMD_MMAP \ - _IOC(_IOC_NONE, 'P', 2, sizeof(privcmd_mmap_t)) -#define IOCTL_PRIVCMD_MMAPBATCH \ - _IOC(_IOC_NONE, 'P', 3, sizeof(privcmd_mmapbatch_t)) -#define IOCTL_PRIVCMD_GET_MACH2PHYS_START_MFN \ - _IOC(_IOC_READ, 'P', 4, sizeof(unsigned long)) - -#endif /* __PROC_CMD_H__ */ |