Communication bettween two drivers

Hi all,
I have two drivers.Which are not in the same stack.
Driver1 is pnp driver and Driver2 is AvStream supported driver.
I need to contact driver1 to get some details from it.
Is it possible to directly call driver1 from driver2?
Or is there any way of having intermediate which will act as a interface
between two drivers??.

regards,
Rafi Maniyar
Tata Elxsi Limited,
Bangalore

Driver to driver communication can be accomplisehd by either an
IoCallDriver, after acquiring the proper device object, or by a propriatary
interface much like a DLL.


Gary G. Little
Have Computer, Will Travel …
909-698-3191
909-551-2105

“maniyar” wrote in message news:xxxxx@ntdev…
>
> Hi all,
> I have two drivers.Which are not in the same stack.
> Driver1 is pnp driver and Driver2 is AvStream supported driver.
> I need to contact driver1 to get some details from it.
> Is it possible to directly call driver1 from driver2?
> Or is there any way of having intermediate which will act as a interface
> between two drivers??.
> -
> regards,
> Rafi Maniyar
> Tata Elxsi Limited,
> Bangalore
>
>

Since you can make no assumptions as to when the PnP Manager will enumerate
and start your drivers, you need to have them registered to received PnP
Notification on events, such as arrival, removal, etc… You also need to
have your drivers register and start/stop their interfaces, whhich triggers
the different events.

The toaster sample provides an example of how this is done in it the
ToastMon driver. Look at the ToastMon.c file to find a full example on how
to register and unregister for PnP Notification, as well as the processing
you need to perform to get the device object for the other driver.

In your case you cant your driver to register for the arrival of the
AvStream driver and take the necessary steps to obtain the device object for
it when it arrives.

“maniyar” wrote in message news:xxxxx@ntdev…
>
> Hi all,
> I have two drivers.Which are not in the same stack.
> Driver1 is pnp driver and Driver2 is AvStream supported driver.
> I need to contact driver1 to get some details from it.
> Is it possible to directly call driver1 from driver2?
> Or is there any way of having intermediate which will act as a interface
> between two drivers??.
> -
> regards,
> Rafi Maniyar
> Tata Elxsi Limited,
> Bangalore
>
>

Hi ,
Thanx for ur suggestions.
Could u please let me know where could i find this toaster sample
(ToastMon driver).

regards,
Rafi Maniyar
Del Fredricks wrote:

Since you can make no assumptions as to when the PnP Manager will enumerate
and start your drivers, you need to have them registered to received PnP
Notification on events, such as arrival, removal, etc… You also need to
have your drivers register and start/stop their interfaces, whhich triggers
the different events.

The toaster sample provides an example of how this is done in it the
ToastMon driver. Look at the ToastMon.c file to find a full example on how
to register and unregister for PnP Notification, as well as the processing
you need to perform to get the device object for the other driver.

In your case you cant your driver to register for the arrival of the
AvStream driver and take the necessary steps to obtain the device object for
it when it arrives.

“maniyar” wrote in message news:xxxxx@ntdev…
>
>
>>Hi all,
>>I have two drivers.Which are not in the same stack.
>>Driver1 is pnp driver and Driver2 is AvStream supported driver.
>>I need to contact driver1 to get some details from it.
>>Is it possible to directly call driver1 from driver2?
>>Or is there any way of having intermediate which will act as a interface
>>between two drivers??.
>>-
>>regards,
>>Rafi Maniyar
>>Tata Elxsi Limited,
>>Bangalore
>>
>>
>>
>>
>
>
>
>—
>You are currently subscribed to ntdev as: xxxxx@tataelxsi.co.in
>To unsubscribe send a blank email to %%email.unsub%%
>
>
>


: Rafi Maniyar : Networking & Comm. Gp, Tata Elxsi Ltd |
: Phone : +91-80-8410222 Fax : +91-80-8410219 _________________ |

It’s in the DDK samples under %WINDDK%\src\general\tooaster, where %WINDDK% is the base directory where you installed your DDK.
“Mahammadrafi Maniyar” wrote in message news:xxxxx@ntdev…

Hi ,
Thanx for ur suggestions.
Could u please let me know where could i find this toaster sample (ToastMon driver).
-
regards,
Rafi Maniyar
Del Fredricks wrote:

Since you can make no assumptions as to when the PnP Manager will enumerate
and start your drivers, you need to have them registered to received PnP
Notification on events, such as arrival, removal, etc… You also need to
have your drivers register and start/stop their interfaces, whhich triggers
the different events.

The toaster sample provides an example of how this is done in it the
ToastMon driver. Look at the ToastMon.c file to find a full example on how
to register and unregister for PnP Notification, as well as the processing
you need to perform to get the device object for the other driver.

In your case you cant your driver to register for the arrival of the
AvStream driver and take the necessary steps to obtain the device object for
it when it arrives.

