Changeset 320 for soft/giet_vm/giet_drivers/fbf_driver.c
- Timestamp:
- Jun 10, 2014, 12:33:23 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_drivers/fbf_driver.c
r297 r320 19 19 // A CMA channel must be allocated to the task requesting it in the mapping_info, 20 20 // and stored in the task context. 21 // 22 // The SEG_FBF_BASE virtual address must be defined in hard_config.h file. 21 23 /////////////////////////////////////////////////////////////////////////////////// 22 // The seg_fbf_base virtual address must be defined in giet_vsegs.ld file.23 ///////////////////////////////////////////////////////////////////////////////////24 24 25 25 #include <giet_config.h> 26 #include <hard_config.h> 26 27 #include <fbf_driver.h> 27 28 #include <utils.h> … … 33 34 #include <vmem.h> 34 35 36 #if !defined(SEG_FBF_BASE) 37 # error: You must define SEG_FBF_BASE in the hard_config.h file 38 #endif 39 35 40 #if !defined(GIET_USE_IOMMU) 36 41 # error: You must define GIET_USE_IOMMU in the giet_config.h file … … 57 62 unsigned int length) 58 63 { 59 char* fbf_address = (char *) &seg_fbf_base+ offset;64 char* fbf_address = (char *)SEG_FBF_BASE + offset; 60 65 61 66 _memcpy( fbf_address, buffer, length); … … 74 79 unsigned int length) 75 80 { 76 char* fbf_address = (char *) &seg_fbf_base+ offset;81 char* fbf_address = (char *)SEG_FBF_BASE + offset; 77 82 78 83 _memcpy( buffer, fbf_address, length); … … 176 181 177 182 // compute and register frame buffer physical address 178 vaddr = ((unsigned int) &seg_fbf_base);183 vaddr = ((unsigned int)SEG_FBF_BASE); 179 184 ko = _v2p_translate( (page_table_t*) user_ptab, 180 185 (vaddr >> 12),
Note: See TracChangeset
for help on using the changeset viewer.