shchuko

Untitled

Sep 24th, 2020
448
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.10 KB | None | 0 0
  1. extern char* asl_compiler_path;
  2.  
  3. typedef int (*acpi_build_func_t)(int ncpu);
  4. typedef void (*dsdt_line_func_t)(const char *fmt, ...);
  5. typedef void (*dsdt_fixed_ioport_func_t)(uint16_t iobase, uint16_t length);
  6. typedef void (*dsdt_fixed_irq_func_t)(uint8_t irq);
  7. typedef void (*dsdt_fixed_mem32_func_t)(uint32_t base, uint32_t length);
  8. typedef void (*dsdt_indent_func_t)(int levels);
  9. typedef void (*dsdt_unindent_func_t)(int levels);
  10. typedef void (*dsdt_fixup_func_t)(int bus, uint16_t iobase, uint16_t iolimit, uint32_t membase32, uint32_t memlimit32,
  11.         uint64_t membase64, uint64_t memlimit64);
  12.  
  13. struct acpi_ops_t {
  14.     acpi_build_func_t acpi_build;
  15.     dsdt_line_func_t dsdt_line;
  16.     dsdt_fixed_ioport_func_t dsdt_fixed_ioport;
  17.     dsdt_fixed_irq_func_t dsdt_fixed_irq;
  18.     dsdt_fixed_mem32_func_t dsdt_fixed_mem32;
  19.     dsdt_indent_func_t dsdt_indent;
  20.     dsdt_unindent_func_t dsdt_unindent;
  21.     dsdt_fixup_func_t dsdt_fixup;
  22. };
  23.  
  24. extern struct acpi_ops_t acpi_ops;
  25. extern struct acpi_ops_t acpi_ops_compile;
  26. extern struct acpi_ops_t acpi_ops_prebuilt_aml;
  27.  
  28. void acpi_init(void);
  29. void sci_init(void);
  30.  
Add Comment
Please, Sign In to add comment