win-pvdrivers

diff xenvbd/xenvbd.h @ 310:60372bd2582d

First cut of putting xenbus config details in the .inf file - xenvbd may yet pass WHQL
author James Harper <james.harper@bendigoit.com.au>
date Fri Jun 13 14:16:50 2008 +1000 (2008-06-13)
parents 279f5623f6c7
children a55d72ac422f
line diff
     1.1 --- a/xenvbd/xenvbd.h	Wed Jun 11 21:24:57 2008 +1000
     1.2 +++ b/xenvbd/xenvbd.h	Fri Jun 13 14:16:50 2008 +1000
     1.3 @@ -81,7 +81,8 @@ typedef struct {
     1.4  } blkif_shadow_t;
     1.5  
     1.6  #define SHADOW_ENTRIES 16
     1.7 -#define GRANT_ENTRIES ((SHADOW_ENTRIES * BLKIF_MAX_SEGMENTS_PER_REQUEST) / 2)
     1.8 +//#define GRANT_ENTRIES ((SHADOW_ENTRIES * BLKIF_MAX_SEGMENTS_PER_REQUEST) / 2)
     1.9 +#define MAX_GRANT_ENTRIES 512
    1.10  
    1.11  typedef enum {
    1.12    XENVBD_DEVICETYPE_UNKNOWN,
    1.13 @@ -97,8 +98,9 @@ struct
    1.14    USHORT shadow_free;
    1.15    USHORT shadow_min_free;
    1.16  
    1.17 -  grant_ref_t grant_free_list[GRANT_ENTRIES];
    1.18 +  grant_ref_t grant_free_list[MAX_GRANT_ENTRIES];
    1.19    USHORT grant_free;
    1.20 +  USHORT grant_entries;
    1.21  
    1.22    evtchn_port_t event_channel;
    1.23    union {