pnpinfo.h revision 29615
11590Srgrimes/* 21590Srgrimes * Copyright (c) 1996, Sujal M. Patel 31590Srgrimes * All rights reserved. 41590Srgrimes * 51590Srgrimes * Redistribution and use in source and binary forms, with or without 61590Srgrimes * modification, are permitted provided that the following conditions 71590Srgrimes * are met: 81590Srgrimes * 1. Redistributions of source code must retain the above copyright 91590Srgrimes * notice, this list of conditions and the following disclaimer. 101590Srgrimes * 2. Redistributions in binary form must reproduce the above copyright 111590Srgrimes * notice, this list of conditions and the following disclaimer in the 121590Srgrimes * documentation and/or other materials provided with the distribution. 131590Srgrimes * 3. All advertising materials mentioning features or use of this software 141590Srgrimes * must display the following acknowledgement: 151590Srgrimes * This product includes software developed by Sujal M. Patel 161590Srgrimes * 4. Neither the name of the author nor the names of any co-contributors 171590Srgrimes * may be used to endorse or promote products derived from this software 181590Srgrimes * without specific prior written permission. 191590Srgrimes * 201590Srgrimes * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 211590Srgrimes * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 221590Srgrimes * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 231590Srgrimes * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 241590Srgrimes * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 251590Srgrimes * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 261590Srgrimes * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 271590Srgrimes * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 281590Srgrimes * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 291590Srgrimes * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3087701Smarkm * SUCH DAMAGE. 3187701Smarkm * 3287701Smarkm * $Id: pnpinfo.h,v 1.1 1996/01/08 00:48:32 smpatel Exp $ 3387701Smarkm */ 341590Srgrimes 3528370Scharnier 361590Srgrimes/* Maximum Number of PnP Devices. 6 should be plenty */ 371590Srgrimes#define MAX_CARDS 6 3887701Smarkm 391590Srgrimes 401590Srgrimes/* Static ports */ 4187701Smarkm#define ADDRESS 0x279 4228370Scharnier#define WRITE_DATA 0xa79 431590Srgrimes 441590Srgrimes 451590Srgrimes/* PnP Registers. Write to ADDRESS and then use WRITE/READ_DATA */ 4687701Smarkm#define SET_RD_DATA 0x00 4728370Scharnier#define SERIAL_ISOLATION 0x01 4828370Scharnier#define WAKE 0x03 4928370Scharnier#define RESOURCE_DATA 0x04 501590Srgrimes#define STATUS 0x05 511590Srgrimes#define SET_CSN 0x06 52200419Sdelphij 5387701Smarkm/* Small Resource Item names */ 5428370Scharnier#define PNP_VERSION 0x1 5587701Smarkm#define LOG_DEVICE_ID 0x2 561590Srgrimes#define COMP_DEVICE_ID 0x3 571590Srgrimes#define IRQ_FORMAT 0x4 5892922Simp#define DMA_FORMAT 0x5 5992922Simp#define START_DEPEND_FUNC 0x6 6092922Simp#define END_DEPEND_FUNC 0x7 611590Srgrimes#define IO_PORT_DESC 0x8 621590Srgrimes#define FIXED_IO_PORT_DESC 0x9 631590Srgrimes#define SM_RES_RESERVED 0xa-0xd 6468617Sdg#define SM_VENDOR_DEFINED 0xe 651590Srgrimes#define END_TAG 0xf 661590Srgrimes 6768617Sdg/* Large Resource Item names */ 6850638Speter#define MEMORY_RANGE_DESC 0x1 692599Sache#define ID_STRING_ANSI 0x2 701590Srgrimes#define ID_STRING_UNICODE 0x3 711590Srgrimes#define LG_VENDOR_DEFINED 0x4 72102944Sdwmalone#define _32BIT_MEM_RANGE_DESC 0x5 731590Srgrimes#define _32BIT_FIXED_LOC_DESC 0x6 741590Srgrimes#define LG_RES_RESERVED 0x7-0x7f 751590Srgrimes