Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 03 Jan 1996 09:56:30 -0800
From:      "Amancio Hasty Jr." <hasty@rah.star-gate.com>
To:        Sujal Patel <smpatel@wam.umd.edu>
Cc:        Poul-Henning Kamp <phk@critter.tfs.com>, "FreeBSD Hacker's list" <freebsd-hackers@freebsd.org>
Subject:   Re: FreeDetect & Plug n Play 
Message-ID:  <199601031756.JAA05548@rah.star-gate.com>
In-Reply-To: Your message of "Wed, 03 Jan 1996 10:24:14 EST." <Pine.BSF.3.91.960103101120.2728A-100000@sl-000.sl.cybercomm.net> 

next in thread | previous in thread | raw e-mail | index | archive | help
>>> Sujal Patel said:
 > On Wed, 3 Jan 1996, Poul-Henning Kamp wrote:
 > 
 > > > > Is anyone looking into Plug&Play?
 > > > 
 > > > That will be nice, though I daresay that it's the ISA devices we'll
 > > > be having the most fun with.
 > > 
 > > There actually is a P&P for ISA, where the motherboard completely disables
 > > all but one slot, so you know what you found where.
 > 
 > I have two PnP ISA Cards that do just this.   It's really annoying 
 > initializing these cards in DOS everytime I reboot.  I've got some code 
 > written, enough to detect the cards, isolate each one, and dump resource 
 > data..  Hopefully, this week I'll be able to at least get code to 
 > hardwire the cards down to a specfic IRQ, DMA, IOPORT...
 > 
 > The interesting task will trying to use PnP cards as they were intended
 > (to configure themselves automatically).  As far as I can tell, the DOS
 > configuration manager uses these criteria to determine what resources to
 > assign to what cards. 
 > 
 > 1:  Consult EISA-bios configuration information (if this system is EISA).
 > 2:  Consult configuration written by Intel's ICU program.
 > 3:  For IO-Ports, conflict detection/resolution seems to be part of 
 > 	Intel's PnP specification.
 > 4:  Of course, remember what resouces you assign other PnP cards, and 
 > 	don't conflict with those cards.
 > 

   5. Consult http://www.intel.com/IAL/plugplay/  8)

Here is a partial dump of the configuration information available on 
a PnP device. the program is intel's icu.exe.


I just took out the device name and identifier of my card and of course
Patel's code can get the exact same configuration information . Although
so far we have to decode the binary stream which the card dumps and this is
not hard to do. My interest at this moment is just to initialize my
card.  The Plug&Play have an i/o port which when set it will detect i/o 
conflict 8)

Enter choice - Vendor ID:     FOO0001
Serial Number: 00000001
Checksum (reported): 0x14
PNP Version:   1.0
Vendor Ver.:   10
Device Description: <name of device> Plug & Play
Device ID         : FOO0000
Supports I/O Range Checking
Vendor Defined Logical Device Control Registers:
None

Device Description: Wave & Codec

Dependant Function 0
Best Possible Configuration

IRQ lines supported:

More....
0xB 0xC 0xF 
DMA Channels supported: 
5 

DMA Channel Characteristics:
16 bit only
Logical device is not a bus master
DMA may not execute in count by byte mode
DMA may execute in count by word mode
Compatibility mode

DMA Channels supported: 
7 

DMA Channel Characteristics:
16 bit only
Logical deA Channel Characteristics:
16 bit only
Logical dedevice is not a bus master
DMA may not execute in count by byte mode
DMA may execute in count by word mode
Compatibility mode


I/O Descriptors: 

More....
Card decodes full 16-bit ISA Address
Minimum base I/O Address: 0x220
Maximum base I/O Address: 0x220
Base I/O Address requires 0x1 byte alignment
Device requires 16 Continuous ports


I/O Descriptors: 
Card decodes full 16-bit ISA Address
Minimum base I/O Address: 0x320
Maximum base I/O Address: 0x320
Base I/O Address requires 0x1 byte alignment
Device requires 8 Continuous ports


I/O Descriptors: 
Card decodes full 16-bit ISA Address
Minimum base I/O Address: 0x32C
Maximum base I/O Address: 0x32C
Base I/O Address requires 0x1 byte alignment
Device requires 4 Continuous ports


Dependant Function 1

More....
Acceptable Configuration

IRQ lines supported:
0xA 0xB 0xC 0xF 
DMA Channels supported: 
1 3 5 6 7 

DMA Channel Characteristics:
8 and 16 bit
Logical device is not a bus master
DMA may execute in count by by a bus master
DMA may execute in count by byyte mode
DMA may execute in count by word mode
Compatibility mode

DMA Channels supported: 
1 3 5 6 7 

DMA Channel Characteristics:
8 and 16 bit
Logical device is not a bus master
DMA may execute in count by byte mode
DMA may execute in count by word mode
Compatibility mode
...


	Have ball,
	Amancio




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199601031756.JAA05548>