“maniyar” wrote in message news:xxxxx@ntdev…
Hi all,
I have two drivers.Which are not in the same stack.
Driver1 is pnp driver and Driver2 is AvStream supported driver.
I need to contact driver1 to get some details from it.
Is it possible to directly call driver1 from driver2?
Or is there any way of having intermediate which will act as a interface
between two drivers??.
-
regards,
Rafi Maniyar
Tata Elxsi Limited,
Bangalore


You are currently subscribed to ntdev as: xxxxx@tataelxsi.co.in
To unsubscribe send a blank email to %%email.unsub%%


: Rafi Maniyar : Networking & Comm. Gp, Tata Elxsi Ltd |
: Phone : +91-80-8410222 Fax : +91-80-8410219 _________________ |

Hi,
I got the sample, but this again need symbolic link of the other driver.
Is there any method which will work without pdo…

Regards,
Rafi Maniyar

Del Fredricks wrote:

It’s in the DDK samples under %WINDDK%\src\general\tooaster, where
%WINDDK% is the base directory where you installed your DDK.

“Mahammadrafi Maniyar” > mailto:xxxxx> wrote in message news:xxxxx@ntdev…
>
> Hi ,
> Thanx for ur suggestions.
> Could u please let me know where could i find this toaster sample
> (ToastMon driver).
> -
> regards,
> Rafi Maniyar
> Del Fredricks wrote:
>
>>Since you can make no assumptions as to when the PnP Manager will enumerate
>>and start your drivers, you need to have them registered to received PnP
>>Notification on events, such as arrival, removal, etc… You also need to
>>have your drivers register and start/stop their interfaces, whhich triggers
>>the different events.
>>
>>The toaster sample provides an example of how this is done in it the
>>ToastMon driver. Look at the ToastMon.c file to find a full example on how
>>to register and unregister for PnP Notification, as well as the processing
>>you need to perform to get the device object for the other driver.
>>
>>In your case you cant your driver to register for the arrival of the
>>AvStream driver and take the necessary steps to obtain the device object for
>>it when it arrives.
>>
>>“maniyar” wrote in message news:xxxxx@ntdev…
>>
>>
>>>Hi all,
>>>I have two drivers.Which are not in the same stack.
>>>Driver1 is pnp driver and Driver2 is AvStream supported driver.
>>>I need to contact driver1 to get some details from it.
>>>Is it possible to directly call driver1 from driver2?
>>>Or is there any way of having intermediate which will act as a interface
>>>between two drivers??.
>>>-
>>>regards,
>>>Rafi Maniyar
>>>Tata Elxsi Limited,
>>>Bangalore
>>>
>>>
>>>
>>>
>>
>>
>>
>>—
>>You are currently subscribed to ntdev as: xxxxx@tataelxsi.co.in
>>To unsubscribe send a blank email to %%email.unsub%%
>>
>>
>>
>
>–
>: Rafi Maniyar : Networking & Comm. Gp, Tata Elxsi Ltd |
>: Phone : +91-80-8410222 Fax : +91-80-8410219 |
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@tataelxsi.co.in
> To unsubscribe send a blank email to %%email.unsub%%


: Rafi Maniyar : Networking & Comm. Gp, Tata Elxsi Ltd |
: Phone : +91-80-8410222 Fax : +91-80-8410219
|</mailto:xxxxx>

As I understand it, this is the prescribed method to establish the interface. I am not aware of another way to call a driver other than the IoCallDriver() function, which requires the device object to identify the driver to which you are passing the IRP.

Do not worry about needing the symbolic link because if you analyze the code closely, you will see that the link is given to you by the PnP Manager in the notification structure passed to your callback function when the other driver enables it’s interface, thus anouncing it’s arrival.
“Mahammadrafi Maniyar” wrote in message news:xxxxx@ntdev…
Hi,
I got the sample, but this again need symbolic link of the other driver.
Is there any method which will work without pdo…
-
Regards,
Rafi Maniyar

Del Fredricks wrote:

It’s in the DDK samples under %WINDDK%\src\general\tooaster, where %WINDDK% is the base directory where you installed your DDK.
“Mahammadrafi Maniyar” wrote in message news:xxxxx@ntdev…

Hi ,
Thanx for ur suggestions.
Could u please let me know where could i find this toaster sample (ToastMon driver).
-
regards,
Rafi Maniyar
Del Fredricks wrote:

Since you can make no assumptions as to when the PnP Manager will enumerate
and start your drivers, you need to have them registered to received PnP
Notification on events, such as arrival, removal, etc… You also need to
have your drivers register and start/stop their interfaces, whhich triggers
the different events.

The toaster sample provides an example of how this is done in it the
ToastMon driver. Look at the ToastMon.c file to find a full example on how
to register and unregister for PnP Notification, as well as the processing
you need to perform to get the device object for the other driver.

In your case you cant your driver to register for the arrival of the
AvStream driver and take the necessary steps to obtain the device object for
it when it arrives.

