win-pvdrivers

changeset 19:901996235bfc

remove xenbus.h, it appears to be redundant
author Andy Grover <andy@groveronline.com>
date Thu Nov 29 15:34:01 2007 -0800 (2007-11-29)
parents a54ad4e0e083
children 1414d099b564
files xenpci/xenbus.h
line diff
     1.1 --- a/xenpci/xenbus.h	Thu Nov 29 12:35:19 2007 -0800
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,188 +0,0 @@
     1.4 -/*
     1.5 -PV Drivers for Windows Xen HVM Domains
     1.6 -Copyright (C) 2007 James Harper
     1.7 -
     1.8 -This program is free software; you can redistribute it and/or
     1.9 -modify it under the terms of the GNU General Public License
    1.10 -as published by the Free Software Foundation; either version 2
    1.11 -of the License, or (at your option) any later version.
    1.12 -
    1.13 -This program is distributed in the hope that it will be useful,
    1.14 -but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.15 -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    1.16 -GNU General Public License for more details.
    1.17 -
    1.18 -You should have received a copy of the GNU General Public License
    1.19 -along with this program; if not, write to the Free Software
    1.20 -Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
    1.21 -*/
    1.22 -
    1.23 -#if !defined(_XENBUS_H_)
    1.24 -#define _XENBUS_H_
    1.25 -
    1.26 -#include <ntddk.h>
    1.27 -#include <wdm.h>
    1.28 -#include <wdf.h>
    1.29 -#include <initguid.h>
    1.30 -
    1.31 -#define NTSTRSAFE_LIB
    1.32 -#include <ntstrsafe.h>
    1.33 -
    1.34 -#define __XEN_INTERFACE_VERSION__ 0x00030205
    1.35 -#define __i386__
    1.36 -typedef signed char int8_t;
    1.37 -typedef unsigned char uint8_t;
    1.38 -typedef SHORT int16_t;
    1.39 -typedef USHORT uint16_t;
    1.40 -typedef LONG int32_t;
    1.41 -typedef ULONG uint32_t;
    1.42 -typedef ULONGLONG uint64_t;
    1.43 -typedef unsigned long pgentry_t;
    1.44 -
    1.45 -#define _PAGE_PRESENT  0x001UL
    1.46 -#define _PAGE_RW       0x002UL
    1.47 -#define _PAGE_USER     0x004UL
    1.48 -#define _PAGE_PWT      0x008UL
    1.49 -#define _PAGE_PCD      0x010UL
    1.50 -#define _PAGE_ACCESSED 0x020UL
    1.51 -#define _PAGE_DIRTY    0x040UL
    1.52 -#define _PAGE_PAT      0x080UL
    1.53 -#define _PAGE_PSE      0x080UL
    1.54 -#define _PAGE_GLOBAL   0x100UL
    1.55 -
    1.56 -#define L1_PROT (_PAGE_PRESENT|_PAGE_RW|_PAGE_ACCESSED)
    1.57 -
    1.58 -#include <xen.h>
    1.59 -#include <event_channel.h>
    1.60 -#include <hvm/params.h>
    1.61 -#include <hvm/hvm_op.h>
    1.62 -#include <evtchn_public.h>
    1.63 -#include <evtchn_store_public.h>
    1.64 -
    1.65 -//{C828ABE9-14CA-4445-BAA6-82C2376C6518}
    1.66 -DEFINE_GUID( GUID_XENBUS_DEVCLASS, 0xC828ABE9, 0x14CA, 0x4445, 0xBA, 0xA6, 0x82, 0xC2, 0x37, 0x6C, 0x65, 0x18);
    1.67 -
    1.68 -#define __DRIVER_NAME "XenBus"
    1.69 -#define XENBUS_POOL_TAG (ULONG) 'XenP'
    1.70 -
    1.71 -#define NR_RESERVED_ENTRIES 8
    1.72 -#define NR_GRANT_FRAMES 4
    1.73 -#define NR_GRANT_ENTRIES (NR_GRANT_FRAMES * PAGE_SIZE / sizeof(grant_entry_t))
    1.74 -
    1.75 -#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
    1.76 -
    1.77 -typedef struct _XENBUS_IDENTIFICATION_DESCRIPTION
    1.78 -{
    1.79 -  WDF_CHILD_IDENTIFICATION_DESCRIPTION_HEADER Header;
    1.80 -  UNICODE_STRING DeviceType;
    1.81 -  ULONG DeviceIndex;
    1.82 -} XENBUS_IDENTIFICATION_DESCRIPTION, *PXENBUS_IDENTIFICATION_DESCRIPTION;
    1.83 -
    1.84 -
    1.85 -typedef struct {
    1.86 -  WDFQUEUE          IoDefaultQueue;
    1.87 -  WDFINTERRUPT      Interrupt;
    1.88 -  PULONG            IoBaseAddress;
    1.89 -  ULONG             IoRange;
    1.90 -} XENBUS_DEVICE_DATA, *PXENBUS_DEVICE_DATA;
    1.91 -
    1.92 -WDF_DECLARE_CONTEXT_TYPE_WITH_NAME(XENBUS_DEVICE_DATA, GetDeviceData);
    1.93 -
    1.94 -
    1.95 -void
    1.96 -grant_table_init();
    1.97 -
    1.98 -typedef unsigned long xenbus_transaction_t;
    1.99 -typedef uint32_t XENSTORE_RING_IDX;
   1.100 -
   1.101 -/*
   1.102 -enum xsd_sockmsg_type
   1.103 -{
   1.104 -    XS_DEBUG,
   1.105 -    XS_DIRECTORY,
   1.106 -    XS_READ,
   1.107 -    XS_GET_PERMS,
   1.108 -    XS_WATCH,
   1.109 -    XS_UNWATCH,
   1.110 -    XS_TRANSACTION_START,
   1.111 -    XS_TRANSACTION_END,
   1.112 -    XS_INTRODUCE,
   1.113 -    XS_RELEASE,
   1.114 -    XS_GET_DOMAIN_PATH,
   1.115 -    XS_WRITE,
   1.116 -    XS_MKDIR,
   1.117 -    XS_RM,
   1.118 -    XS_SET_PERMS,
   1.119 -    XS_WATCH_EVENT,
   1.120 -    XS_ERROR,
   1.121 -    XS_IS_DOMAIN_INTRODUCED,
   1.122 -    XS_RESUME
   1.123 -};
   1.124 -
   1.125 -struct xsd_sockmsg
   1.126 -{
   1.127 -    uint32_t type;  /* XS_??? */
   1.128 -    uint32_t req_id;/* Request identifier, echoed in daemon's response.  */
   1.129 -    uint32_t tx_id; /* Transaction id (0 if not related to a transaction). */
   1.130 -    uint32_t len;   /* Length of data following this. */
   1.131 -
   1.132 -    /* Generally followed by nul-terminated string(s). */
   1.133 -};
   1.134 -*/
   1.135 -
   1.136 -#define XBT_NIL ((xenbus_transaction_t)0)
   1.137 -char *
   1.138 -XenBus_Read(PVOID Context, xenbus_transaction_t xbt, const char *path, char **value);
   1.139 -char *
   1.140 -XenBus_Write(PVOID Context, xenbus_transaction_t xbt, const char *path, const char *value);
   1.141 -char *
   1.142 -XenBus_StartTransaction(PVOID Context, xenbus_transaction_t *xbt);
   1.143 -char *
   1.144 -XenBus_EndTransaction(PVOID Context, xenbus_transaction_t t, int abort, int *retry);
   1.145 -
   1.146 -
   1.147 -char *
   1.148 -xenbus_watch_path(xenbus_transaction_t xbt, const char *path);
   1.149 -void
   1.150 -wait_for_watch(void);
   1.151 -char *
   1.152 -xenbus_wait_for_value(const char*,const char*);
   1.153 -
   1.154 -char *
   1.155 -xenbus_rm(xenbus_transaction_t xbt, const char *path);
   1.156 -char *
   1.157 -xenbus_ls(xenbus_transaction_t xbt, const char *prefix, char ***contents);
   1.158 -char *
   1.159 -xenbus_get_perms(xenbus_transaction_t xbt, const char *path, char **value);
   1.160 -char *
   1.161 -xenbus_set_perms(xenbus_transaction_t xbt, const char *path, domid_t dom, char perm);
   1.162 -char *
   1.163 -xenbus_transaction_start(xenbus_transaction_t *xbt);
   1.164 -char *
   1.165 -xenbus_transaction_end(xenbus_transaction_t, int abort, int *retry);
   1.166 -int
   1.167 -xenbus_read_integer(char *path);
   1.168 -void
   1.169 -xenbus_irq();
   1.170 -
   1.171 -NTSTATUS
   1.172 -XenBus_Init();
   1.173 -NTSTATUS
   1.174 -XenBus_Close();
   1.175 -
   1.176 -PVOID
   1.177 -map_frames(PULONG f, ULONG n);
   1.178 -
   1.179 -//extern XEN_IFACE_EVTCHN EvtchnInterface;
   1.180 -//extern XEN_IFACE_EVTCHN_STORE EvtchnStoreInterface;
   1.181 -
   1.182 -
   1.183 -/*
   1.184 -void
   1.185 -do_ls_test(const char *pre);
   1.186 -*/
   1.187 -
   1.188 -void
   1.189 -XenBus_ThreadProc(PVOID StartContext);
   1.190 -
   1.191 -#endif
   1.192 \ No newline at end of file