hfc_2bs0.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /* $Id: hfc_2bs0.h,v 1.5.2.2 2004/01/12 22:52:26 keil Exp $
  2. *
  3. * specific defines for CCD's HFC 2BS0
  4. *
  5. * Author Karsten Keil
  6. * Copyright by Karsten Keil <keil@isdn4linux.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. #define HFC_CTMT 0xe0
  13. #define HFC_CIRM 0xc0
  14. #define HFC_CIP 0x80
  15. #define HFC_Z1 0x00
  16. #define HFC_Z2 0x08
  17. #define HFC_Z_LOW 0x00
  18. #define HFC_Z_HIGH 0x04
  19. #define HFC_F1_INC 0x28
  20. #define HFC_FIFO_IN 0x2c
  21. #define HFC_F1 0x30
  22. #define HFC_F2 0x34
  23. #define HFC_F2_INC 0x38
  24. #define HFC_FIFO_OUT 0x3c
  25. #define HFC_B1 0x00
  26. #define HFC_B2 0x02
  27. #define HFC_REC 0x01
  28. #define HFC_SEND 0x00
  29. #define HFC_CHANNEL(ch) (ch ? HFC_B2 : HFC_B1)
  30. #define HFC_STATUS 0
  31. #define HFC_DATA 1
  32. #define HFC_DATA_NODEB 2
  33. /* Status (READ) */
  34. #define HFC_BUSY 0x01
  35. #define HFC_TIMINT 0x02
  36. #define HFC_EXTINT 0x04
  37. /* CTMT (Write) */
  38. #define HFC_CLTIMER 0x10
  39. #define HFC_TIM50MS 0x08
  40. #define HFC_TIMIRQE 0x04
  41. #define HFC_TRANSB2 0x02
  42. #define HFC_TRANSB1 0x01
  43. /* CIRM (Write) */
  44. #define HFC_RESET 0x08
  45. #define HFC_MEM8K 0x10
  46. #define HFC_INTA 0x01
  47. #define HFC_INTB 0x02
  48. #define HFC_INTC 0x03
  49. #define HFC_INTD 0x04
  50. #define HFC_INTE 0x05
  51. #define HFC_INTF 0x06
  52. extern void main_irq_hfc(struct BCState *bcs);
  53. extern void inithfc(struct IsdnCardState *cs);
  54. extern void releasehfc(struct IsdnCardState *cs);