win-pvdrivers

changeset 750:cb83af6bcdef

Include files changes for device hiding changes
author James Harper <james.harper@bendigoit.com.au>
date Sun Jan 10 10:11:16 2010 +1100 (2010-01-10)
parents 233c06b133e9
children 036172f7e1b2
files common/include/xen_windows.h
line diff
     1.1 --- a/common/include/xen_windows.h	Sun Jan 10 10:10:52 2010 +1100
     1.2 +++ b/common/include/xen_windows.h	Sun Jan 10 10:11:16 2010 +1100
     1.3 @@ -458,18 +458,21 @@ typedef struct {
     1.4  //#define XEN_INIT_TYPE_COPY_PTR                  9
     1.5  #define XEN_INIT_TYPE_RUN                       10
     1.6  #define XEN_INIT_TYPE_STATE_PTR                 11
     1.7 -#define XEN_INIT_TYPE_ACTIVE                    12
     1.8 +//#define XEN_INIT_TYPE_ACTIVE                    12
     1.9  #define XEN_INIT_TYPE_QEMU_PROTOCOL_VERSION     13
    1.10 -#define XEN_INIT_TYPE_MATCH_FRONT               14 /* string, value, action */
    1.11 -#define XEN_INIT_TYPE_MATCH_BACK                15 /* string, value, action */
    1.12 +//#define XEN_INIT_TYPE_MATCH_FRONT               14 /* string, value, action */
    1.13 +//#define XEN_INIT_TYPE_MATCH_BACK                15 /* string, value, action */
    1.14  #define XEN_INIT_TYPE_EVENT_CHANNEL_DPC         16
    1.15 +#define XEN_INIT_TYPE_QEMU_HIDE_FLAGS           17 /* qemu hide flags */
    1.16 +#define XEN_INIT_TYPE_QEMU_HIDE_FILTER          18 /* qemu device hidden by class filter */
    1.17  
    1.18 +#if 0
    1.19  #define XEN_INIT_MATCH_TYPE_IF_MATCH		0x0001
    1.20  #define XEN_INIT_MATCH_TYPE_IF_NOT_MATCH	0x0000
    1.21  #define XEN_INIT_MATCH_TYPE_ONLY_IF_QEMU_HIDE	0x0002 /* only if qemu hiding is supported */
    1.22  #define XEN_INIT_MATCH_TYPE_SET_INACTIVE	0x0100
    1.23  #define XEN_INIT_MATCH_TYPE_DONT_CONFIG		0x0200
    1.24 -
    1.25 +#endif
    1.26  
    1.27  static __inline VOID
    1.28  __ADD_XEN_INIT_UCHAR(PUCHAR *ptr, UCHAR val)
    1.29 @@ -572,19 +575,23 @@ ADD_XEN_INIT_REQ(PUCHAR *ptr, UCHAR type
    1.30    case XEN_INIT_TYPE_VECTORS:
    1.31    case XEN_INIT_TYPE_RUN:
    1.32    case XEN_INIT_TYPE_STATE_PTR:
    1.33 -  case XEN_INIT_TYPE_ACTIVE:
    1.34 +//  case XEN_INIT_TYPE_ACTIVE:
    1.35    case XEN_INIT_TYPE_QEMU_PROTOCOL_VERSION:
    1.36 +  case XEN_INIT_TYPE_QEMU_HIDE_FLAGS:
    1.37 +  case XEN_INIT_TYPE_QEMU_HIDE_FILTER:
    1.38      break;
    1.39    case XEN_INIT_TYPE_WRITE_STRING:
    1.40      __ADD_XEN_INIT_STRING(ptr, (PCHAR) p1);
    1.41      __ADD_XEN_INIT_STRING(ptr, (PCHAR) p2);
    1.42      break;
    1.43 +#if 0
    1.44    case XEN_INIT_TYPE_MATCH_FRONT:
    1.45    case XEN_INIT_TYPE_MATCH_BACK:
    1.46      __ADD_XEN_INIT_STRING(ptr, (PCHAR) p1);
    1.47      __ADD_XEN_INIT_STRING(ptr, (PCHAR) p2);
    1.48      __ADD_XEN_INIT_ULONG(ptr, PtrToUlong(p3));
    1.49      break;
    1.50 +#endif
    1.51    case XEN_INIT_TYPE_RING:
    1.52    case XEN_INIT_TYPE_EVENT_CHANNEL_IRQ:
    1.53    case XEN_INIT_TYPE_READ_STRING_FRONT:
    1.54 @@ -619,7 +626,7 @@ GET_XEN_INIT_REQ(PUCHAR *ptr, PVOID *p1,
    1.55    case XEN_INIT_TYPE_VECTORS:
    1.56    case XEN_INIT_TYPE_RUN:
    1.57    case XEN_INIT_TYPE_STATE_PTR:
    1.58 -  case XEN_INIT_TYPE_ACTIVE:
    1.59 +//  case XEN_INIT_TYPE_ACTIVE:
    1.60    case XEN_INIT_TYPE_QEMU_PROTOCOL_VERSION:
    1.61      *p1 = NULL;
    1.62      *p2 = NULL;
    1.63 @@ -628,12 +635,14 @@ GET_XEN_INIT_REQ(PUCHAR *ptr, PVOID *p1,
    1.64      *p1 = __GET_XEN_INIT_STRING(ptr);
    1.65      *p2 = __GET_XEN_INIT_STRING(ptr);
    1.66      break;
    1.67 +#if 0
    1.68    case XEN_INIT_TYPE_MATCH_FRONT:
    1.69    case XEN_INIT_TYPE_MATCH_BACK:
    1.70      *p1 = __GET_XEN_INIT_STRING(ptr);
    1.71      *p2 = __GET_XEN_INIT_STRING(ptr);
    1.72      *p3 = UlongToPtr(__GET_XEN_INIT_ULONG(ptr));
    1.73      break;
    1.74 +#endif
    1.75    case XEN_INIT_TYPE_RING:
    1.76    case XEN_INIT_TYPE_EVENT_CHANNEL_IRQ:
    1.77    case XEN_INIT_TYPE_READ_STRING_FRONT:
    1.78 @@ -669,7 +678,8 @@ ADD_XEN_INIT_RSP(PUCHAR *ptr, UCHAR type
    1.79    case XEN_INIT_TYPE_END:
    1.80    case XEN_INIT_TYPE_WRITE_STRING: /* this shouldn't happen */
    1.81    case XEN_INIT_TYPE_RUN:
    1.82 -  case XEN_INIT_TYPE_ACTIVE:
    1.83 +//  case XEN_INIT_TYPE_ACTIVE:
    1.84 +  case XEN_INIT_TYPE_QEMU_HIDE_FILTER:
    1.85      break;
    1.86    case XEN_INIT_TYPE_RING:
    1.87      __ADD_XEN_INIT_STRING(ptr, (PCHAR) p1);
    1.88 @@ -696,6 +706,9 @@ ADD_XEN_INIT_RSP(PUCHAR *ptr, UCHAR type
    1.89      memcpy(*ptr, p2, PtrToUlong(p1) * sizeof(grant_entry_t));
    1.90      *ptr += PtrToUlong(p1) * sizeof(grant_entry_t);
    1.91      break;
    1.92 +  case XEN_INIT_TYPE_QEMU_HIDE_FLAGS:
    1.93 +    __ADD_XEN_INIT_ULONG(ptr, PtrToUlong(p2));
    1.94 +    break;
    1.95    case XEN_INIT_TYPE_STATE_PTR:
    1.96      __ADD_XEN_INIT_PTR(ptr, p2);
    1.97      break;
    1.98 @@ -721,7 +734,8 @@ GET_XEN_INIT_RSP(PUCHAR *ptr, PVOID *p1,
    1.99    {
   1.100    case XEN_INIT_TYPE_END:
   1.101    case XEN_INIT_TYPE_RUN:
   1.102 -  case XEN_INIT_TYPE_ACTIVE:
   1.103 +//  case XEN_INIT_TYPE_ACTIVE:
   1.104 +  case XEN_INIT_TYPE_QEMU_HIDE_FILTER:
   1.105      *p1 = NULL;
   1.106      *p2 = NULL;
   1.107      break;
   1.108 @@ -759,6 +773,9 @@ GET_XEN_INIT_RSP(PUCHAR *ptr, PVOID *p1,
   1.109    case XEN_INIT_TYPE_STATE_PTR:
   1.110      *p2 = __GET_XEN_INIT_PTR(ptr);
   1.111      break;
   1.112 +  case XEN_INIT_TYPE_QEMU_HIDE_FLAGS:
   1.113 +    *p2 = UlongToPtr(__GET_XEN_INIT_ULONG(ptr));
   1.114 +    break;
   1.115    case XEN_INIT_TYPE_QEMU_PROTOCOL_VERSION:
   1.116      *p2 = UlongToPtr(__GET_XEN_INIT_ULONG(ptr));
   1.117      break;