没有合适的资源?快使用搜索试试~ 我知道了~
windriver for PCI/ISA/Card bus Rev10.21 中英文使用手册
4星 · 超过85%的资源 需积分: 15 52 下载量 46 浏览量
2011-08-19
15:54:38
上传
评论 1
收藏 1.51MB PDF 举报
温馨提示
试读
315页
此为未完成版,本人边看此英文手册,边翻译成中文。鉴于本人水平有限,如有错误,敬请大家指出。
资源推荐
资源详情
资源评论
WinDriver™ PCI/ISA/CardBus
User's Manual
Version 10.2.1
Jungo Ltd.
© Jungo Ltd. 2005–2010
WinDriver™ PCI/ISA/CardBus User's Manual: Version 10.2.1
Copyright © Jungo Ltd. 2005–2010 All Rights Reserved.
Information in this document is subject to change without notice. The software described in this document is furnished under a license
agreement. The software may be used, copied or distributed only in accordance with that agreement. No part of this publication
may be reproduced, stored in a retrieval system, or transmitted in any form or any means, electronically or mechanically, including
photocopying and recording for any purpose without the written permission of Jungo Ltd.
Brand and product names mentioned in this document are trademarks of their respective owners and are used here only for
identification purposes.
© Jungo Ltd. 2005–2010 iii
Table of Contents
1. WinDriver Overview .................................................................................................................. 1
1.1. Introduction to WinDriver .............................................................................................. 1
1.2. Background ..................................................................................................................... 2
1.2.1. The Challenge ...................................................................................................... 2
1.2.2. The WinDriver Solution ...................................................................................... 2
1.3. How Fast Can WinDriver Go? ....................................................................................... 3
1.4. Conclusion ....................................................................................................................... 3
1.5. WinDriver Benefits ......................................................................................................... 4
1.6. WinDriver Architecture .................................................................................................. 5
1.7. What Platforms Does WinDriver Support? .................................................................... 6
1.8. Limitations of the Different Evaluation Versions ........................................................... 6
1.9. How Do I Develop My Driver with WinDriver? ........................................................... 7
1.9.1. On Windows, Mac OS X, and Linux ................................................................... 7
1.9.2. On Windows CE .................................................................................................. 7
1.10. What Does the WinDriver Toolkit Include? ................................................................. 8
1.10.1. WinDriver Modules ........................................................................................... 8
1.10.2. Utilities ............................................................................................................... 9
1.10.3. WinDriver's Specific Chipset Support ............................................................... 9
1.10.4. Samples ............................................................................................................ 10
1.11. Can I Distribute the Driver Created with WinDriver? ................................................ 10
2. Understanding Device Drivers ................................................................................................. 11
2.1. Device Driver Overview ............................................................................................... 11
2.2. Classification of Drivers According to Functionality ................................................... 11
2.2.1. Monolithic Drivers ............................................................................................. 11
2.2.2. Layered Drivers .................................................................................................. 12
2.2.3. Miniport Drivers ................................................................................................ 13
2.3. Classification of Drivers According to Operating Systems .......................................... 15
2.3.1. WDM Drivers .................................................................................................... 15
2.3.2. VxD Drivers ....................................................................................................... 15
2.3.3. Unix Device Drivers .......................................................................................... 15
2.3.4. Linux Device Drivers ......................................................................................... 15
2.3.5. Mac OS X Device Drivers ................................................................................. 16
2.4. The Entry Point of the Driver ...................................................................................... 16
2.5. Associating the Hardware with the Driver ................................................................... 16
2.6. Communicating with Drivers ........................................................................................ 17
3. Installing WinDriver ................................................................................................................ 18
3.1. System Requirements .................................................................................................... 18
3.1.1. Windows System Requirements ........................................................................ 18
3.1.2. Windows CE System Requirements .................................................................. 18
3.1.3. Mac OS X System Requirements ....................................................................... 19
3.1.4. Linux System Requirements .............................................................................. 19
3.2. WinDriver Installation Process ..................................................................................... 20
3.2.1. Windows WinDriver Installation Instructions ................................................... 20
3.2.2. Windows CE WinDriver Installation Instructions ............................................. 21
3.2.2.1. Installing WinDriver CE when Building New CE-Based Platforms ........ 21
© Jungo Ltd. 2005–2010 iv
3.2.2.2. Installing WinDriver CE when Developing Applications for Windows
CE Computers ...................................................................................................... 23
3.2.2.3. Windows CE Installation Note ............................................................... 23
3.2.3. Mac OS X WinDriver Installation Instructions .................................................. 24
3.2.4. Linux WinDriver Installation Instructions ......................................................... 25
3.2.4.1. Preparing the System for Installation ...................................................... 25
3.2.4.2. Installation ............................................................................................... 26
3.2.4.3. Restricting Hardware Access on Linux ................................................... 27
3.3. Upgrading Your Installation ......................................................................................... 28
3.4. Checking Your Installation ........................................................................................... 28
3.4.1. Windows, Mac OS X, and Linux Installation Check ......................................... 28
3.4.2. Windows CE Installation Check ........................................................................ 28
3.5. Uninstalling WinDriver ................................................................................................. 29
3.5.1. Windows WinDriver Uninstall Instructions ....................................................... 29
3.5.2. Mac OS X WinDriver Uninstall Instructions ..................................................... 30
3.5.3. Linux WinDriver Uninstall Instructions ............................................................ 31
4. Using DriverWizard ................................................................................................................. 33
4.1. An Overview ................................................................................................................. 33
4.2. DriverWizard Walkthrough ........................................................................................... 34
4.2.1. Logging WinDriver API Calls ........................................................................... 42
4.2.2. DriverWizard Logger ......................................................................................... 42
4.2.3. Automatic Code Generation ............................................................................... 42
4.2.3.1. Generating the Code ............................................................................... 42
4.2.3.2. The Generated PCI/PCMCIA/ISA C Code ............................................. 42
4.2.3.3. The Generated Visual Basic and Delphi Code ........................................ 43
4.2.3.4. The Generated C# Code .......................................................................... 43
4.2.4. Compiling the Generated Code .......................................................................... 43
4.2.4.1. Windows and Windows CE Compilation ............................................... 43
4.2.4.2. Mac OS X Compilation ........................................................................... 44
4.2.4.3. Linux Compilation .................................................................................. 45
5. Developing a Driver ................................................................................................................ 46
5.1. Using DriverWizard to Build a Device Driver ............................................................. 46
5.2. Writing the Device Driver Without DriverWizard ....................................................... 47
5.2.1. Include the Required WinDriver Files ............................................................... 47
5.2.2. Write Your Code ................................................................................................ 48
5.2.3. Configure and Build Your Code ........................................................................ 49
5.3. Developing Your Driver on Windows CE Platforms ................................................... 49
5.4. Developing in Visual Basic and Delphi ....................................................................... 50
5.4.1. Using DriverWizard ........................................................................................... 50
5.4.2. Samples .............................................................................................................. 50
5.4.3. Kernel PlugIn ..................................................................................................... 50
5.4.4. Creating your Driver .......................................................................................... 50
6. Debugging Drivers ................................................................................................................... 51
6.1. User-Mode Debugging .................................................................................................. 51
6.2. Debug Monitor .............................................................................................................. 51
6.2.1. The wddebug_gui Utility .................................................................................. 52
6.2.1.1. Running wddebug_gui for a Renamed Driver ....................................... 54
6.2.2. The wddebug Utility ......................................................................................... 54
© Jungo Ltd. 2005–2010 v
6.2.2.1. Console-Mode wddebug Execution ........................................................ 54
6.2.2.2. Windows CE GUI wddebug Execution ................................................. 57
7. Enhanced Support for Specific Chipsets ................................................................................. 59
7.1. Overview ....................................................................................................................... 59
7.2. Developing a Driver Using the Enhanced Chipset Support .......................................... 59
8. PCI Express .............................................................................................................................. 61
8.1. PCI Express Overview .................................................................................................. 61
8.2. WinDriver for PCI Express .......................................................................................... 62
9. Advanced Issues ....................................................................................................................... 63
9.1. Performing Direct Memory Access (DMA) ................................................................. 63
9.1.1. Scatter/Gather DMA .......................................................................................... 64
9.1.1.1. Sample Scatter/Gather DMA Implementation ........................................ 64
9.1.1.2. What Should You Implement? ................................................................ 65
9.1.2. Contiguous Buffer DMA .................................................................................... 66
9.1.2.1. Sample Contiguous Buffer DMA Implementation .................................. 66
9.1.2.2. What Should You Implement? ................................................................ 67
9.1.3. Performing DMA on SPARC ............................................................................ 68
9.2. Handling Interrupts ....................................................................................................... 68
9.2.1. Interrupt Handling – Overview .......................................................................... 68
9.2.2. WinDriver Interrupt Handling Sequence ........................................................... 70
9.2.3. Determining the Interrupt Types Supported by the Hardware ........................... 71
9.2.4. Determining the Interrupt Type Enabled for a PCI Card ................................... 72
9.2.5. Setting Up Kernel-Mode Interrupt Transfer Commands .................................... 72
9.2.5.1. Interrupt Mask Commands ...................................................................... 73
9.2.5.2. Sample WinDriver Transfer Commands Code ........................................ 74
9.2.6. WinDriver MSI/MSI-X Interrupt Handling ....................................................... 75
9.2.6.1. Windows MSI/MSI-X Device INF Files ................................................ 75
9.2.7. Sample User-Mode WinDriver Interrupt Handling Code .................................. 76
9.2.8. Interrupts on Windows CE ................................................................................ 77
9.2.8.1. Improving Interrupt Latency on Windows CE ........................................ 79
9.3. Byte Ordering ................................................................................................................ 79
9.3.1. Introduction to Endianness ................................................................................. 79
9.3.2. WinDriver Byte Ordering Macros ..................................................................... 80
9.3.3. Macros for PCI Target Access ........................................................................... 80
9.3.4. Macros for PCI Master Access .......................................................................... 81
10. Improving Performance ......................................................................................................... 83
10.1. Overview ..................................................................................................................... 83
10.1.1. Performance Improvement Checklist ............................................................... 83
10.2. Improving the Performance of a User-Mode Driver ................................................... 84
10.2.1. Using Direct Access to Memory-Mapped Regions .......................................... 84
10.2.2. Block Transfers and Grouping Multiple Transfers .......................................... 85
10.2.3. Performing 64-Bit Data Transfers .................................................................... 86
11. Understanding the Kernel PlugIn .......................................................................................... 87
11.1. Background ................................................................................................................. 87
11.2. Do I Need to Write a Kernel PlugIn Driver? ............................................................. 87
11.3. What Kind of Performance Can I Expect? ................................................................. 88
11.4. Overview of the Development Process ....................................................................... 88
11.5. The Kernel PlugIn Architecture .................................................................................. 88
剩余314页未读,继续阅读
资源评论
- ninjacat032015-12-17介绍的还算全面,要是有API就更好了
- luhonghui_acm2013-06-14文件提权,就是翻译太少
- lishmeng20112015-05-14太好用了非常谢了
- lhxingqijiu2012-09-26没有想象中翻译的多,只是翻译了一小部分,不过还是感谢楼主的辛苦翻译和分享。
SUNNYANGHANLIN
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功