pr_pc.h 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /*
  2. *
  3. Copyright (c) Eicon Networks, 2002.
  4. *
  5. This source file is supplied for the use with
  6. Eicon Networks range of DIVA Server Adapters.
  7. *
  8. Eicon File Revision : 2.1
  9. *
  10. This program is free software; you can redistribute it and/or modify
  11. it under the terms of the GNU General Public License as published by
  12. the Free Software Foundation; either version 2, or (at your option)
  13. any later version.
  14. *
  15. This program is distributed in the hope that it will be useful,
  16. but WITHOUT ANY WARRANTY OF ANY KIND WHATSOEVER INCLUDING ANY
  17. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  18. See the GNU General Public License for more details.
  19. *
  20. You should have received a copy of the GNU General Public License
  21. along with this program; if not, write to the Free Software
  22. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  23. *
  24. */
  25. struct pr_ram {
  26. word NextReq; /* pointer to next Req Buffer */
  27. word NextRc; /* pointer to next Rc Buffer */
  28. word NextInd; /* pointer to next Ind Buffer */
  29. byte ReqInput; /* number of Req Buffers sent */
  30. byte ReqOutput; /* number of Req Buffers returned */
  31. byte ReqReserved; /* number of Req Buffers reserved */
  32. byte Int; /* ISDN-P interrupt */
  33. byte XLock; /* Lock field for arbitration */
  34. byte RcOutput; /* number of Rc buffers received */
  35. byte IndOutput; /* number of Ind buffers received */
  36. byte IMask; /* Interrupt Mask Flag */
  37. byte Reserved1[2]; /* reserved field, do not use */
  38. byte ReadyInt; /* request field for ready interrupt */
  39. byte Reserved2[12]; /* reserved field, do not use */
  40. byte InterfaceType; /* interface type 1=16K interface */
  41. word Signature; /* ISDN-P initialized indication */
  42. byte B[1]; /* buffer space for Req,Ind and Rc */
  43. };
  44. typedef struct {
  45. word next;
  46. byte Req;
  47. byte ReqId;
  48. byte ReqCh;
  49. byte Reserved1;
  50. word Reference;
  51. byte Reserved[8];
  52. PBUFFER XBuffer;
  53. } REQ;
  54. typedef struct {
  55. word next;
  56. byte Rc;
  57. byte RcId;
  58. byte RcCh;
  59. byte Reserved1;
  60. word Reference;
  61. byte Reserved2[8];
  62. } RC;
  63. typedef struct {
  64. word next;
  65. byte Ind;
  66. byte IndId;
  67. byte IndCh;
  68. byte MInd;
  69. word MLength;
  70. word Reference;
  71. byte RNR;
  72. byte Reserved;
  73. dword Ack;
  74. PBUFFER RBuffer;
  75. } IND;