New README File for Generic Port I/O DriverLast reviewed: April 7, 1997Article ID: Q155341 |
3.50 3.51 4.00
WINDOWS NT
kbreadme
The information in this article applies to:
SUMMARYThe README file in the Windows NT DDK genport contains insufficient data. This article contains a new README file designed to assist inexperienced NT developers. It can also be a useful reference tool for experienced developers.
MORE INFORMATION
Generic Port I/O DriverIncluded with this file are: - a Windows NT device driver to provide simple access to 8- 16- and 32-bit IO ports.- some simple test programs that read from and write to ports. The following sample is based on an x86 machine. If you use a Power PC, a MIPS, or an Alpha machine, just replace the processor <i386> with <PPC> or <MIPS> or <ALPHA>. NOTE: This device driver provides an example of a minimal driver. Neither it nor the sample programs are intended to be used in a production environment. Rather, they are intended as a skeleton driver for those devices that do not use interrupts or DMA. Building the Driver and its Test Programs To compile the device driver:
Driver Installation Examples
c. Reboot a machine under test. When testing the gpdRead.exe or gpdWrite.exe, note that your driver is not loaded if an the error "Can't read from a device" appears on your screen. gpdRead and gpdWrite are defaulted to port address 300h. If this port has been claimed by another device, then the driver "genport.sys" won't be loaded and gpdRead and pgdWrite will not function. You can run "winmsd" to see if port address 300h is being used. If it is, go into the "genport" register entry to modify its port address to an unused address, and then reboot your machine. There should also be a message in the event log indicating that the driver didn't load if the conflict did occur. d. To test your genport driver, do the following: gpdRead -b 1 {This reads a byte from port 0301H } gpdWrite -b 1 {This writes a byte to port 0301H } |
KBCategory: kbreadme
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |