qmi-enums-private.h 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
  2. /*
  3. * uqmi -- tiny QMI support implementation
  4. *
  5. * This library is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU Lesser General Public
  7. * License as published by the Free Software Foundation; either
  8. * version 2 of the License, or (at your option) any later version.
  9. *
  10. * This library is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. * Lesser General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU Lesser General Public
  16. * License along with this library; if not, write to the
  17. * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  18. * Boston, MA 02110-1301 USA.
  19. *
  20. * Copyright (C) 2012 Google Inc.
  21. * Copyright (C) 2012-2017 Aleksander Morgado <aleksander@aleksander.es>
  22. */
  23. #ifndef _LIBQMI_GLIB_QMI_ENUMS_PRIVATE_H_
  24. #define _LIBQMI_GLIB_QMI_ENUMS_PRIVATE_H_
  25. /*****************************************************************************/
  26. /* QMI Control */
  27. /**
  28. * QmiCtlDataFormat:
  29. * @QMI_CTL_DATA_FORMAT_QOS_FLOW_HEADER_ABSENT: QoS header absent
  30. * @QMI_CTL_DATA_FORMAT_QOS_FLOW_HEADER_PRESENT: QoS header present
  31. *
  32. * Controls whether the network port data format includes a QoS header or not.
  33. * Should normally be set to ABSENT.
  34. */
  35. typedef enum {
  36. QMI_CTL_DATA_FORMAT_QOS_FLOW_HEADER_ABSENT = 0,
  37. QMI_CTL_DATA_FORMAT_QOS_FLOW_HEADER_PRESENT = 1,
  38. } QmiCtlDataFormat;
  39. /**
  40. * QmiCtlDataLinkProtocol:
  41. * @QMI_CTL_DATA_LINK_PROTOCOL_802_3: data frames formatted as 802.3 Ethernet
  42. * @QMI_CTL_DATA_LINK_PROTOCOL_RAW_IP: data frames are raw IP packets
  43. *
  44. * Determines the network port data format.
  45. */
  46. typedef enum {
  47. QMI_CTL_DATA_LINK_PROTOCOL_UNKNOWN = 0,
  48. QMI_CTL_DATA_LINK_PROTOCOL_802_3 = 1,
  49. QMI_CTL_DATA_LINK_PROTOCOL_RAW_IP = 2,
  50. } QmiCtlDataLinkProtocol;
  51. /**
  52. * QmiCtlFlag:
  53. * @QMI_CTL_FLAG_NONE: None.
  54. * @QMI_CTL_FLAG_RESPONSE: Message is a response.
  55. * @QMI_CTL_FLAG_INDICATION: Message is an indication.
  56. *
  57. * QMI flags in messages of the %QMI_SERVICE_CTL service.
  58. */
  59. typedef enum {
  60. QMI_CTL_FLAG_NONE = 0,
  61. QMI_CTL_FLAG_RESPONSE = 1 << 0,
  62. QMI_CTL_FLAG_INDICATION = 1 << 1
  63. } QmiCtlFlag;
  64. /**
  65. * QmiServiceFlag:
  66. * @QMI_SERVICE_FLAG_NONE: None.
  67. * @QMI_SERVICE_FLAG_COMPOUND: Message is compound.
  68. * @QMI_SERVICE_FLAG_RESPONSE: Message is a response.
  69. * @QMI_SERVICE_FLAG_INDICATION: Message is an indication.
  70. *
  71. * QMI flags in messages which are not of the %QMI_SERVICE_CTL service.
  72. */
  73. typedef enum {
  74. QMI_SERVICE_FLAG_NONE = 0,
  75. QMI_SERVICE_FLAG_COMPOUND = 1 << 0,
  76. QMI_SERVICE_FLAG_RESPONSE = 1 << 1,
  77. QMI_SERVICE_FLAG_INDICATION = 1 << 2
  78. } QmiServiceFlag;
  79. #endif /* _LIBQMI_GLIB_QMI_ENUMS_PRIVATE_H_ */