Re: driver query

Dhanesh D Pai <[email protected]>
Newsgroups gmane.comp.windows.ce.freeware
Organization Multitech Software Systems
Message-ID <1103192264.3126.41.camel@Dhanesh>
i am writing for a layered driver.
> in evc++,new,projects i choose  wce dll and enter my pdd codes there.
> my question is
> now where to enter mdd codes in evc++ since it is also a dll
> for writing applications i enter my codes in wce application in evc++.


Oh Raghu..If I get your question correct you doubt it wrong. You really
havnt appreciated the significance of Layered. I believe in most of the
case the MDD driver is generic and taken from the M$. 

I quote from MSDN: -

The PDD layer consists of the code that is specific to a given hardware
device or platform. The MDD calls specific PDD routines to access the
hardware or hardware specific information. When using alayered driver,
the OEM reuses the common MDD code provided by Microsoft in the Windows
CE Platform Builder, and only writes new PDD code that is specific to
the OEM's hardware. Or, if porting one of Microsoft's sample drivers to
new hardware, the OEM only needs to port the PDD layer; the MDD layer
can be used as-is.
( source MSDN - topic: System Architecture for Native Device Drivers )



Hence you see that seldom you are required to write the MDD drivers coz
most of the time it is already there. 
      For reference you can read serial deriver

the MDD driver is there in the Public\Common\Oak\Drivers\Serial dir
and the PDD driver will be there in the Platfrom ie CEPC, MIPS etc...

Usually the PDD layer of drivers must have the DDSI function for the MDD
layer.


           Now coming to your question ...you will have to write two
different file ...for PDD and MDD ( that is what the layered code is
about ....)  ...

       And as I said is most of the case( not compulsory ..but your case
is generic ) you can use the MDD proveided by the M$.

      If you drivers is totally different in all respect then you can
write the stream interface like upper level drivers ie MDD( this is what
the author recomends) ...





------------------------ Yahoo! Groups Sponsor --------------------~--> 
$4.98 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/Q7_YsB/neXJAA/yQLSAA/W4wwlB/TM
--------------------------------------------------------------------~->
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.