index 98d4c8337b211b430db1f8993d83d8f7daf3e5b2..9a0f99decc325da265cf14db280254f9d37a5514 100644 (file)
-/************************************************
- * FILE: netapi_vm.h
- * PURPOSE: netapi [virtual] memory management
- ************************************************/
-#ifndef __NETAPI_VM_H__
-#define __NETAPI_VM_H__
-#include "netapi_tune.h"
-#include "ti/drv/nwal/nwal.h"
-
-/* Function to initialize memory allocator */
-nwal_Bool_t netapi_VM_memAllocInit
-(
- uint8_t *addr, /* Physical address */
- uint32_t size /* Size of block */
-);
-
-/* Function to allocate memory */
-void* netapi_VM_memAlloc
-(
- uint32_t size, /* Size of block needed */
- uint32_t align /* Alignment of the block needed */
-);
-
-
-/* Function to map the give physical address to virtual memory space */
-void *netapi_VM_memMap
-(
- void *addr, /* Physical address */
- uint32_t size /* Size of block */
-);
-
-//todo: put in netapi global region somewhere
-
-/* Global variables to hold virtual address of various hw subsystems */
-extern void *netapi_VM_qmssCfgVaddr;
-extern void *netapi_VM_qmssDataVaddr;
-extern void *netapi_VM_srioCfgVaddr;
-extern void *netapi_VM_passCfgVaddr;
-
-/* Physical address of the [only] memory pool */
-extern uint8_t *netapi_VM_mem_start_phy;
-
-/* virtual address of the [only] memory pool */
-extern uint8_t *netapi_VM_mem_start;
-
-//qm regions: netapi defines two regions, 0,1
-extern unsigned char *netapi_VM_QMemLocalDescRam;
-extern unsigned char *netapi_VM_QMemGlobalDescRam;
-#define NETAPI_GLOBAL_REGION 0
-#define NETAPI_LOCAL_REGION 1
-
-#endif
-
+/************************************************\r
+ * FILE: netapi_vm.h\r
+ * PURPOSE: netapi [virtual] memory management\r
+ ************************************************/\r
+#ifndef __NETAPI_VM_H__\r
+#define __NETAPI_VM_H__\r
+#include "netapi_tune.h"\r
+#include "ti/drv/nwal/nwal.h"\r
+\r
+/* Function to initialize memory allocator */\r
+nwal_Bool_t netapi_VM_memAllocInit\r
+(\r
+ uint8_t *addr, /* Physical address */\r
+ uint32_t size /* Size of block */\r
+);\r
+\r
+/* Function to allocate memory */\r
+void* netapi_VM_memAlloc\r
+(\r
+ uint32_t size, /* Size of block needed */\r
+ uint32_t align /* Alignment of the block needed */\r
+);\r
+\r
+\r
+/* Function to map the give physical address to virtual memory space */\r
+void *netapi_VM_memMap\r
+(\r
+ void *addr, /* Physical address */\r
+ uint32_t size /* Size of block */\r
+);\r
+\r
+//todo: put in netapi global region somewhere\r
+\r
+/* Global variables to hold virtual address of various hw subsystems */\r
+extern void *netapi_VM_qmssCfgVaddr;\r
+extern void *netapi_VM_qmssDataVaddr;\r
+extern void *netapi_VM_srioCfgVaddr;\r
+extern void *netapi_VM_passCfgVaddr;\r
+\r
+/* Physical address of the [only] memory pool */\r
+extern uint8_t *netapi_VM_mem_start_phy;\r
+\r
+/* virtual address of the [only] memory pool */\r
+extern uint8_t *netapi_VM_mem_start;\r
+\r
+//qm regions: netapi defines two regions, 0,1\r
+extern unsigned char *netapi_VM_QMemLocalDescRam;\r
+extern unsigned char *netapi_VM_QMemGlobalDescRam;\r
+#define NETAPI_GLOBAL_REGION 0 \r
+#define NETAPI_LOCAL_REGION 1 \r
+\r
+#endif\r
+\r