Import 2.3.6
[davej-history.git] / include / linux / dmascc.h
blob01b46df731cea9b63247ee73a04e2382ad415c50
1 /*
2 * $Id: dmascc.h,v 1.1 1997/12/01 10:44:55 oe1kib Exp $
4 * Driver for high-speed SCC boards (those with DMA support)
5 * Copyright (C) 1997 Klaus Kudielka
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22 /* Ioctls */
23 #define SIOCGSCCPARAM SIOCDEVPRIVATE
24 #define SIOCSSCCPARAM (SIOCDEVPRIVATE+1)
26 /* Frequency of timer 0 */
27 #define TMR_0_HZ 25600
29 /* Configurable parameters */
30 struct scc_param {
31 int pclk_hz; /* frequency of BRG input (read-only - don't change) */
32 int brg_tc; /* baud rate generator terminal count - BRG disabled if < 0 */
33 int nrzi; /* 0 (nrz), 1 (nrzi) */
34 int clocks; /* see documentation */
35 int txdelay; /* [1/TMR_0_HZ] */
36 int txtime; /* [1/HZ] */
37 int sqdelay; /* [1/TMR_0_HZ] */
38 int waittime; /* [1/TMR_0_HZ] */
39 int slottime; /* [1/TMR_0_HZ] */
40 int persist; /* 0 ... 255 */
41 int dma; /* 1, 3 */