aml-build-stub.c 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. /*
  2. * ACPI aml builder stubs for platforms that don't support ACPI.
  3. *
  4. * Copyright (c) 2006 Fabrice Bellard
  5. * Copyright (c) 2016 Red Hat, Inc.
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; either version 2 of the License, or
  10. * (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License along
  18. * with this program; if not, see <http://www.gnu.org/licenses/>.
  19. */
  20. #include "qemu/osdep.h"
  21. #include "hw/acpi/acpi.h"
  22. #include "hw/acpi/aml-build.h"
  23. void aml_append(Aml *parent_ctx, Aml *child)
  24. {
  25. }
  26. Aml *aml_return(Aml *val)
  27. {
  28. return NULL;
  29. }
  30. Aml *aml_method(const char *name, int arg_count, AmlSerializeFlag sflag)
  31. {
  32. return NULL;
  33. }
  34. Aml *aml_resource_template(void)
  35. {
  36. return NULL;
  37. }
  38. Aml *aml_device(const char *name_format, ...)
  39. {
  40. return NULL;
  41. }
  42. Aml *aml_eisaid(const char *str)
  43. {
  44. return NULL;
  45. }
  46. Aml *aml_name_decl(const char *name, Aml *val)
  47. {
  48. return NULL;
  49. }
  50. Aml *aml_io(AmlIODecode dec, uint16_t min_base, uint16_t max_base,
  51. uint8_t aln, uint8_t len)
  52. {
  53. return NULL;
  54. }
  55. Aml *aml_irq_no_flags(uint8_t irq)
  56. {
  57. return NULL;
  58. }
  59. Aml *aml_interrupt(AmlConsumerAndProducer con_and_pro,
  60. AmlLevelAndEdge level_and_edge,
  61. AmlActiveHighAndLow high_and_low, AmlShared shared,
  62. uint32_t *irq_list, uint8_t irq_count)
  63. {
  64. return NULL;
  65. }
  66. Aml *aml_memory32_fixed(uint32_t addr, uint32_t size,
  67. AmlReadAndWrite read_and_write)
  68. {
  69. return NULL;
  70. }
  71. Aml *aml_int(const uint64_t val)
  72. {
  73. return NULL;
  74. }
  75. Aml *aml_package(uint8_t num_elements)
  76. {
  77. return NULL;
  78. }
  79. Aml *aml_dma(AmlDmaType typ, AmlDmaBusMaster bm, AmlTransferSize sz,
  80. uint8_t channel)
  81. {
  82. return NULL;
  83. }
  84. Aml *aml_buffer(int buffer_size, uint8_t *byte_list)
  85. {
  86. return NULL;
  87. }