Nasiry 's way

Joke(现在工作太忙不能帮大家回答问题,实在抱歉,请到相关论坛获取支援)

摘抄---Driver Code Structure


Driver Code Structure


Most Windows CE–based device drivers use a layered approach. The advantage of this approach is that you only need to modify the upper or the lower layer. The upper layer is also known as the model device driver (MDD), and the lower layer is also known as the platform dependent driver (PDD).

Layered Code

Layered device drivers split the code into an upper layer called the model device driver (MDD) and a lower layer called the platform dependent driver (PDD). The MDD layer contains code that is common to all drivers of a given type. 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 a layered driver, you can reuse the common MDD code provided by Microsoft, and only write new PDD code that is specific to the your hardware. Alternatively, if you are porting one of the sample drivers to new hardware, you only need to port the PDD layer, and you can use the MDD layer directly from the sample driver.

The layered driver style is not required and may not be appropriate for all drivers. In particular, splitting device driver code into two layers imposes additional function call overhead in the device driver's operation. For performance critical situations, a monolithic driver may be more appropriate.

In general, Microsoft provides the MDD for a layered driver. The MDD is common to all platforms and functions, both as source code and as a library. It performs the following tasks:

·                      Links to the PDD layer and defines the DDSI functions it expects to call in that layer.

·                      Exposes DDI functions to the operating system.

·                      Handles complex tasks such as interrupt processing.

Each MDD handles a specific set of devices, such as audio hardware or touch screens.

The device driver interface (DDI) is a set of functions exposed by an MDD layer or monolithic driver and called by other OS modules. The device driver service provider interface (DDSI) is a set of functions exposed by the PDD layer of a layered device driver and called by the MDD. Classes of related device drivers can share the same DDI.

In contrast, DDSI layers are rarely the same from one PDD implementation to another. PDD implementations are designed to work with specific MDD implementations, and as such can vary widely from one layered device driver to the next. An exception is in cases where a single MDD layer is capable of using multiple PDDs, in which case the PDDs could expose the same set of DDSI functions. For example, a serial port MDD layer that supported multiple PDDs for controlling different types of serial port hardware, such as a 16550 UART based serial port and an infrared serial port, might require its PDDs to expose the same set of DDSI functions.

In general, the MDD requires no changes. If you choose to modify the MDD, be aware that Microsoft does not test, warrant, or support custom MDDs. You are responsible for all further MDD maintenance if Microsoft supplies an updated MDD in order to fix bugs or to support later versions of Windows CE.

You must develop the PDD layer specifically for your target platform. The PDD generally consists of functions that perform specific discrete tasks. These functions serve to isolate the MDD from the specifics of the hardware. Because the PDD is hardware-dependent, you must create a customized PDD for your platform hardware, or port one of the sample PDD layers to your hardware. To assist you, Microsoft provides several sample PDD layers for various built-in devices.

Monolithic Code

You can forego the MDD and PDD layers by implementing your device driver as a monolithic driver. Source code for a monolithic driver consists of both interrupt service thread code and platform specific code. For example, if performance is a critical factor for your device, a monolithic driver might be a better choice than a layered driver because a monolithic driver avoids the overhead associated with the function calls that take place between the MDD and PDD layers. You might also choose to implement a monolithic driver if the capabilities of your device are well matched to the tasks that the functions in the MDD layer perform. In such a case, implementing a monolithic driver might be simpler and more efficient than implementing a layered driver. Regardless of whether you implement a monolithic driver or a layered driver, you can base your implementation on the source code for any of the sample drivers.

posted on 2004-12-10 16:11 nasiry 阅读(2766) 评论(8)  编辑 收藏 所属分类: estreat

Feedback

#1楼  2007-04-16 05:49 uuuopo [未注册用户]

http://www.capezzoli-enormi-donne.jamdosc66.info siti sesso amatoriale http://www.derisive-bionde-masturbate.jasterka66.info foto spogliatoio nuda http://www.siti-trans-gratuiti.kasterka66.info bollente asiatiche amore http://www.studentessa-lesbiche-urinate.mamdosc66.info massaggiatrice a firenze http://www.ragazze-magre.hasterka66.info fresco cowgirl merda http://www.masturbazioni-gay.pamdosc66.info vecchie upskirt http://www.fotto-amatoriale.gamdosc66.info deciso infermiera gruppo http://www.strappare-tedesco-merda.kamdosc66.info sheepish bellerosse merda http://www.padrona-sadomaso.hamdosc66.info bdsm pics http://www.clarence-pompini.oamdosc66.info fotogratis fighe   回复  引用    

#2楼  2007-05-02 19:38 Smółko [未注册用户]

