FreeBSD kernel PCCARD device code
pccardreg.h
Go to the documentation of this file.
1/* $NetBSD: pcmciareg.h,v 1.7 1998/10/29 09:45:52 enami Exp $ */
2/* $FreeBSD$ */
3
4/*-
5 * SPDX-License-Identifier: BSD-4-Clause
6 *
7 * Copyright (c) 1997 Marc Horowitz. All rights reserved.
8 *
9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions
11 * are met:
12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer.
14 * 2. Redistributions in binary form must reproduce the above copyright
15 * notice, this list of conditions and the following disclaimer in the
16 * documentation and/or other materials provided with the distribution.
17 * 3. All advertising materials mentioning features or use of this software
18 * must display the following acknowledgement:
19 * This product includes software developed by Marc Horowitz.
20 * 4. The name of the author may not be used to endorse or promote products
21 * derived from this software without specific prior written permission.
22 *
23 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
24 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
25 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
26 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
27 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
28 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
29 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
30 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
32 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33 */
34
35/*
36 * Card Configuration Registers
37 */
38
39#define PCCARD_CCR_OPTION 0x00
40#define PCCARD_CCR_OPTION_SRESET 0x80
41#define PCCARD_CCR_OPTION_LEVIREQ 0x40
42#define PCCARD_CCR_OPTION_CFINDEX 0x3F
43#define PCCARD_CCR_OPTION_IREQ_ENABLE 0x04
44#define PCCARD_CCR_OPTION_ADDR_DECODE 0x02
45#define PCCARD_CCR_OPTION_FUNC_ENABLE 0x01
46#define PCCARD_CCR_STATUS 0x02
47#define PCCARD_CCR_STATUS_PINCHANGED 0x80
48#define PCCARD_CCR_STATUS_SIGCHG 0x40
49#define PCCARD_CCR_STATUS_IOIS8 0x20
50#define PCCARD_CCR_STATUS_RESERVED1 0x10
51#define PCCARD_CCR_STATUS_AUDIO 0x08
52#define PCCARD_CCR_STATUS_PWRDWN 0x04
53#define PCCARD_CCR_STATUS_INTR 0x02
54#define PCCARD_CCR_STATUS_INTRACK 0x01
55#define PCCARD_CCR_PIN 0x04
56#define PCCARD_CCR_PIN_CBVD1 0x80
57#define PCCARD_CCR_PIN_CBVD2 0x40
58#define PCCARD_CCR_PIN_CRDYBSY 0x20
59#define PCCARD_CCR_PIN_CWPROT 0x10
60#define PCCARD_CCR_PIN_RBVD1 0x08
61#define PCCARD_CCR_PIN_RBVD2 0x04
62#define PCCARD_CCR_PIN_RRDYBSY 0x02
63#define PCCARD_CCR_PIN_RWPROT 0x01
64#define PCCARD_CCR_SOCKETCOPY 0x06
65#define PCCARD_CCR_SOCKETCOPY_RESERVED 0x80
66#define PCCARD_CCR_SOCKETCOPY_COPY_MASK 0x70
67#define PCCARD_CCR_SOCKETCOPY_COPY_SHIFT 4
68#define PCCARD_CCR_SOCKETCOPY_SOCKET_MASK 0x0F
69#define PCCARD_CCR_EXTSTATUS 0x08
70#define PCCARD_CCR_IOBASE0 0x0A
71#define PCCARD_CCR_IOBASE1 0x0C
72#define PCCARD_CCR_IOBASE2 0x0E
73#define PCCARD_CCR_IOBASE3 0x10
74#define PCCARD_CCR_IOSIZE 0x12
75
76#define PCCARD_CCR_SIZE 0x14