Fix xdma_if.m in an ACPI only kernel

- We depend on header polution to include sys/malloc.h. Include it
   directly.
 - Only define FDT-specific fuctions when building a FDT kernel.

Sponsored by:	Innovate UK
This commit is contained in:
Andrew Turner 2022-10-27 17:17:20 +01:00
parent 7b43fba03a
commit 91e2614a71

View File

@ -32,6 +32,8 @@
#include "opt_platform.h"
#include <sys/malloc.h>
#include <machine/bus.h>
#ifdef FDT
@ -81,6 +83,7 @@ METHOD int channel_submit_sg {
uint32_t sg_n;
};
#ifdef FDT
#
# Notify driver we have machine-dependend data.
#
@ -90,6 +93,7 @@ METHOD int ofw_md_data {
int ncells;
void **data;
};
#endif
#
# Allocate both virtual and harware channels.