[158] | 1 | /********************************************************************************/ |
---|
[165] | 2 | /* File : giet_config.h */ |
---|
| 3 | /* Author : Alain Greiner */ |
---|
[238] | 4 | /* Date : 26/03/2013 */ |
---|
[158] | 5 | /********************************************************************************/ |
---|
[165] | 6 | /* Define various configuration parameters for the GIET */ |
---|
[158] | 7 | /********************************************************************************/ |
---|
| 8 | |
---|
[258] | 9 | #ifndef _GIET_VM_CONFIG_H |
---|
| 10 | #define _GIET_VM_CONFIG_H |
---|
[158] | 11 | |
---|
[215] | 12 | /* hardware parameters */ |
---|
| 13 | #include "hard_config.h" |
---|
| 14 | |
---|
[158] | 15 | /* Debug parameters */ |
---|
| 16 | |
---|
[364] | 17 | #define BOOT_DEBUG_MAPPING 0 /* trace map_info checking */ |
---|
[389] | 18 | #define BOOT_DEBUG_PT 0 /* trace page tables initialisation */ |
---|
| 19 | #define BOOT_DEBUG_VOBJS 0 /* trace vobjs initialisation */ |
---|
| 20 | #define BOOT_DEBUG_SCHED 0 /* trace schedulers initialisation */ |
---|
[364] | 21 | #define BOOT_DEBUG_PERI 0 /* trace peripherals initialisation */ |
---|
[258] | 22 | #define BOOT_DEBUG_ELF 0 /* trace .elf files loading */ |
---|
[158] | 23 | |
---|
[389] | 24 | #define GIET_DEBUG_INIT 0 /* trace kernel initialisation */ |
---|
[418] | 25 | |
---|
[365] | 26 | #define GIET_DEBUG_FAT 0 /* trace fat accesses */ |
---|
[475] | 27 | #define GIET_DEBUG_SIMPLE_LOCK 0 /* trace kernel simple_lock accesses */ |
---|
| 28 | #define GIET_DEBUG_SPIN_LOCK 0 /* trace kernel spin_lock accesses */ |
---|
| 29 | #define GIET_DEBUG_SBT_LOCK 0 /* trace kernel sbt_lock accesses */ |
---|
| 30 | #define GIET_DEBUG_SYS_MALLOC 0 /* trace kernel malloc accesses */ |
---|
[389] | 31 | #define GIET_DEBUG_SWITCH 0 /* trace context switchs */ |
---|
[364] | 32 | #define GIET_DEBUG_IRQS 0 /* trace interrupts */ |
---|
[238] | 33 | #define GIET_DEBUG_IOC_DRIVER 0 /* trace IOC accesses */ |
---|
[295] | 34 | #define GIET_DEBUG_TTY_DRIVER 0 /* trace TTY accesses */ |
---|
[238] | 35 | #define GIET_DEBUG_DMA_DRIVER 0 /* trace DMA accesses */ |
---|
[463] | 36 | #define GIET_DEBUG_NIC 0 /* trace NIC accesses */ |
---|
[445] | 37 | #define GIET_DEBUG_FBF_CMA 0 /* trace FBF_CMA accesses */ |
---|
[463] | 38 | |
---|
[475] | 39 | #define GIET_DEBUG_USER_MALLOC 0 /* trace malloc library */ |
---|
| 40 | #define GIET_DEBUG_USER_BARRIER 0 /* trace barrier library */ |
---|
| 41 | #define GIET_DEBUG_USER_MWMR 0 /* trace mwmr library */ |
---|
[463] | 42 | #define GIET_DEBUG_USER_LOCK 0 /* trace user locks access */ |
---|
[158] | 43 | |
---|
[160] | 44 | #define CONFIG_SRL_VERBOSITY TRACE |
---|
| 45 | |
---|
[158] | 46 | /* software parameters */ |
---|
| 47 | |
---|
[482] | 48 | #define GIET_ELF_BUFFER_SIZE 0x80000 /* buffer for .elf files (seg_boot_data) */ |
---|
[418] | 49 | #define GIET_IDLE_TASK_PERIOD 0x10000000 /* Idle Task message period */ |
---|
[258] | 50 | #define GIET_OPEN_FILES_MAX 16 /* max simultaneously open files */ |
---|
[418] | 51 | #define GIET_NB_VSPACE_MAX 16 /* max number of virtual spaces */ |
---|
[482] | 52 | #define GIET_TICK_VALUE 0x00100000 /* context switch period (cycles) */ |
---|
[249] | 53 | #define GIET_USE_IOMMU 0 /* IOMMU activated when non zero */ |
---|
[258] | 54 | #define GIET_NO_HARD_CC 0 /* No hard cache coherence when non zero */ |
---|
[463] | 55 | #define GIET_NIC_MAC4 0x12345678 /* 32 LSB bits of the MAC address */ |
---|
| 56 | #define GIET_NIC_MAC2 0xBEBE /* 16 MSB bits of the MAC address */ |
---|
[482] | 57 | #define GIET_LOCK_MAX_TICKET 1000000 /* max ticket value for queueing locks */ |
---|
[258] | 58 | |
---|
[166] | 59 | #endif |
---|
[158] | 60 | |
---|