From: flyingfly on
Hi:

I am writing a simple SCSI miniport driver for Windows XP, and I have the
header files <SCSI.h> and <miniport.h>.
But there are errors in <srb.h> during compilitation

such as:
srb.h(63): error C2061 : syntax error : identifier 'SCSI_PHISYCAL_ADDRESS'
srb.h(63): error C2059 : syntax error : ';'
srb.h(63): error C2059 : syntax error : ','
srb.h(66): error C2061 : C requires that a struct or union has at least one
member

And there are huge amount of error, so that the last error i can see is :
error C10003 : error count exceeds 100; stopping compilation

I am so confused with these errors, can anyone help me to solve them?

Much appreciate!

PS: why there is no SCSI miniport sample drive in WDK, and my version is
7600.16385.1. it it really difficult to develop a SCSI miniport driver with
just the documentaions.


From: Burkhardt Braun on
Hello,
I made a quick-shot and I introduced the headers
#include <scsi.h>
#include <miniport.h>
#include <srb.h>

in an existing project.
I was able to compile with no errors, but ONLY if I placed these files
above
#include "precomp"
#pragma hdrstop

I assume there is something wrong with your build environment.
I used 7600 Checked Buid for XP

Good luck
Burkhardt Braun

On 19 Jul., 07:58, flyingfly <flying...(a)discussions.microsoft.com>
wrote:
> Hi:
>
> I am writing a simple SCSI miniport driver for Windows XP, and I have the
> header files <SCSI.h> and <miniport.h>.
> But there are errors in <srb.h> during compilitation
>
> such as:
> srb.h(63): error C2061 : syntax error : identifier 'SCSI_PHISYCAL_ADDRESS'
> srb.h(63): error C2059 : syntax error : ';'
> srb.h(63): error C2059 : syntax error : ','
> srb.h(66): error C2061 : C requires that a struct or union has at least one
> member
>
> And there are huge amount of error, so that the last error i can see is :
> error C10003 : error count exceeds 100; stopping compilation
>
> I am so confused with these errors, can anyone help me to solve them?
>
> Much appreciate!
>
> PS: why there is no SCSI miniport sample drive in WDK, and my version is
> 7600.16385.1. it it really difficult to develop a SCSI miniport driver with
> just the documentaions.

From: Scott Noone on
"flyingfly" <flyingfly(a)discussions.microsoft.com> wrote in message
news:76AE6EE2-6988-4D1C-A20C-
> srb.h(63): error C2061 : syntax error : identifier 'SCSI_PHISYCAL_ADDRESS'

Did you type that or copy/paste it? Note that "physical" is spelled wrong,
if you did a copy/paste of that then your header is trashed somehow.

-scott

--
Scott Noone
Consulting Associate
OSR Open Systems Resources, Inc.
http://www.osronline.com


"flyingfly" <flyingfly(a)discussions.microsoft.com> wrote in message
news:76AE6EE2-6988-4D1C-A20C-992AC2BBA00B(a)microsoft.com...
> Hi:
>
> I am writing a simple SCSI miniport driver for Windows XP, and I have the
> header files <SCSI.h> and <miniport.h>.
> But there are errors in <srb.h> during compilitation
>
> such as:
> srb.h(63): error C2061 : syntax error : identifier 'SCSI_PHISYCAL_ADDRESS'
> srb.h(63): error C2059 : syntax error : ';'
> srb.h(63): error C2059 : syntax error : ','
> srb.h(66): error C2061 : C requires that a struct or union has at least
> one
> member
>
> And there are huge amount of error, so that the last error i can see is :
> error C10003 : error count exceeds 100; stopping compilation
>
> I am so confused with these errors, can anyone help me to solve them?
>
> Much appreciate!
>
> PS: why there is no SCSI miniport sample drive in WDK, and my version is
> 7600.16385.1. it it really difficult to develop a SCSI miniport driver
> with
> just the documentaions.
>
>
From: flyingfly on
sorry i just typed it wrong, it should be SCSI_PHYSICAL_ADDRESS

"Scott Noone" wrote:

