Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
XP
accessibility
basics
beta.general
beta.help-and-support
configuration_manage
customize
device_driver.dev
embedded
embedded.techpreview
games
general
hardware
help_and_support
messenger
moviemaker
music
network_web
newusers
perform_maintain
photos
print_fax
security_admin
setup_deployment
video
winlogo
wmi
work_remotely
  
 
date: Tue, 13 Nov 2007 16:13:01 -0800,    group: microsoft.public.windowsxp.device_driver.dev        back       


Problems install multifunction device   
I cannot get the second device installed on a multifunction device.

The adaptor can be configured as a single device or a dual-device. The
second device is exactly the same type of device as the primary
device.

I am converting this driver from NT to WDM. I know WDF is probably
better but I familiar with WDM and I don't have the time to learn it.
In NT the driver works find. During the DriverEntry when the firmware
is loaed, the driver checks to see if the dual device is installed
(daughter board). if it is, the driver simply create the device for
the dual device (IoCreateDevice) and gets its resources
(baddr0/baddr1) from the primary channel (baddr3/baddr4) and conects
the same interrupt (IoConnectInterrupt). Everything works find.
However, in WDM it doesn't work that way.

During the start device phase, the driver will load the firmware and
then read a register on the primary device to determine if the
secondary device has been installed. if it has, the driver will then
create the device (IoCreateDevice()).

I used the sample in Walter Oney book, "Programming the Microsoft
Windows Driver Model" 2nd edition.

I only have one inf because the dual device woks exactly like the
primary device. However, I just can't seem to get the dual deivce
installed. 

When I run this program that check for installed devices, only one
device is listed. I was hoping to see two. The Device Manager only
displays 1 device.

Now,  I am using the Device Manager to Enable the primary driver,
which runs the Start Device phase of the primary channel  instead of
installing the device from scratch. Can I do this?

John
date: Tue, 13 Nov 2007 16:13:01 -0800   author:   John

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us