From 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Sat, 16 Apr 2005 15:20:36 -0700 Subject: Linux-2.6.12-rc2 Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip! --- include/linux/cyclomx.h | 80 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 include/linux/cyclomx.h (limited to 'include/linux/cyclomx.h') diff --git a/include/linux/cyclomx.h b/include/linux/cyclomx.h new file mode 100644 index 00000000000..04fa7dff079 --- /dev/null +++ b/include/linux/cyclomx.h @@ -0,0 +1,80 @@ +#ifndef _CYCLOMX_H +#define _CYCLOMX_H +/* +* cyclomx.h Cyclom 2X WAN Link Driver. +* User-level API definitions. +* +* Author: Arnaldo Carvalho de Melo +* +* Copyright: (c) 1998-2003 Arnaldo Carvalho de Melo +* +* Based on wanpipe.h by Gene Kozin +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License +* as published by the Free Software Foundation; either version +* 2 of the License, or (at your option) any later version. +* ============================================================================ +* 2000/07/13 acme remove crap #if KERNEL_VERSION > blah +* 2000/01/21 acme rename cyclomx_open to cyclomx_mod_inc_use_count +* and cyclomx_close to cyclomx_mod_dec_use_count +* 1999/05/19 acme wait_queue_head_t wait_stats(support for 2.3.*) +* 1999/01/03 acme judicious use of data types +* 1998/12/27 acme cleanup: PACKED not needed +* 1998/08/08 acme Version 0.0.1 +*/ + +#include +#include +#include + +#ifdef __KERNEL__ +/* Kernel Interface */ + +#include /* Cyclom 2X support module API definitions */ +#include /* Cyclom 2X firmware module definitions */ +#ifdef CONFIG_CYCLOMX_X25 +#include +#endif + +#define is_digit(ch) (((ch)>=(unsigned)'0'&&(ch)<=(unsigned)'9')?1:0) + +/* Adapter Data Space. + * This structure is needed because we handle multiple cards, otherwise + * static data would do it. + */ +struct cycx_device { + char devname[WAN_DRVNAME_SZ + 1];/* card name */ + struct cycx_hw hw; /* hardware configuration */ + struct wan_device wandev; /* WAN device data space */ + u32 state_tick; /* link state timestamp */ + spinlock_t lock; + char in_isr; /* interrupt-in-service flag */ + char buff_int_mode_unbusy; /* flag for carrying out dev_tint */ + wait_queue_head_t wait_stats; /* to wait for the STATS indication */ + void __iomem *mbox; /* -> mailbox */ + void (*isr)(struct cycx_device* card); /* interrupt service routine */ + int (*exec)(struct cycx_device* card, void* u_cmd, void* u_data); + union { +#ifdef CONFIG_CYCLOMX_X25 + struct { /* X.25 specific data */ + u32 lo_pvc; + u32 hi_pvc; + u32 lo_svc; + u32 hi_svc; + struct cycx_x25_stats stats; + spinlock_t lock; + u32 connection_keys; + } x; +#endif + } u; +}; + +/* Public Functions */ +void cycx_set_state(struct cycx_device *card, int state); + +#ifdef CONFIG_CYCLOMX_X25 +int cycx_x25_wan_init(struct cycx_device *card, wandev_conf_t *conf); +#endif +#endif /* __KERNEL__ */ +#endif /* _CYCLOMX_H */ -- cgit v1.2.3