> "flyingfly" <flyingfly(a)discussions.microsoft.com> wrote in message
> news:76AE6EE2-6988-4D1C-A20C-
> > srb.h(63): error C2061 : syntax error : identifier 'SCSI_PHISYCAL_ADDRESS'
>
> Did you type that or copy/paste it? Note that "physical" is spelled wrong,
> if you did a copy/paste of that then your header is trashed somehow.
>
> -scott
>
> --
> Scott Noone
> Consulting Associate
> OSR Open Systems Resources, Inc.
> http://www.osronline.com
>
>
> "flyingfly" <flyingfly(a)discussions.microsoft.com> wrote in message
> news:76AE6EE2-6988-4D1C-A20C-992AC2BBA00B(a)microsoft.com...
> > Hi:
> >
> > I am writing a simple SCSI miniport driver for Windows XP, and I have the
> > header files <SCSI.h> and <miniport.h>.
> > But there are errors in <srb.h> during compilitation
> >
> > such as:
> > srb.h(63): error C2061 : syntax error : identifier 'SCSI_PHISYCAL_ADDRESS'
> > srb.h(63): error C2059 : syntax error : ';'
> > srb.h(63): error C2059 : syntax error : ','
> > srb.h(66): error C2061 : C requires that a struct or union has at least
> > one
> > member
> >
> > And there are huge amount of error, so that the last error i can see is :
> > error C10003 : error count exceeds 100; stopping compilation
> >
> > I am so confused with these errors, can anyone help me to solve them?
> >
> > Much appreciate!
> >
> > PS: why there is no SCSI miniport sample drive in WDK, and my version is
> > 7600.16385.1. it it really difficult to develop a SCSI miniport driver
> > with
> > just the documentaions.
> >
> >
From: flyingfly on
Hi:
Thanks for your help, your method helped to solve the previous problem,but
there are still some other errors

in my "private.h" :

private.h(26) : error C2061 : syntax error : identifier 'DriverEntry'
private.h(26) : error C2056 : syntax error : ';'
private.h(34) : error C2148 : syntax error : missing ')' before identifier
'ConfigInfo'
private.h(34) : error C2081 : 'PPORT_CONFIGURATION_INFORMATION' : name in
formal parameter list illegal
private.h(34) : error C2061 : syntax error : identifier 'ConfigInfo'

the corresponding code in private.h is shown here:

21: typedef struct _XX_DEVICE_EXTENSION{
22: XX_REGS Regs;
23: PUCHAR RegsBase;
24: }XX_DEVICE_EXTENSION, *PXX_DEVICE_EXTENSION;
25:
26 : DRIVER_INITIALIZE DriverEntry;
27:
28: ULONG
29: xxFindAdapter(
30: IN PVOID DeviceExtension,
31: IN PVOID HwContext,
32: IN PVOID BusInformation,
33: IN PCHAR ArgumentString,
34: IN OUT PPORT_CONFIGURATION_INFORMATION ConfigInfo,
35: OUT PBOOLEAN Again
36 );

and also errors about 'PSCSI_REQUEST_BLOCK'

have i missed some header files that have defined the structs above?

Thanks again!





And there are some other mistakes at ..\inc\api\e

"Burkhardt Braun" wrote:

> Hello,
> I made a quick-shot and I introduced the headers
> #include <scsi.h>
> #include <miniport.h>
> #include <srb.h>
>
> in an existing project.
> I was able to compile with no errors, but ONLY if I placed these files
> above
> #include "precomp"
> #pragma hdrstop
>
> I assume there is something wrong with your build environment.
> I used 7600 Checked Buid for XP
>
> Good luck
> Burkhardt Braun
>
> On 19 Jul., 07:58, flyingfly <flying...(a)discussions.microsoft.com>
> wrote:
> > Hi:
> >
> > I am writing a simple SCSI miniport driver for Windows XP, and I have the
> > header files <SCSI.h> and <miniport.h>.
> > But there are errors in <srb.h> during compilitation
> >
> > such as:
> > srb.h(63): error C2061 : syntax error : identifier 'SCSI_PHISYCAL_ADDRESS'
> > srb.h(63): error C2059 : syntax error : ';'
> > srb.h(63): error C2059 : syntax error : ','
> > srb.h(66): error C2061 : C requires that a struct or union has at least one
> > member
> >
> > And there are huge amount of error, so that the last error i can see is :
> > error C10003 : error count exceeds 100; stopping compilation
> >
> > I am so confused with these errors, can anyone help me to solve them?
> >
> > Much appreciate!
> >
> > PS: why there is no SCSI miniport sample drive in WDK, and my version is
> > 7600.16385.1. it it really difficult to develop a SCSI miniport driver with
> > just the documentaions.
>
> .
>