blob: 9a6bcc4952f0653fbc8dafad010b3c87b9be11bf [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
2 * cs_types.h
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 *
8 * The initial developer of the original code is David A. Hinds
9 * <dahinds@users.sourceforge.net>. Portions created by David A. Hinds
10 * are Copyright (C) 1999 David A. Hinds. All Rights Reserved.
11 *
12 * (C) 1999 David A. Hinds
13 */
14
15#ifndef _LINUX_CS_TYPES_H
16#define _LINUX_CS_TYPES_H
17
18#ifdef __KERNEL__
19#include <linux/types.h>
20#else
21#include <sys/types.h>
22#endif
23
Haavard Skinnemoen330a9c12007-10-16 11:23:51 +020024#if defined(__arm__) || defined(__mips__) || defined(__avr32__)
Linus Torvalds1da177e2005-04-16 15:20:36 -070025/* This (ioaddr_t) is exposed to userspace & hence cannot be changed. */
26typedef u_int ioaddr_t;
27#else
28typedef u_short ioaddr_t;
29#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -070030
31typedef u_short socket_t;
32typedef u_int event_t;
33typedef u_char cisdata_t;
34typedef u_short page_t;
35
Dominik Brodowskie12a9a92005-07-07 17:59:01 -070036struct pcmcia_device;
37typedef struct pcmcia_device *client_handle_t;
Linus Torvalds1da177e2005-04-16 15:20:36 -070038
39struct window_t;
40typedef struct window_t *window_handle_t;
41
42struct region_t;
43typedef struct region_t *memory_handle_t;
44
45#ifndef DEV_NAME_LEN
46#define DEV_NAME_LEN 32
47#endif
48
49typedef char dev_info_t[DEV_NAME_LEN];
50
51#endif /* _LINUX_CS_TYPES_H */