win-pvdrivers

diff common/include/xen_public.h @ 497:312a41f82b8f

Updated to support the proposed patches to qemu from Steven Smith on ~20081216
author James Harper <james.harper@bendigoit.com.au>
date Fri Dec 19 22:08:17 2008 +1100 (2008-12-19)
parents a6e3f76419c3
children cb0b2da68686
line diff
     1.1 --- a/common/include/xen_public.h	Wed Dec 17 20:09:32 2008 +1100
     1.2 +++ b/common/include/xen_public.h	Fri Dec 19 22:08:17 2008 +1100
     1.3 @@ -165,19 +165,20 @@ typedef struct {
     1.4  
     1.5  #define XEN_INIT_DRIVER_EXTENSION_MAGIC ((ULONG)'XCFG')
     1.6  
     1.7 -#define XEN_INIT_TYPE_END               0
     1.8 -#define XEN_INIT_TYPE_WRITE_STRING      1
     1.9 -#define XEN_INIT_TYPE_RING              2
    1.10 -#define XEN_INIT_TYPE_EVENT_CHANNEL     3
    1.11 -#define XEN_INIT_TYPE_EVENT_CHANNEL_IRQ 4
    1.12 -#define XEN_INIT_TYPE_READ_STRING_FRONT 5
    1.13 -#define XEN_INIT_TYPE_READ_STRING_BACK  6
    1.14 -#define XEN_INIT_TYPE_VECTORS           7
    1.15 -#define XEN_INIT_TYPE_GRANT_ENTRIES     8
    1.16 -//#define XEN_INIT_TYPE_COPY_PTR          9
    1.17 -#define XEN_INIT_TYPE_RUN               10
    1.18 -#define XEN_INIT_TYPE_STATE_PTR         11
    1.19 -#define XEN_INIT_TYPE_ACTIVE		12
    1.20 +#define XEN_INIT_TYPE_END                       0
    1.21 +#define XEN_INIT_TYPE_WRITE_STRING              1
    1.22 +#define XEN_INIT_TYPE_RING                      2
    1.23 +#define XEN_INIT_TYPE_EVENT_CHANNEL             3
    1.24 +#define XEN_INIT_TYPE_EVENT_CHANNEL_IRQ         4
    1.25 +#define XEN_INIT_TYPE_READ_STRING_FRONT         5
    1.26 +#define XEN_INIT_TYPE_READ_STRING_BACK          6
    1.27 +#define XEN_INIT_TYPE_VECTORS                   7
    1.28 +#define XEN_INIT_TYPE_GRANT_ENTRIES             8
    1.29 +//#define XEN_INIT_TYPE_COPY_PTR                  9
    1.30 +#define XEN_INIT_TYPE_RUN                       10
    1.31 +#define XEN_INIT_TYPE_STATE_PTR                 11
    1.32 +#define XEN_INIT_TYPE_ACTIVE                    12
    1.33 +#define XEN_INIT_TYPE_QEMU_PROTOCOL_VERSION     13
    1.34  
    1.35  static __inline VOID
    1.36  __ADD_XEN_INIT_UCHAR(PUCHAR *ptr, UCHAR val)
    1.37 @@ -280,6 +281,7 @@ ADD_XEN_INIT_REQ(PUCHAR *ptr, UCHAR type
    1.38    case XEN_INIT_TYPE_RUN:
    1.39    case XEN_INIT_TYPE_STATE_PTR:
    1.40    case XEN_INIT_TYPE_ACTIVE:
    1.41 +  case XEN_INIT_TYPE_QEMU_PROTOCOL_VERSION:
    1.42      break;
    1.43    case XEN_INIT_TYPE_WRITE_STRING:
    1.44      __ADD_XEN_INIT_STRING(ptr, (PCHAR) p1);
    1.45 @@ -315,6 +317,7 @@ GET_XEN_INIT_REQ(PUCHAR *ptr, PVOID *p1,
    1.46    case XEN_INIT_TYPE_RUN:
    1.47    case XEN_INIT_TYPE_STATE_PTR:
    1.48    case XEN_INIT_TYPE_ACTIVE:
    1.49 +  case XEN_INIT_TYPE_QEMU_PROTOCOL_VERSION:
    1.50      *p1 = NULL;
    1.51      *p2 = NULL;
    1.52      break;
    1.53 @@ -379,6 +382,9 @@ ADD_XEN_INIT_RSP(PUCHAR *ptr, UCHAR type
    1.54    case XEN_INIT_TYPE_STATE_PTR:
    1.55      __ADD_XEN_INIT_PTR(ptr, p2);
    1.56      break;
    1.57 +  case XEN_INIT_TYPE_QEMU_PROTOCOL_VERSION:
    1.58 +    __ADD_XEN_INIT_ULONG(ptr, PtrToUlong(p2));
    1.59 +    break;
    1.60  //  case XEN_INIT_TYPE_COPY_PTR:
    1.61  //    __ADD_XEN_INIT_STRING(ptr, p1);
    1.62  //    __ADD_XEN_INIT_PTR(ptr, p2);
    1.63 @@ -433,6 +439,9 @@ GET_XEN_INIT_RSP(PUCHAR *ptr, PVOID *p1,
    1.64    case XEN_INIT_TYPE_STATE_PTR:
    1.65      *p2 = __GET_XEN_INIT_PTR(ptr);
    1.66      break;
    1.67 +  case XEN_INIT_TYPE_QEMU_PROTOCOL_VERSION:
    1.68 +    *p2 = UlongToPtr(__GET_XEN_INIT_ULONG(ptr));
    1.69 +    break;
    1.70  //  case XEN_INIT_TYPE_COPY_PTR:
    1.71  //    *p1 = __GET_XEN_INIT_STRING(ptr);
    1.72  //    *p2 = __GET_XEN_INIT_PTR(ptr);