Modules/UDI - Fixed kernel-land compile errors
authorJohn Hodge <[email protected]>
Tue, 1 Oct 2013 06:41:57 +0000 (14:41 +0800)
committerJohn Hodge <[email protected]>
Tue, 1 Oct 2013 06:41:57 +0000 (14:41 +0800)
KernelLand/Modules/Interfaces/UDI/Makefile
KernelLand/Modules/Interfaces/UDI/include/udi_physio.h
KernelLand/Modules/Interfaces/UDI/trans/bus_pci.c

index dde172c..57160b4 100644 (file)
@@ -17,3 +17,9 @@ OBJ += $(LIB_OBJS:%=udi_lib/%) $(TRANS_OBJS:%=trans/%)
 NAME = UDI
 
 -include ../Makefile.tpl
+
+ifeq ($(ARCHDIR),x86)
+ CPPFLAGS += -DUDI_ABI_is_ia32
+else
+ $(error TODO: Support other UDI ABIs [$(ARCHDIR) unsupported])
+endif
index 818257e..84b684b 100644 (file)
@@ -10,7 +10,7 @@
 // DMA Core
 typedef _udi_handle_t  udi_dma_handle_t;
 #define        UDI_NULL_DMA_HANDLE     _NULL_HANDLE
-typedef Uint64 udi_busaddr64_t;        //!< \note Opaque
+typedef uint64_t       udi_busaddr64_t;        //!< \note Opaque
 typedef struct udi_scgth_element_32_s  udi_scgth_element_32_t;
 typedef struct udi_scgth_element_64_s  udi_scgth_element_64_t;
 typedef struct udi_scgth_s     udi_scgth_t;
index 96e1462..b586947 100644 (file)
@@ -7,6 +7,7 @@
  */
 #include <udi.h>
 #include <udi_physio.h>
+#include <acess.h>
 #include <drv_pci.h>   // acess
 
 // === MACROS ===

UCC git Repository :: git.ucc.asn.au