Plug-And-Play-HOWTO.Pdf
Total Page:16
File Type:pdf, Size:1020Kb
Plug-and-Play-HOWTO Plug-and-Play-HOWTO Table of Contents Plug-and-Play-HOWTO....................................................................................................................................1 David S. Lawyer mailto:dave@lafn.org..................................................................................................1 1. Introduction..........................................................................................................................................1 2. What PnP Should Do: Allocate "Bus-Resources"...............................................................................1 3. Setting up a PnP BIOS.........................................................................................................................1 4. How to Deal with PnP Cards...............................................................................................................2 5. Tell the Driver the Configuration ??....................................................................................................2 6. How Do I Find Devices and How Are They Configured?...................................................................2 7. PCI Interrupts.......................................................................................................................................2 8. PnP for External and Plug-in Devices.................................................................................................3 9. Error Messages.....................................................................................................................................3 10. Interrupt Sharing and Interrupt Conflicts...........................................................................................3 11. Appendix............................................................................................................................................3 1. Introduction..........................................................................................................................................3 1.1 1. Copyright, Trademarks, Disclaimer, & Credits.............................................................................3 Copyright...........................................................................................................................................3 Disclaimer.........................................................................................................................................4 Trademarks........................................................................................................................................4 Credits...............................................................................................................................................4 1.2 Future Plans; You Can Help..............................................................................................................4 1.3 New Versions of this HOWTO..........................................................................................................4 1.4 New in Recent Versions.....................................................................................................................4 1.5 General Introduction. Do you need this HOWTO?...........................................................................5 2. What PnP Should Do: Allocate "Bus-Resources"...............................................................................6 2.1 What is Plug-and-Play (PnP)?...........................................................................................................6 2.2 Hardware Devices and Communication with them..........................................................................6 2.3 Addresses...........................................................................................................................................7 2.4 I/O Addresses (principles relevant to other resources too)................................................................7 2.5 Memory Ranges................................................................................................................................8 2.6 IRQs --Overview...............................................................................................................................9 2.7 DMA (Direct Memory Access) or Bus Mastering..........................................................................10 2.8 DMA Channels (not for PCI bus)...................................................................................................10 2.9 "Resources" for both Device and Driver.........................................................................................10 2.10 Resources are Limited....................................................................................................................11 Ideal Computers..............................................................................................................................11 Real Computers...............................................................................................................................11 2.11 Second Introduction to PnP...........................................................................................................12 2.12 How Pnp Works (simplified).........................................................................................................12 2.13 Starting Up the PC.........................................................................................................................13 2.14 Buses..............................................................................................................................................14 2.15 How Linux Does PnP...................................................................................................................14 2.16 Problems with Linux PnP..............................................................................................................15 3. Setting up a PnP BIOS......................................................................................................................16 3.1 Do you have a PnP operating system?............................................................................................16 Linux prior to the 2.4 kernel...........................................................................................................16 Windows 2000 and XP....................................................................................................................16 MS Windows 95, 98 (and Me ?).....................................................................................................17 3.2 Assigning Resources by the BIOS..................................................................................................18 i Plug-and-Play-HOWTO Table of Contents Plug-and-Play-HOWTO 3.3 Reset the configuration?.................................................................................................................18 4. How to Deal with PnP Cards.............................................................................................................19 4.1 Introduction to Dealing with PnP Devices.......................................................................................19 4.2 Device Driver Configures, Reserving Resources...........................................................................19 4.3 /sys User Interface Configures........................................................................................................19 4.4 BIOS Configures.............................................................................................................................20 Intro to Using the BIOS to Configure PnP......................................................................................20 The BIOS's ESCD Database..........................................................................................................20 Using Windows to set the ESCD...................................................................................................21 Adding a New Device (under Linux or Windows).........................................................................22 4.5 ISA cards only: Disable PnP ?........................................................................................................22 4.6 ISA Bus: Isapnp (part of isapnptools).............................................................................................22 4.7 PCI Utilities....................................................................................................................................23 4.8 Windows Configures......................................................................................................................23 4.9 PnP Software/Documents...............................................................................................................24 5. Tell the Driver the Configuration ??.................................................................................................24 5.1 Introduction......................................................................................................................................24 5.2 Serial Port Driver Example..............................................................................................................25 6. How Do I Find Devices and How Are They Configured?................................................................25 6.1 Finding and How-Configured Are Related......................................................................................26