1 /* 2 * cs_types.h 1.18 2000/06/12 21:55:40 3 * 4 * The contents of this file are subject to the Mozilla Public License 5 * Version 1.1 (the "License"); you may not use this file except in 6 * compliance with the License. You may obtain a copy of the License 7 * at http://www.mozilla.org/MPL/ 8 * 9 * Software distributed under the License is distributed on an "AS IS" 10 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See 11 * the License for the specific language governing rights and 12 * limitations under the License. 13 * 14 * The initial developer of the original code is David A. Hinds 15 * <dahinds@users.sourceforge.net>. Portions created by David A. Hinds 16 * are Copyright (C) 1999 David A. Hinds. All Rights Reserved. 17 * 18 * Alternatively, the contents of this file may be used under the 19 * terms of the GNU General Public License version 2 (the "GPL"), in which 20 * case the provisions of the GPL are applicable instead of the 21 * above. If you wish to allow the use of your version of this file 22 * only under the terms of the GPL and not to allow others to use 23 * your version of this file under the MPL, indicate your decision by 24 * deleting the provisions above and replace them with the notice and 25 * other provisions required by the GPL. If you do not delete the 26 * provisions above, a recipient may use your version of this file 27 * under either the MPL or the GPL. 28 */ 29 30 #ifndef _LINUX_CS_TYPES_H 31 #define _LINUX_CS_TYPES_H 32 33 #ifdef __KERNEL__ 34 #include <linux/types.h> 35 #else 36 #include <sys/types.h> 37 #endif 38 39 #if defined(__arm__) || defined(__mips__) 40 typedef u_int ioaddr_t; 41 #else 42 typedef u_short ioaddr_t; 43 #endif 44 45 typedef u_short socket_t; 46 typedef u_int event_t; 47 typedef u_char cisdata_t; 48 typedef u_short page_t; 49 50 struct client_t; 51 typedef struct client_t *client_handle_t; 52 53 struct window_t; 54 typedef struct window_t *window_handle_t; 55 56 struct region_t; 57 typedef struct region_t *memory_handle_t; 58 59 struct eraseq_t; 60 typedef struct eraseq_t *eraseq_handle_t; 61 62 #ifndef DEV_NAME_LEN 63 #define DEV_NAME_LEN 32 64 #endif 65 66 typedef char dev_info_t[DEV_NAME_LEN]; 67 68 #endif /* _LINUX_CS_TYPES_H */ 69