http://capigliature_clima.energetyka.czest.pl/
http://comico_amatoriali_masturbate.energetyka.czest.pl/
http://chiavate_con_asiatiche.kitoserw.yi.org/
http://nonsensical_bionde_masturbate.energetyka.czest.pl/
http://bollente_cameriera_strip.wux.yi.org/
http://casalinghe_tettone.itvirtuale.yi.org/
http://tettine_da_succhiare.energetyka.czest.pl/
http://sex_immagine.wux.yi.org/
http://schioccare_segretaria_inculate.wux.yi.org/
http://sconfinato_fighette_strip.energetyka.czest.pl/
http://ridiculous_cowgirl_sesso.foteliki-samochodowe.waw.pl/
http://eccellente_fighette_prostituta.kitoserw.yi.org/
http://orge_orale.energetyka.czest.pl/
http://imbarazzato_giovane_urinate.energetyka.czest.pl/
http://mousy_infermiera_ubriache.energetyka.czest.pl/
http://bonny_bionde_sex.energetyka.czest.pl/
http://mareva_galanter.energetyka.czest.pl/
http://congenial_fighetta_masturbate.wux.yi.org/
http://fun_asiatiche_strip.itvirtuale.yi.org/
http://risibile_fighetta_prostituta.foteliki-samochodowe.waw.pl/
http://timorous_ragazze_spogliarello.foteliki-samochodowe.waw.pl/
http://handsome_segretaria_sex.kitoserw.yi.org/
http://fair_amatoriali_inculate.kitoserw.yi.org/   回复  引用    

#3楼  2007-05-02 19:39 Smółko [未注册用户]

http://home_cinema_philips.poradnictwo.katowice.pl/
http://enviar_fax.kominy.waw.pl/
http://cultura_tunez.poradnictwo.katowice.pl/
http://venta_piso_mallorca.sanhuan.js.cn/
http://martin_heidegger.kominy.waw.pl/
http://hotel_canela_portonovo.poradnictwo.katowice.pl/
http://data_recovery_software.kominy.waw.pl/
http://implantacion_calidad.kominy.waw.pl/
http://metodologia_marketing.sanhuan.js.cn/
http://monitor_19.sanhuan.js.cn/
http://inmobiliaria_medano.kominy.waw.pl/
http://comprar_piso_segovia.poradnictwo.katowice.pl/
http://vuelos_a_albacete.kominy.waw.pl/
http://librerias_espana.kominy.waw.pl/
http://web_marketing.poradnictwo.katowice.pl/
http://restaurante_toledo.poradnictwo.katowice.pl/
http://compra_consumible.kominy.waw.pl/
http://salamanca_cofrade.sanhuan.js.cn/
http://ibiza_vista.kominy.waw.pl/
http://crudo_economia.kominy.waw.pl/
http://vuelos_a_cadiz.kominy.waw.pl/
http://carbonero_jaen.kominy.waw.pl/
http://vacacion_san_sebastian.kominy.waw.pl/
http://vivienda_jardin.kominy.waw.pl/
http://aire_acondicionado_johnson.kominy.waw.pl/
http://hotel_eden_playa.poradnictwo.katowice.pl/
http://vacacion_barro.kominy.waw.pl/
http://estudio_en_barcelona.kominy.waw.pl/
http://meteorologia_mallorca.kominy.waw.pl/
http://hotel_venecia_malaga.sanhuan.js.cn/   回复  引用    

#4楼  2007-05-05 23:23 WWW [未注册用户]

http://www.pornostar-superdotate.korcizwisa55.info bollente asiatiche ubriache http://www.foto-esibizionista-amatoriale.korcizwisa55.info capo operaio azione http://www.regazze-sfondate.jorcizwisa55.info gay sexupload http://www.fotos-nudisti.jorcizwisa55.info mogli sfondate gratis http://www.culo-sborrosi.gorcizwisa55.info porcelle vogliose http://www.esibizioniste-autdoor.gorcizwisa55.info porcellone xxx http://www.friendly-ragazze-ubriache.morcizwisa55.info supr sesso http://www.tette-video-toon.morcizwisa55.info pompino collant   回复  引用    

#5楼  2007-05-14 14:06 Smółko [未注册用户]

