152506Simp/* $NetBSD: pcmciareg.h,v 1.7 1998/10/29 09:45:52 enami Exp $ */ 252506Simp/* $FreeBSD$ */ 352506Simp 4139749Simp/*- 552506Simp * Copyright (c) 1997 Marc Horowitz. All rights reserved. 652506Simp * 752506Simp * Redistribution and use in source and binary forms, with or without 852506Simp * modification, are permitted provided that the following conditions 952506Simp * are met: 1052506Simp * 1. Redistributions of source code must retain the above copyright 1152506Simp * notice, this list of conditions and the following disclaimer. 1252506Simp * 2. Redistributions in binary form must reproduce the above copyright 1352506Simp * notice, this list of conditions and the following disclaimer in the 1452506Simp * documentation and/or other materials provided with the distribution. 1552506Simp * 3. All advertising materials mentioning features or use of this software 1652506Simp * must display the following acknowledgement: 1752506Simp * This product includes software developed by Marc Horowitz. 1852506Simp * 4. The name of the author may not be used to endorse or promote products 1952506Simp * derived from this software without specific prior written permission. 2052506Simp * 2152506Simp * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 2252506Simp * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 2352506Simp * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 2452506Simp * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 2552506Simp * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 2652506Simp * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 2752506Simp * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 2852506Simp * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 2952506Simp * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 3052506Simp * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 3152506Simp */ 3252506Simp 3352506Simp/* 3452506Simp * Card Configuration Registers 3552506Simp */ 3652506Simp 3752506Simp#define PCCARD_CCR_OPTION 0x00 3852506Simp#define PCCARD_CCR_OPTION_SRESET 0x80 3952506Simp#define PCCARD_CCR_OPTION_LEVIREQ 0x40 4052506Simp#define PCCARD_CCR_OPTION_CFINDEX 0x3F 4152506Simp#define PCCARD_CCR_OPTION_IREQ_ENABLE 0x04 4252506Simp#define PCCARD_CCR_OPTION_ADDR_DECODE 0x02 4352506Simp#define PCCARD_CCR_OPTION_FUNC_ENABLE 0x01 4452506Simp#define PCCARD_CCR_STATUS 0x02 4552506Simp#define PCCARD_CCR_STATUS_PINCHANGED 0x80 4652506Simp#define PCCARD_CCR_STATUS_SIGCHG 0x40 4752506Simp#define PCCARD_CCR_STATUS_IOIS8 0x20 4852506Simp#define PCCARD_CCR_STATUS_RESERVED1 0x10 4952506Simp#define PCCARD_CCR_STATUS_AUDIO 0x08 5052506Simp#define PCCARD_CCR_STATUS_PWRDWN 0x04 5152506Simp#define PCCARD_CCR_STATUS_INTR 0x02 5252506Simp#define PCCARD_CCR_STATUS_INTRACK 0x01 5352506Simp#define PCCARD_CCR_PIN 0x04 5452506Simp#define PCCARD_CCR_PIN_CBVD1 0x80 5552506Simp#define PCCARD_CCR_PIN_CBVD2 0x40 5652506Simp#define PCCARD_CCR_PIN_CRDYBSY 0x20 5752506Simp#define PCCARD_CCR_PIN_CWPROT 0x10 5852506Simp#define PCCARD_CCR_PIN_RBVD1 0x08 5952506Simp#define PCCARD_CCR_PIN_RBVD2 0x04 6052506Simp#define PCCARD_CCR_PIN_RRDYBSY 0x02 6152506Simp#define PCCARD_CCR_PIN_RWPROT 0x01 6252506Simp#define PCCARD_CCR_SOCKETCOPY 0x06 6352506Simp#define PCCARD_CCR_SOCKETCOPY_RESERVED 0x80 6452506Simp#define PCCARD_CCR_SOCKETCOPY_COPY_MASK 0x70 6552506Simp#define PCCARD_CCR_SOCKETCOPY_COPY_SHIFT 4 6652506Simp#define PCCARD_CCR_SOCKETCOPY_SOCKET_MASK 0x0F 6752506Simp#define PCCARD_CCR_EXTSTATUS 0x08 6852506Simp#define PCCARD_CCR_IOBASE0 0x0A 6952506Simp#define PCCARD_CCR_IOBASE1 0x0C 7052506Simp#define PCCARD_CCR_IOBASE2 0x0E 7152506Simp#define PCCARD_CCR_IOBASE3 0x10 7252506Simp#define PCCARD_CCR_IOSIZE 0x12 7352506Simp 7452506Simp#define PCCARD_CCR_SIZE 0x14 75