next up previous contents
Next: 1.3 How Fast Can Up: 1. WinDriver Overview Previous: 1.1 Introduction to WinDriver   Contents

Subsections


1.2 Background


1.2.1 The Challenge

In protected operating systems such as Windows, Linux and Solaris, a programmer cannot access hardware directly from the application level (user mode), where development work is usually done. Hardware can only be accessed from within the operating system itself (kernel mode or Ring-0), utilizing software modules called device drivers. In order to access a custom hardware device from the application level, a programmer must do the following:


1.2.2 The WinDriver Solution

Easy Development:
WinDriver enables Windows, Windows CE, Linux and Solaris programmers to create PCI/PCMCIA/CardBus/ISA/EISA/CompactPCI/PCI Express based device drivers in an extremely short time. WinDriver allows you to create your driver in the familiar user-mode environment, using MSDEV/Visual C/C++, MSDEV .NET, Borland C++ Builder, Borland Delphi, Visual Basic 6.0, MS eMbedded Visual C++, MS Platform Builder C++, GCC, or any other appropriate compiler. You do not need to have any device driver knowledge, nor do you have to be familiar with operating system internals, kernel programming, the DDK, ETK or DDI/DKI.

Cross Platform:
The driver created with WinDriver will run on Windows 98/Me/2000/XP/Server 2003/Vista, Windows CE.NET, Windows Embedded CE v6.00, Windows Mobile 5.0/6.0, Linux and Solaris. In other words - write it once, run it on many platforms.

Friendly Wizards:
DriverWizard (included) is a graphical diagnostics tool that lets you view/define the device's resources and test the communication with the hardware with just a few mouse clicks, before writing a single line of code. Once the device is operating to your satisfaction, DriverWizard creates the skeletal driver source code, giving access functions to all the resources on the hardware.

Kernel-Mode Performance:
WinDriver's API is optimized for performance.
For drivers that need kernel-mode performance, WinDriver offers the Kernel PlugIn. This powerful feature enables you to create and debug your code in user mode and run the performance-critical parts of your code (such as the interrupt handling or access to I/O mapped memory ranges) in kernel mode, thereby achieving kernel-mode performance (zero performance degradation). This unique feature allows the developer to run user-mode code in the OS kernel without having to learn how the kernel works. For a detailed overview of this feature, see Chapter 11.
Kernel PlugIn is not implemented under Windows CE. In this operating system there is no separation between kernel mode and user mode, therefore top performance can be achieved without using the Kernel PlugIn.
To improve the interrupt handling rate on Windows CE, follow the instructions in section 9.2.8.1 of the manual.


next up previous contents
Next: 1.3 How Fast Can Up: 1. WinDriver Overview Previous: 1.1 Introduction to WinDriver   Contents