Deleted Added
full compact
tau32-ddk.h (154899) tau32-ddk.h (156143)
1/*
2 * DDK (Driver Development Kit) for Cronyx Tau32-PCI adapter.
3 *
1/*
2 * DDK (Driver Development Kit) for Cronyx Tau32-PCI adapter.
3 *
4 * Copyright (C) 2003-2005 Cronyx Engineering, http://www.cronyx.ru
4 * Copyright (C) 2003-2006 Cronyx Engineering, http://www.cronyx.ru
5 * All rights reserved.
6 *
7 * Author: Leo Yuriev <ly@cronyx.ru>, http://leo.yuriev.ru
8 *
5 * All rights reserved.
6 *
7 * Author: Leo Yuriev <ly@cronyx.ru>, http://leo.yuriev.ru
8 *
9 * $Cronyx: tau32-ddk.h,v 1.6 2005/07/15 15:01:26 rik Exp $
10 * $FreeBSD: head/sys/dev/ce/tau32-ddk.h 154899 2006-01-27 09:02:09Z rik $
9 * $Cronyx: tau32-ddk.h,v 1.2 2006/02/01 09:14:40 ly Exp $
10 * $Rik: tau32-ddk.h,v 1.7 2006/02/28 22:33:29 rik Exp $
11 * $FreeBSD: head/sys/dev/ce/tau32-ddk.h 156143 2006-03-01 09:50:20Z rik $
11 */
12
13#if defined(__GNUC__) || defined(__TURBOC__)
14# ifndef __int8
15# define __int8 char
16# endif
17# ifndef __int16
18# define __int16 short

--- 185 unchanged lines hidden (view full) ---

204#define TAU32_unframed_128 (1ul << 4)
205#define TAU32_unframed_256 (2ul << 4)
206#define TAU32_unframed_512 (3ul << 4)
207#define TAU32_unframed_1024 (4ul << 4)
208#define TAU32_unframed_2048 (5ul << 4)
209#define TAU32_unframed TAU32_unframed_2048
210#define TAU32_framed_no_cas (6ul << 4)
211#define TAU32_framed_cas_set (7ul << 4)
12 */
13
14#if defined(__GNUC__) || defined(__TURBOC__)
15# ifndef __int8
16# define __int8 char
17# endif
18# ifndef __int16
19# define __int16 short

--- 185 unchanged lines hidden (view full) ---

205#define TAU32_unframed_128 (1ul << 4)
206#define TAU32_unframed_256 (2ul << 4)
207#define TAU32_unframed_512 (3ul << 4)
208#define TAU32_unframed_1024 (4ul << 4)
209#define TAU32_unframed_2048 (5ul << 4)
210#define TAU32_unframed TAU32_unframed_2048
211#define TAU32_framed_no_cas (6ul << 4)
212#define TAU32_framed_cas_set (7ul << 4)
212#define TAU32_framed_cas_cross (8ul << 4)
213#define TAU32_framed_cas_pass (8ul << 4)
214#define TAU32_framed_cas_cross (9ul << 4)
213#define TAU32_framing_mode_mask 0x000000F0ul
214#define TAU32_monitor 0x00000100ul
215#define TAU32_higain 0x00000200ul
216#define TAU32_sa_bypass 0x00000400ul
217#define TAU32_si_bypass 0x00000800ul
218#define TAU32_cas_fe 0x00001000ul
219#define TAU32_ais_on_loss 0x00002000ul
220#define TAU32_cas_all_ones 0x00004000ul

--- 4 unchanged lines hidden (view full) ---

225#define TAU32_not_auto_ra 0x00080000ul
226#define TAU32_not_auto_dmra 0x00100000ul
227#define TAU32_ra 0x00200000ul
228#define TAU32_dmra 0x00400000ul
229#define TAU32_scrambler 0x00800000ul
230#define TAU32_tx_ami 0x01000000ul
231#define TAU32_rx_ami 0x02000000ul
232#define TAU32_ja_tx 0x04000000ul
215#define TAU32_framing_mode_mask 0x000000F0ul
216#define TAU32_monitor 0x00000100ul
217#define TAU32_higain 0x00000200ul
218#define TAU32_sa_bypass 0x00000400ul
219#define TAU32_si_bypass 0x00000800ul
220#define TAU32_cas_fe 0x00001000ul
221#define TAU32_ais_on_loss 0x00002000ul
222#define TAU32_cas_all_ones 0x00004000ul

--- 4 unchanged lines hidden (view full) ---

