/drivers/char/ip2/ip2types.h

https://bitbucket.org/evzijst/gittest · C Header · 57 lines · 24 code · 8 blank · 25 comment · 0 complexity · 0450f78bb73ba02ce411bb5af58af3a3 MD5 · raw file

  1. /*******************************************************************************
  2. *
  3. * (c) 1998 by Computone Corporation
  4. *
  5. ********************************************************************************
  6. *
  7. *
  8. * PACKAGE: Linux tty Device Driver for IntelliPort II family of multiport
  9. * serial I/O controllers.
  10. *
  11. * DESCRIPTION: Driver constants and type definitions.
  12. *
  13. * NOTES:
  14. *
  15. *******************************************************************************/
  16. #ifndef IP2TYPES_H
  17. #define IP2TYPES_H
  18. //*************
  19. //* Constants *
  20. //*************
  21. // Define some limits for this driver. Ports per board is a hardware limitation
  22. // that will not change. Current hardware limits this to 64 ports per board.
  23. // Boards per driver is a self-imposed limit.
  24. //
  25. #define IP2_MAX_BOARDS 4
  26. #define IP2_PORTS_PER_BOARD ABS_MOST_PORTS
  27. #define IP2_MAX_PORTS (IP2_MAX_BOARDS*IP2_PORTS_PER_BOARD)
  28. #define ISA 0
  29. #define PCI 1
  30. #define EISA 2
  31. //********************
  32. //* Type Definitions *
  33. //********************
  34. typedef struct tty_struct * PTTY;
  35. typedef wait_queue_head_t PWAITQ;
  36. typedef unsigned char UCHAR;
  37. typedef unsigned int UINT;
  38. typedef unsigned short USHORT;
  39. typedef unsigned long ULONG;
  40. typedef struct
  41. {
  42. short irq[IP2_MAX_BOARDS];
  43. unsigned short addr[IP2_MAX_BOARDS];
  44. int type[IP2_MAX_BOARDS];
  45. #ifdef CONFIG_PCI
  46. struct pci_dev *pci_dev[IP2_MAX_BOARDS];
  47. #endif
  48. } ip2config_t;
  49. #endif