win-pvdrivers

diff xennet/xennet.c @ 537:2a74ac2f43bb

more big updates
dma now working under xp
author James Harper <james.harper@bendigoit.com.au>
date Wed Feb 18 22:18:23 2009 +1100 (2009-02-18)
parents 1d39de3ab8d6
children e75bb8d68370
line diff
     1.1 --- a/xennet/xennet.c	Sat Feb 14 13:35:48 2009 +1100
     1.2 +++ b/xennet/xennet.c	Wed Feb 18 22:18:23 2009 +1100
     1.3 @@ -315,7 +315,7 @@ XenNet_Init(
     1.4    ULONG i;
     1.5    PUCHAR ptr;
     1.6    UCHAR type;
     1.7 -  PCHAR setting, value, value2;
     1.8 +  PCHAR setting, value;
     1.9    ULONG length;
    1.10    CHAR buf[128];
    1.11    PVOID network_address;
    1.12 @@ -596,7 +596,8 @@ XenNet_Init(
    1.13    ADD_XEN_INIT_REQ(&ptr, XEN_INIT_TYPE_RUN, NULL, NULL, NULL);
    1.14    ADD_XEN_INIT_REQ(&ptr, XEN_INIT_TYPE_RING, "tx-ring-ref", NULL, NULL);
    1.15    ADD_XEN_INIT_REQ(&ptr, XEN_INIT_TYPE_RING, "rx-ring-ref", NULL, NULL);
    1.16 -  ADD_XEN_INIT_REQ(&ptr, XEN_INIT_TYPE_EVENT_CHANNEL, "event-channel", XenNet_HandleEvent, xi);
    1.17 +  #pragma warning(suppress:4054)
    1.18 +  ADD_XEN_INIT_REQ(&ptr, XEN_INIT_TYPE_EVENT_CHANNEL, "event-channel", (PVOID)XenNet_HandleEvent, xi);
    1.19    ADD_XEN_INIT_REQ(&ptr, XEN_INIT_TYPE_READ_STRING_BACK, "mac", NULL, NULL);
    1.20    RtlStringCbPrintfA(buf, ARRAY_SIZE(buf), "%d", !xi->config_csum);
    1.21    ADD_XEN_INIT_REQ(&ptr, XEN_INIT_TYPE_WRITE_STRING, "request-rx-copy", "1", NULL);