pnpinfo.h revision 50964
138032Speter/*
238032Speter * Copyright (c) 1996, Sujal M. Patel
338032Speter * All rights reserved.
438032Speter *
564562Sgshapiro * Redistribution and use in source and binary forms, with or without
638032Speter * modification, are permitted provided that the following conditions
738032Speter * are met:
838032Speter * 1. Redistributions of source code must retain the above copyright
938032Speter *    notice, this list of conditions and the following disclaimer.
1038032Speter * 2. Redistributions in binary form must reproduce the above copyright
1138032Speter *    notice, this list of conditions and the following disclaimer in the
1238032Speter *    documentation and/or other materials provided with the distribution.
1338032Speter * 3. All advertising materials mentioning features or use of this software
1438032Speter *    must display the following acknowledgement:
1538032Speter *      This product includes software developed by Sujal M. Patel
1638032Speter * 4. Neither the name of the author nor the names of any co-contributors
1738032Speter *    may be used to endorse or promote products derived from this software
1838032Speter *    without specific prior written permission.
1938032Speter *
2038032Speter * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
2164562Sgshapiro * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2238032Speter * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2338032Speter * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
2438032Speter * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2564562Sgshapiro * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2638032Speter * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27182352Sgshapiro * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2838032Speter * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2964562Sgshapiro * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
3038032Speter * SUCH DAMAGE.
3164562Sgshapiro *
3238032Speter * $FreeBSD: head/contrib/pnpinfo/pnpinfo.h 50964 1999-09-05 17:27:05Z peter $
3338032Speter */
3438032Speter
3538032Speter
3638032Speter/* Maximum Number of PnP Devices.  6 should be plenty */
3764562Sgshapiro#define MAX_CARDS 6
3864562Sgshapiro
39182352Sgshapiro
4038032Speter/* Static ports */
4164562Sgshapiro#define ADDRESS			0x279
4238032Speter#define WRITE_DATA		0xa79
4364562Sgshapiro
4464562Sgshapiro
45182352Sgshapiro/* PnP Registers.  Write to ADDRESS and then use WRITE/READ_DATA */
4638032Speter#define SET_RD_DATA		0x00
47120256Sgshapiro#define SERIAL_ISOLATION	0x01
48120256Sgshapiro#define WAKE			0x03
4938032Speter#define	RESOURCE_DATA		0x04
50120256Sgshapiro#define STATUS			0x05
51120256Sgshapiro#define SET_CSN			0x06
52120256Sgshapiro
53120256Sgshapiro/* Small Resource Item names */
54120256Sgshapiro#define PNP_VERSION		0x1
55120256Sgshapiro#define LOG_DEVICE_ID		0x2
56120256Sgshapiro#define COMP_DEVICE_ID		0x3
57120256Sgshapiro#define IRQ_FORMAT		0x4
5838032Speter#define DMA_FORMAT		0x5
5964562Sgshapiro#define START_DEPEND_FUNC	0x6
6038032Speter#define END_DEPEND_FUNC		0x7
61182352Sgshapiro#define IO_PORT_DESC		0x8
6238032Speter#define FIXED_IO_PORT_DESC	0x9
6364562Sgshapiro#define SM_RES_RESERVED		0xa-0xd
6464562Sgshapiro#define SM_VENDOR_DEFINED	0xe
6564562Sgshapiro#define END_TAG			0xf
6664562Sgshapiro
6764562Sgshapiro/* Large Resource Item names */
6864562Sgshapiro#define MEMORY_RANGE_DESC	0x1
6964562Sgshapiro#define ID_STRING_ANSI		0x2
7064562Sgshapiro#define ID_STRING_UNICODE	0x3
7138032Speter#define LG_VENDOR_DEFINED	0x4
7238032Speter#define _32BIT_MEM_RANGE_DESC	0x5
7338032Speter#define _32BIT_FIXED_LOC_DESC	0x6
7464562Sgshapiro#define LG_RES_RESERVED		0x7-0x7f
7564562Sgshapiro