227#define TAU32_not_auto_ra 0x00080000ul
228#define TAU32_not_auto_dmra 0x00100000ul
229#define TAU32_ra 0x00200000ul
230#define TAU32_dmra 0x00400000ul
231#define TAU32_scrambler 0x00800000ul
232#define TAU32_tx_ami 0x01000000ul
233#define TAU32_rx_ami 0x02000000ul
234#define TAU32_ja_tx 0x04000000ul
233#define TAU32_crc4_mf_tx_only 0x08000000ul
234#define TAU32_crc4_mf_rx_only 0x10000000ul
235#define TAU32_crc4_mf (TAU32_crc4_mf_rx_only | TAU32_crc4_mf_tx_only)
235#define TAU32_crc4_mf_tx 0x08000000ul
236#define TAU32_crc4_mf_rx 0x10000000ul
237#define TAU32_crc4_mf (TAU32_crc4_mf_rx | TAU32_crc4_mf_tx)
236
237/* TAU32_SA_CROSS_VALUES */
238#define TAU32_SaDisable 0u
239#define TAU32_SaSystem 1u
240#define TAU32_SaIntA 2u
241#define TAU32_SaIntB 3u
242#define TAU32_SaAllZeros 4u
243

--- 23 unchanged lines hidden (view full) ---

267#define TAU32_LOS TAU32_RLOS
268#define TAU32_AIS TAU32_RUA1
269#define TAU32_LOF TAU32_RFAS
270#define TAU32_AIS16 TAU32_RSA1
271#define TAU32_LOFM TAU32_RCAS
272#define TAU32_FLOFM TAU32_RDMA
273
274/* TAU32_STATUS */
238
239/* TAU32_SA_CROSS_VALUES */
240#define TAU32_SaDisable 0u
241#define TAU32_SaSystem 1u
242#define TAU32_SaIntA 2u
243#define TAU32_SaIntB 3u
244#define TAU32_SaAllZeros 4u
245

--- 23 unchanged lines hidden (view full) ---

269#define TAU32_LOS TAU32_RLOS
270#define TAU32_AIS TAU32_RUA1
271#define TAU32_LOF TAU32_RFAS
272#define TAU32_AIS16 TAU32_RSA1
273#define TAU32_LOFM TAU32_RCAS
274#define TAU32_FLOFM TAU32_RDMA
275
276/* TAU32_STATUS */
275#define TAU32_FRCAS 0x0001u /* CAS framer searching for CAS MF */
276#define TAU32_CMWAITING 0x0002u /* Connection memory swap waiting */
277#define TAU32_CMPENDING 0x0004u /* Connection memory swap pending */
278#define TAU32_LED 0x0008u /* Let status (on/off) */
277#define TAU32_FRLOFM 0x0001u /* CAS framer searching for CAS MF */
278#define TAU32_CMWAITING 0x0002u /* Connection memory swap waiting */
279#define TAU32_CMPENDING 0x0004u /* Connection memory swap pending */
280#define TAU32_LED 0x0008u /* Led status (on/off) */
279
280typedef struct tag_TAU32_Controller TAU32_Controller;
281typedef struct tag_TAU32_UserRequest TAU32_UserRequest;
282typedef struct tag_TAU32_UserContext TAU32_UserContext;
283typedef union tag_TAU32_tsc TAU32_tsc;
284typedef struct tag_TAU32_FlatIoContext TAU32_FlatIoContext;
285typedef void(TAU32_CALLBACK_TYPE *TAU32_RequestCallback)(TAU32_UserContext *pContext, TAU32_UserRequest *pUserRequest);
286typedef void(TAU32_CALLBACK_TYPE *TAU32_NotifyCallback)(TAU32_UserContext *pContext, int Item, unsigned NotifyBits);

--- 228 unchanged lines hidden ---
281
282typedef struct tag_TAU32_Controller TAU32_Controller;
283typedef struct tag_TAU32_UserRequest TAU32_UserRequest;
284typedef struct tag_TAU32_UserContext TAU32_UserContext;
285typedef union tag_TAU32_tsc TAU32_tsc;
286typedef struct tag_TAU32_FlatIoContext TAU32_FlatIoContext;
287typedef void(TAU32_CALLBACK_TYPE *TAU32_RequestCallback)(TAU32_UserContext *pContext, TAU32_UserRequest *pUserRequest);
288typedef void(TAU32_CALLBACK_TYPE *TAU32_NotifyCallback)(TAU32_UserContext *pContext, int Item, unsigned NotifyBits);

--- 228 unchanged lines hidden ---