b1lli.h 1.7 KB

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