cs_types.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*
  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. #ifndef _LINUX_CS_TYPES_H
  15. #define _LINUX_CS_TYPES_H
  16. #ifdef __KERNEL__
  17. #include <linux/types.h>
  18. #else
  19. #include <sys/types.h>
  20. #endif
  21. #if defined(__arm__) || defined(__mips__)
  22. /* This (ioaddr_t) is exposed to userspace & hence cannot be changed. */
  23. typedef u_int ioaddr_t;
  24. #else
  25. typedef u_short ioaddr_t;
  26. #endif
  27. typedef unsigned long kio_addr_t;
  28. typedef u_short socket_t;
  29. typedef u_int event_t;
  30. typedef u_char cisdata_t;
  31. typedef u_short page_t;
  32. struct pcmcia_device;
  33. typedef struct pcmcia_device *client_handle_t;
  34. struct window_t;
  35. typedef struct window_t *window_handle_t;
  36. struct region_t;
  37. typedef struct region_t *memory_handle_t;
  38. #ifndef DEV_NAME_LEN
  39. #define DEV_NAME_LEN 32
  40. #endif
  41. typedef char dev_info_t[DEV_NAME_LEN];
  42. #endif /* _LINUX_CS_TYPES_H */