pciide_cmd_reg.h revision 1.2 1 1.2 bouyer /* $NetBSD: pciide_cmd_reg.h,v 1.2 1998/10/12 16:09:21 bouyer Exp $ */
2 1.2 bouyer
3 1.2 bouyer /*
4 1.2 bouyer * Copyright (c) 1998 Manuel Bouyer.
5 1.2 bouyer *
6 1.2 bouyer * Redistribution and use in source and binary forms, with or without
7 1.2 bouyer * modification, are permitted provided that the following conditions
8 1.2 bouyer * are met:
9 1.2 bouyer * 1. Redistributions of source code must retain the above copyright
10 1.2 bouyer * notice, this list of conditions and the following disclaimer.
11 1.2 bouyer * 2. Redistributions in binary form must reproduce the above copyright
12 1.2 bouyer * notice, this list of conditions and the following disclaimer in the
13 1.2 bouyer * documentation and/or other materials provided with the distribution.
14 1.2 bouyer * 3. All advertising materials mentioning features or use of this software
15 1.2 bouyer * must display the following acknowledgement:
16 1.2 bouyer * This product includes software developed by the University of
17 1.2 bouyer * California, Berkeley and its contributors.
18 1.2 bouyer * 4. Neither the name of the University nor the names of its contributors
19 1.2 bouyer * may be used to endorse or promote products derived from this software
20 1.2 bouyer * without specific prior written permission.
21 1.2 bouyer *
22 1.2 bouyer * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
23 1.2 bouyer * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 1.2 bouyer * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 1.2 bouyer * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
26 1.2 bouyer * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 1.2 bouyer * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28 1.2 bouyer * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29 1.2 bouyer * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 1.2 bouyer * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 1.2 bouyer * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 1.2 bouyer * SUCH DAMAGE.
33 1.2 bouyer *
34 1.2 bouyer */
35 1.2 bouyer
36 1.2 bouyer /*
37 1.2 bouyer * Registers definitions for CMD Technologies's PCI 064x IDE controllers.
38 1.2 bouyer * Available from http://www.cmd.com/
39 1.2 bouyer */
40 1.2 bouyer
41 1.2 bouyer /* Configuration and drive 0 setup */
42 1.2 bouyer #define CMD_CONF_CTRL0 0x50
43 1.2 bouyer #define CMD_CONF_REV_MASK 0x00000003
44 1.2 bouyer #define CMD_CONF_DRV0_INTR 0x00000004
45 1.2 bouyer #define CMD_CONF_DEVID 0x00000018
46 1.2 bouyer #define CMD_CONF_VESAPRT 0x00000020
47 1.2 bouyer #define CMD_CONF_DSA1 0x00000040
48 1.2 bouyer #define CMD_CONF_DSA0 0x00000080
49 1.2 bouyer
50 1.2 bouyer #define CMD_CONF_HR_FIFO 0x00000100
51 1.2 bouyer #define CMD_CONF_HW_FIFO 0x00000200
52 1.2 bouyer #define CMD_CONF_DEVSEL 0x00000400
53 1.2 bouyer #define CMD_CONF_2PORT 0x00000800
54 1.2 bouyer #define CMD_CONF_PAR 0x00001000
55 1.2 bouyer #define CMD_CONF_HW_HLD 0x00002000
56 1.2 bouyer #define CMD_CONF_DRV0_RAHEAD 0x00004000
57 1.2 bouyer #define CMD_CONF_DRV1_RAHEAD 0x00008000
58 1.2 bouyer
59 1.2 bouyer #define CMD_CONF_CB_TIM_OFF 16
60 1.2 bouyer #define CMD_CONF_CB_REC_OFF 20
61 1.2 bouyer
62 1.2 bouyer #define CMD_DRV0_ADDRSET_OFF 30
63 1.2 bouyer
64 1.2 bouyer
65