http://bello_amatoriali_urinate.obesita.sicilia.it/
http://studentessa_cowgirl_ubriache.pay-per-click.bs.it/
http://scopate_con_le_mutansexne.albergoantares.it/
http://sexi_svedesi.coors.cq.cn/
http://ridiculous_giovane_fottilo.obesita.sicilia.it/
http://schioccare_amatoriali_spogliarello.albergoantares.it/
http://beauty_segretaria_urinate.coors.cq.cn/
http://brsexettes_cornei.albergoantares.it/
http://piacevole_asiatiche_fottilo.basilicoecovillaggio.it/
http://vergognoso_infermiera_inculate.basilicoecovillaggio.it/
http://beautiful_fighetta_fottilo.pay-per-click.bs.it/
http://assurdo_lesbiche_sex.coors.cq.cn/
http://intenso_giovane_azione.pay-per-click.bs.it/
http://codardo_cowgirl_inculate.albergoantares.it/
http://nicer_fighetta_ubriache.coors.cq.cn/
http://friendly_segretaria_sex.basilicoecovillaggio.it/
http://sconfinato_fighette_merda.pay-per-click.bs.it/
http://piacente_cameriera_gruppo.coors.cq.cn/
http://derisive_segretaria_spogliarello.basilicoecovillaggio.it/
http://adeguato_asiatiche_urinate.obesita.sicilia.it/
http://esotiche_fotos.obesita.sicilia.it/
http://imene_foto.obesita.sicilia.it/
http://handsome_lesbiche_fottilo.pay-per-click.bs.it/
http://freddo_asiatiche_ubriache.pay-per-click.bs.it/
http://gratis_erotick.pay-per-click.bs.it/
http://shy_fighetta_spogliarello.coors.cq.cn/
http://eccessivo_segretaria_ubriache.albergoantares.it/   回复  引用    

#6楼  2007-05-14 14:07 Smółko [未注册用户]

http://boricuas-caliente.dcmscn.cn/
http://agujero-cara-italiano.kezen.cn/
http://sex-hard-porn.shbbwl.cn/
http://xxx-paris-hilton.kezen.cn/
http://gatitas-de-venus.shbbwl.cn/
http://hamsters-follando.snxfb.cn/
http://dibujos-del-horoscopo.shbbwl.cn/
http://forzadas-xxx-sex.kezen.cn/
http://agentes-muestras-busty.dcmscn.cn/
http://sexo-foto-fotos.dcmscn.cn/
http://desnudas-embarazadas.snxfb.cn/
http://novia-cristina-valladolid.bonbonda.cn/
http://fotos-axilas-depiladas.snxfb.cn/
http://video-sluts.snxfb.cn/
http://asian-xxx-video.dcmscn.cn/
http://corridas-de-cavalos.shbbwl.cn/
http://mamita-follando.bonbonda.cn/
http://estudiantes-sexi.dcmscn.cn/
http://lesbianas-bisexuales.kezen.cn/
http://sex-pose.dcmscn.cn/
http://mpge-xxx-fotos.dcmscn.cn/
http://wwwgatitas-calientes.shbbwl.cn/
http://hentai-con-monstruos.dcmscn.cn/
http://swinger-sevilla.snxfb.cn/
http://actrices-pornoestars.bonbonda.cn/
http://links-tangas.bonbonda.cn/
http://videosxxx-lima-mpeg.kezen.cn/
http://frase-de-amateurs.bonbonda.cn/
http://tangas-culiacan.kezen.cn/   回复  引用    

#7楼  2007-05-23 02:36 scopate-incredibile@gawoloo55.info [未注册用户]

http://www.cetriolo-il-figa.haalolo86.info esibizioniste gratis ninfomani http://www.hard-anziane.haalolo86.info damerino cowgirl inculate http://www.mousey-nonne-dildo.kaalolo86.info lesbo fotofrafie http://www.pleasant-cameriera-maledica.kaalolo86.info ragazze ceche troie http://www.zie-che-leccano.jaalolo86.info stravagantemente fighette gruppo http://www.immagini-di-culi.jaalolo86.info tettona amatoriale http://www.piu-bollente-tenere.gaalolo86.info amatoriali brasiliane http://www.maduros-gratis.gaalolo86.info troie cubane http://www.comfortable-ragazze-strip.laalolo86.info vip scopate gratis http://www.pretty-inglese-diteggiatura.laalolo86.info ragaze free   回复  引用    

#8楼  2007-11-03 23:46 sorella-in-calore@rinc11.cn [未注册用户]

http://www.femmine-esibizioniste.nbojau05.info iaculazione femminile http://www.bellissime-asiatiche.nbojau05.info figa di anziane http://www.scopate-fra-gay.piuslc05.info vecchi mature tettone http://www.foto-gay-muscolosi.piuslc05.info cosce grosse foto   回复  引用    


标题  
姓名  
主页
Email (只有博主才能看到) 
验证码 *  看不清,换一张 [登录][注册]
内容(请不要发表任何与政治相关的内容)  
  登录  使用高级评论  新用户注册  返回页首  恢复上次提交      
该文被作者在 2004-12-10 16:18 编辑过