|
From: Brian H. <bh...@lu...> - 2007-09-06 02:27:33
|
FINALLY, it works.
I finally gave up trying to get the sample driver to build and work with
the toaster bus driver.
Anyone out there following this thread in the future with the same problem,
avoid the sample driver. I don't know what wasn't working but I suspect
some interaction between the toaster bus driver and the toaster function
driver.
I just did my own simple driver which is a very stripped down version of
our custom PCI hba. I used the genpci in the general directory of the
WinDDK distribution to create my sample .inf file. you can use the
incomplete1.c of the function driver from the toaster (and toaster.H) with
some modifications. Specifically you'll have to add the DDKAPI into the
method definitions.
Here is what works:
link with the following flags:
-shared -Wl,--entry,_DriverEntry@8 -nostartfiles -nostdlib
this works if you use:
NTSTATUS
DDKAPI
DriverEntry(
__in DRIVER_OBJECT *DriverObject,
__in UNICODE_STRING *RegistryPath
)
|