remove __P() from this directory
[dragonfly.git] / sys / dev / disk / i386 / bs / bshw.lst
CommitLineData
984263bc
MD
1/* $NecBSD: bshw.lst,v 1.1 1997/07/18 09:19:05 kmatsuda Exp $ */
2/* $NetBSD$ */
38e94a25 3/* $DragonFly: src/sys/dev/disk/i386/bs/Attic/bshw.lst,v 1.2 2003/08/27 10:35:16 rob Exp $ */
984263bc
MD
4/*
5 * [NetBSD for NEC PC98 series]
6 * Copyright (c) 1994, 1995, 1996 NetBSD/pc98 porting staff.
7 * 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. The name of the author may not be used to endorse or promote products
18 * derived from this software without specific prior written permission.
19 *
20 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
21 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23 * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
24 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
25 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
28 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
29 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30 * POSSIBILITY OF SUCH DAMAGE.
31 */
32/*
33 * Copyright (c) 1994, 1995, 1996 Naofumi HONDA. All rights reserved.
34 */
35
36static struct bshw bshw_generic = {
37 BSHW_SYNC_RELOAD,
38
39 0,
40
41 NULL,
42 NULL,
43 NULL,
44};
45
38e94a25
RG
46static int bshw_dma_init_sc98 (struct bs_softc *);
47static void bshw_dma_start_sc98 (struct bs_softc *);
48static void bshw_dma_stop_sc98 (struct bs_softc *);
984263bc
MD
49static struct bshw bshw_sc98 = {
50 BSHW_DOUBLE_DMACHAN,
51
52 0x60,
53
54 bshw_dma_init_sc98,
55 bshw_dma_start_sc98,
56 bshw_dma_stop_sc98,
57};
58
38e94a25 59static int bshw_dma_init_texa (struct bs_softc *);
984263bc
MD
60static struct bshw bshw_texa = {
61 BSHW_DOUBLE_DMACHAN,
62
63 0x60,
64
65 bshw_dma_init_texa,
66 NULL,
67 NULL,
68};
69
38e94a25
RG
70static void bshw_dma_start_elecom (struct bs_softc *);
71static void bshw_dma_stop_elecom (struct bs_softc *);
984263bc
MD
72static struct bshw bshw_elecom = {
73 0,
74
75 0x38,
76
77 NULL,
78 bshw_dma_start_elecom,
79 bshw_dma_stop_elecom,
80};
81
82static struct bshw bshw_lc_smit = {
83 BSHW_SMFIFO | BSHW_DOUBLE_DMACHAN,
84
85 0x60,
86
87 NULL,
88 NULL,
89 NULL,
90};
91
92static struct bshw bshw_lha20X = {
93 BSHW_DOUBLE_DMACHAN,
94
95 0x60,
96
97 NULL,
98 NULL,
99 NULL,
100};
101
102/* hw tabs */
103static dvcfg_hw_t bshw_hwsel_array[] = {
104/* 0x00 */ &bshw_generic,
105/* 0x01 */ &bshw_sc98,
106/* 0x02 */ &bshw_texa,
107/* 0x03 */ &bshw_elecom,
108/* 0x04 */ &bshw_lc_smit,
109/* 0x05 */ &bshw_lha20X,
110};
111
112struct dvcfg_hwsel bshw_hwsel = {
113 DVCFG_HWSEL_SZ(bshw_hwsel_array),
114 bshw_hwsel_array
115};