Changeset 643 for trunk/libs/libalmosmkh/almosmkh.h
- Timestamp:
- Oct 17, 2019, 3:14:01 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libs/libalmosmkh/almosmkh.h
r641 r643 380 380 #define MALLOC_INITIALIZED 0xBABEF00D // magic number when initialised 381 381 #define MALLOC_MIN_BLOCK_SIZE 0x40 // 64 bytes 382 #define MALLOC_LOCAL_STORE_SIZE 0x 800000 // 8Mbytes382 #define MALLOC_LOCAL_STORE_SIZE 0x2000000 // 32 Mbytes 383 383 #define MALLOC_MAX_CLUSTERS 0x100 // 256 clusters 384 384 … … 496 496 /***************************************************************************************** 497 497 * This blocking function creates N working threads that execute the code defined 498 * by the <work_func> and <work_args> arguments. 498 * by the <work_func> and <work_args> arguments, and returns only when all working 499 * threads completed. 499 500 * The number N of created threads is entirely defined by the <root_level> argument. 500 501 * This value defines an abstract quad-tree, with a square base : level in [0,1,2,3,4], … … 521 522 void * parent_barriers_array ); 522 523 524 /********* Non standard (ALMOS-MKH specific) Frame Buffer access syscalls *************/ 525 526 ////////////////////////////////////////////////////////////////////////////////////////// 527 // The following system calls can be used to access the SoCLib Frame Buffer, that 528 // is a very simple graphic controller, that is seen by the software as a single 529 // buffer of <height> lines of <width> pixels. 530 ////////////////////////////////////////////////////////////////////////////////////////// 531 532 /***************************************************************************************** 533 * This function returns in the <width> and <height> arguments the buffer size. 534 ***************************************************************************************** 535 * @ width : [out] number of pixels per line. 536 * @ height : [out] number of lines. 537 * @ type : [out] pixel encoding type. 538 * @ returns 0 if success / returns -1 if error. 539 ****************************************************************************************/ 540 int fbf_get_config( int * width, 541 int * height, 542 int * type ); 543 544 /***************************************************************************************** 545 * This blocking function moves <length> bytes from the frame buffer, starting 546 * from <offset>, to the user buffer defined by <buffer> argument. 547 ***************************************************************************************** 548 * @ buffer : pointer on buffer in user space. 549 * @ length : number of pixels (one byte per pixel). 550 * @ offset : first pixel index in frame buffer. 551 * @ returns 0 if success / returns -1 if error. 552 ****************************************************************************************/ 553 int fbf_read( void * buffer, 554 int length, 555 int offset ); 556 557 /***************************************************************************************** 558 * This blocking function moves <length> bytes from the user buffer defined by <buffer> 559 * argument to the frame buffer, starting at <offset> in frame buffer. 560 ***************************************************************************************** 561 * @ buffer : pointer on buffer in user space. 562 * @ length : number of pixels (one byte per pixel). 563 * @ offset : first pixel index in frame buffer. 564 * @ returns 0 if success / returns -1 if error. 565 ****************************************************************************************/ 566 int fbf_write( void * buffer, 567 int length, 568 int offset ); 569 523 570 #endif /* _LIBALMOSMKH_H_ */ 524 571
Note: See TracChangeset
for help on using the changeset viewer.