“maniyar” wrote in message news:xxxxx@ntdev…
Hi all,
I have two drivers.Which are not in the same stack.
Driver1 is pnp driver and Driver2 is AvStream supported driver.
I need to contact driver1 to get some details from it.
Is it possible to directly call driver1 from driver2?
Or is there any way of having intermediate which will act as a interface
between two drivers??.
-
regards,
Rafi Maniyar
Tata Elxsi Limited,
Bangalore


You are currently subscribed to ntdev as: xxxxx@tataelxsi.co.in
To unsubscribe send a blank email to %%email.unsub%%


: Rafi Maniyar : Networking & Comm. Gp, Tata Elxsi Ltd |
: Phone : +91-80-8410222 Fax : +91-80-8410219 |


You are currently subscribed to ntdev as: xxxxx@tataelxsi.co.in
To unsubscribe send a blank email to %%email.unsub%%


: Rafi Maniyar : Networking & Comm. Gp, Tata Elxsi Ltd |
: Phone : +91-80-8410222 Fax : +91-80-8410219
|

Hi,
Ok then i have to go through the code once again.
If u get some more doubt then i will come back to you.
Thanx for the information.

regards,
Rafi Maniyar

Del Fredricks wrote:

As I understand it, this is the prescribed method to establish the
interface. I am not aware of another way to call a driver other than
the IoCallDriver() function, which requires the device object to
identify the driver to which you are passing the IRP.

Do not worry about needing the symbolic link because if you analyze
the code closely, you will see that the link is given to you by the
PnP Manager in the notification structure passed to your callback
function when the other driver enables it’s interface, thus anouncing
it’s arrival.

“Mahammadrafi Maniyar” > mailto:xxxxx> wrote in message news:xxxxx@ntdev…
> Hi,
> I got the sample, but this again need symbolic link of the other
> driver.
> Is there any method which will work without pdo…
> -
> Regards,
> Rafi Maniyar
>
> Del Fredricks wrote:
>
>> It’s in the DDK samples under %WINDDK%\src\general\tooaster,
>> where %WINDDK% is the base directory where you installed your DDK.
>>
>> “Mahammadrafi Maniyar” >> mailto:xxxxx> wrote in message
>> news:xxxxx@ntdev…
>>
>> Hi ,
>> Thanx for ur suggestions.
>> Could u please let me know where could i find this toaster
>> sample (ToastMon driver).
>> -
>> regards,
>> Rafi Maniyar
>> Del Fredricks wrote:
>>
>>>Since you can make no assumptions as to when the PnP Manager will enumerate
>>>and start your drivers, you need to have them registered to received PnP
>>>Notification on events, such as arrival, removal, etc… You also need to
>>>have your drivers register and start/stop their interfaces, whhich triggers
>>>the different events.
>>>
>>>The toaster sample provides an example of how this is done in it the
>>>ToastMon driver. Look at the ToastMon.c file to find a full example on how
>>>to register and unregister for PnP Notification, as well as the processing
>>>you need to perform to get the device object for the other driver.
>>>
>>>In your case you cant your driver to register for the arrival of the
>>>AvStream driver and take the necessary steps to obtain the device object for
>>>it when it arrives.
>>>
>>>“maniyar” wrote in message news:xxxxx@ntdev…
>>>
>>>
>>>>Hi all,
>>>>I have two drivers.Which are not in the same stack.
>>>>Driver1 is pnp driver and Driver2 is AvStream supported driver.
>>>>I need to contact driver1 to get some details from it.
>>>>Is it possible to directly call driver1 from driver2?
>>>>Or is there any way of having intermediate which will act as a interface
>>>>between two drivers??.
>>>>-
>>>>regards,
>>>>Rafi Maniyar
>>>>Tata Elxsi Limited,
>>>>Bangalore
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>>—
>>>You are currently subscribed to ntdev as: xxxxx@tataelxsi.co.in
>>>To unsubscribe send a blank email to %%email.unsub%%
>>>
>>>
>>>
>>
>>–
>>: Rafi Maniyar : Networking & Comm. Gp, Tata Elxsi Ltd |
>>: Phone : +91-80-8410222 Fax : +91-80-8410219 |
>>
>>
>> —
>> You are currently subscribed to ntdev as: xxxxx@tataelxsi.co.in
>> To unsubscribe send a blank email to %%email.unsub%%
>
>
>–
>: Rafi Maniyar : Networking & Comm. Gp, Tata Elxsi Ltd |
>: Phone : +91-80-8410222 Fax : +91-80-8410219
|
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@tataelxsi.co.in
> To unsubscribe send a blank email to %%email.unsub%%


: Rafi Maniyar : Networking & Comm. Gp, Tata Elxsi Ltd |
: Phone : +91-80-8410222 Fax : +91-80-8410219 _________________ |</mailto:xxxxx></mailto:xxxxx>