From a47521a3ede91ef06bf7938722c490893d5458f6 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Sun, 17 Jun 2012 23:12:19 +0200 Subject: experimental acpi support for apic irq routing --- sys/include/aml.h | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 sys/include/aml.h (limited to 'sys/include/aml.h') diff --git a/sys/include/aml.h b/sys/include/aml.h new file mode 100644 index 000000000..e1cd9c335 --- /dev/null +++ b/sys/include/aml.h @@ -0,0 +1,36 @@ +#pragma lib "libaml.a" +#pragma src "/sys/src/libaml" + +/* + * b uchar* buffer amllen() returns number of bytes + * s char* string amllen() is strlen() + * i uvlong* integer + * p void** package amllen() is # of elements + * r void* region + * f void* field + * u void* bufferfield + * N void* name + * R void* reference + */ +int amltag(void *); +void* amlval(void *); +uvlong amlint(void *); +int amllen(void *); + +void amlinit(void); +void amlexit(void); + +int amlload(uchar *data, int len); +void* amlwalk(void *dot, char *name); +int amleval(void *dot, char *fmt, ...); +void amlenum(void *dot, char *seg, int (*proc)(void *, void *), void *arg); + +void* amlroot; +int amldebug; + +#pragma varargck type "V" void* +#pragma varargck type "N" void* + +/* to be provided by operating system */ +extern void* amlalloc(int); +extern void amlfree(void*); -- cgit v1.2.3