b1lli.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /* $Id: b1lli.h,v 1.8.8.3 2001/09/23 22:25:05 kai Exp $
  2. *
  3. * ISDN lowlevel-module for AVM B1-card.
  4. *
  5. * Copyright 1996 by Carsten Paeth (calle@calle.in-berlin.de)
  6. *
  7. * This software may be used and distributed according to the terms
  8. * of the GNU General Public License, incorporated herein by reference.
  9. *
  10. */
  11. #ifndef _B1LLI_H_
  12. #define _B1LLI_H_
  13. /*
  14. * struct for loading t4 file
  15. */
  16. typedef struct avmb1_t4file {
  17. int len;
  18. unsigned char *data;
  19. } avmb1_t4file;
  20. typedef struct avmb1_loaddef {
  21. int contr;
  22. avmb1_t4file t4file;
  23. } avmb1_loaddef;
  24. typedef struct avmb1_loadandconfigdef {
  25. int contr;
  26. avmb1_t4file t4file;
  27. avmb1_t4file t4config;
  28. } avmb1_loadandconfigdef;
  29. typedef struct avmb1_resetdef {
  30. int contr;
  31. } avmb1_resetdef;
  32. typedef struct avmb1_getdef {
  33. int contr;
  34. int cardtype;
  35. int cardstate;
  36. } avmb1_getdef;
  37. /*
  38. * struct for adding new cards
  39. */
  40. typedef struct avmb1_carddef {
  41. int port;
  42. int irq;
  43. } avmb1_carddef;
  44. #define AVM_CARDTYPE_B1 0
  45. #define AVM_CARDTYPE_T1 1
  46. #define AVM_CARDTYPE_M1 2
  47. #define AVM_CARDTYPE_M2 3
  48. typedef struct avmb1_extcarddef {
  49. int port;
  50. int irq;
  51. int cardtype;
  52. int cardnr; /* for HEMA/T1 */
  53. } avmb1_extcarddef;
  54. #define AVMB1_LOAD 0 /* load image to card */
  55. #define AVMB1_ADDCARD 1 /* add a new card - OBSOLETE */
  56. #define AVMB1_RESETCARD 2 /* reset a card */
  57. #define AVMB1_LOAD_AND_CONFIG 3 /* load image and config to card */
  58. #define AVMB1_ADDCARD_WITH_TYPE 4 /* add a new card, with cardtype */
  59. #define AVMB1_GET_CARDINFO 5 /* get cardtype */
  60. #define AVMB1_REMOVECARD 6 /* remove a card - OBSOLETE */
  61. #define AVMB1_REGISTERCARD_IS_OBSOLETE
  62. #endif /* _B1LLI_H_ */