win-pvdrivers

changeset 549:967b567eaf6e

Added some more features to the INIT structures
author James Harper <james.harper@bendigoit.com.au>
date Sat Mar 28 10:05:05 2009 +1100 (2009-03-28)
parents 47fae39bc373
children ba13311350b9
files common/include/xen_windows.h
line diff
     1.1 --- a/common/include/xen_windows.h	Sat Mar 28 10:04:45 2009 +1100
     1.2 +++ b/common/include/xen_windows.h	Sat Mar 28 10:05:05 2009 +1100
     1.3 @@ -445,6 +445,15 @@ typedef struct {
     1.4  #define XEN_INIT_TYPE_STATE_PTR                 11
     1.5  #define XEN_INIT_TYPE_ACTIVE                    12
     1.6  #define XEN_INIT_TYPE_QEMU_PROTOCOL_VERSION     13
     1.7 +#define XEN_INIT_TYPE_MATCH_FRONT               14 /* string, value, action */
     1.8 +#define XEN_INIT_TYPE_MATCH_BACK                15 /* string, value, action */
     1.9 +
    1.10 +#define XEN_INIT_MATCH_TYPE_IF_MATCH		0x0001
    1.11 +#define XEN_INIT_MATCH_TYPE_IF_NOT_MATCH	0x0000
    1.12 +#define XEN_INIT_MATCH_TYPE_ONLY_IF_QEMU_HIDE	0x0002 /* only if qemu hiding is supported */
    1.13 +#define XEN_INIT_MATCH_TYPE_SET_INACTIVE	0x0100
    1.14 +#define XEN_INIT_MATCH_TYPE_DONT_CONFIG		0x0200
    1.15 +
    1.16  
    1.17  static __inline VOID
    1.18  __ADD_XEN_INIT_UCHAR(PUCHAR *ptr, UCHAR val)
    1.19 @@ -553,6 +562,12 @@ ADD_XEN_INIT_REQ(PUCHAR *ptr, UCHAR type
    1.20      __ADD_XEN_INIT_STRING(ptr, (PCHAR) p1);
    1.21      __ADD_XEN_INIT_STRING(ptr, (PCHAR) p2);
    1.22      break;
    1.23 +  case XEN_INIT_TYPE_MATCH_FRONT:
    1.24 +  case XEN_INIT_TYPE_MATCH_BACK:
    1.25 +    __ADD_XEN_INIT_STRING(ptr, (PCHAR) p1);
    1.26 +    __ADD_XEN_INIT_STRING(ptr, (PCHAR) p2);
    1.27 +    __ADD_XEN_INIT_ULONG(ptr, PtrToUlong(p3));
    1.28 +    break;
    1.29    case XEN_INIT_TYPE_RING:
    1.30    case XEN_INIT_TYPE_EVENT_CHANNEL_IRQ:
    1.31    case XEN_INIT_TYPE_READ_STRING_FRONT:
    1.32 @@ -595,6 +610,12 @@ GET_XEN_INIT_REQ(PUCHAR *ptr, PVOID *p1,
    1.33      *p1 = __GET_XEN_INIT_STRING(ptr);
    1.34      *p2 = __GET_XEN_INIT_STRING(ptr);
    1.35      break;
    1.36 +  case XEN_INIT_TYPE_MATCH_FRONT:
    1.37 +  case XEN_INIT_TYPE_MATCH_BACK:
    1.38 +    *p1 = __GET_XEN_INIT_STRING(ptr);
    1.39 +    *p2 = __GET_XEN_INIT_STRING(ptr);
    1.40 +    *p3 = UlongToPtr(__GET_XEN_INIT_ULONG(ptr));
    1.41 +    break;
    1.42    case XEN_INIT_TYPE_RING:
    1.43    case XEN_INIT_TYPE_EVENT_CHANNEL_IRQ:
    1.44    case XEN_INIT_TYPE_READ_STRING_FRONT: