GpakHpi.h 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /*
  2. * Copyright (c) 2001, Adaptive Digital Technologies, Inc.
  3. *
  4. * File Name: GpakHpi.h
  5. *
  6. * Description:
  7. * This file contains common definitions related to the G.PAK interface
  8. * between a host processor and a DSP processor via the Host Port Interface.
  9. *
  10. * Version: 1.0
  11. *
  12. * Revision History:
  13. * 10/17/01 - Initial release.
  14. *
  15. * This program has been released under the terms of the GPL version 2 by
  16. * permission of Adaptive Digital Technologies, Inc.
  17. *
  18. */
  19. /*
  20. * See http://www.asterisk.org for more information about
  21. * the Asterisk project. Please do not directly contact
  22. * any of the maintainers of this project for assistance;
  23. * the project provides a web site, mailing lists and IRC
  24. * channels for your use.
  25. *
  26. * This program is free software, distributed under the terms of
  27. * the GNU General Public License Version 2 as published by the
  28. * Free Software Foundation. See the LICENSE file included with
  29. * this program for more details.
  30. */
  31. #ifndef _GPAKHPI_H /* prevent multiple inclusion */
  32. #define _GPAKHPI_H
  33. /* Definition of G.PAK Command/Reply message type codes. */
  34. #define MSG_NULL_REPLY 0 /* Null Reply (unsupported Command) */
  35. #define MSG_SYS_CONFIG_RQST 1 /* System Configuration Request */
  36. #define MSG_SYS_CONFIG_REPLY 2 /* System Configuration Reply */
  37. #define MSG_READ_SYS_PARMS 3 /* Read System Parameters */
  38. #define MSG_READ_SYS_PARMS_REPLY 4 /* Read System Parameters Reply */
  39. #define MSG_WRITE_SYS_PARMS 5 /* Write System Parameters */
  40. #define MSG_WRITE_SYS_PARMS_REPLY 6 /* Write System Parameters Reply */
  41. #define MSG_CONFIGURE_PORTS 7 /* Configure Serial Ports */
  42. #define MSG_CONFIG_PORTS_REPLY 8 /* Configure Serial Ports Reply */
  43. #define MSG_CONFIGURE_CHANNEL 9 /* Configure Channel */
  44. #define MSG_CONFIG_CHAN_REPLY 10 /* Configure Channel Reply */
  45. #define MSG_TEAR_DOWN_CHANNEL 11 /* Tear Down Channel */
  46. #define MSG_TEAR_DOWN_REPLY 12 /* Tear Down Channel Reply */
  47. #define MSG_CHAN_STATUS_RQST 13 /* Channel Status Request */
  48. #define MSG_CHAN_STATUS_REPLY 14 /* Channel Status Reply */
  49. #define MSG_TEST_MODE 17 /* Configure/Perform Test Mode */
  50. #define MSG_TEST_REPLY 18 /* Configure/Perform Test Mode Reply */
  51. #define MSG_ALG_CONTROL 27 /* algorithm control */
  52. #define MSG_ALG_CONTROL_REPLY 28 /* algorithm control reply */
  53. #define MSG_GET_TXCID_ADDRESS 29 /* get tx cid buffer start address */
  54. #define MSG_GET_TXCID_ADDRESS_REPLY 30 /* get tx cid buffer start addr reply */
  55. #define MSG_PING 35 /* ping command */
  56. #define MSG_PING_REPLY 36 /* ping command reply */
  57. #define MSG_SERIAL_TXVAL 37 /* transmit serial fixed value */
  58. #define MSG_SERIAL_TXVAL_REPLY 38 /* transmit serial fixed value reply */
  59. #define MSG_TDM_LOOPBACK 39 /* tdm loopback control */
  60. #define MSG_TDM_LOOPBACK_REPLY 40 /* tdm loopback control reply */
  61. #define MSG_RESET_USAGE_STATS 41 /* reset cpu usage stats */
  62. #define MSG_RESET_USAGE_STATS_REPLY 42 /* reset cpu usage stats reply */
  63. #define MSG_RESET_FRAME_STATS 47 /* reset framing stats */
  64. #define MSG_RESET_FRAME_STATS_REPLY 48 /* reset framing stats reply */
  65. #define MSG_READ_DSP_MEMORY 49 /* read small section of DSP's memory */
  66. #define MSG_READ_DSP_MEMORY_REPLY 50 /* read memory reply */
  67. #define MSG_ACCESSGPIO 51
  68. #define MSG_ACCESSGPIO_REPLY 52
  69. #endif /* prevent multiple inclusion */