Changes between Version 130 and Version 131 of library_stdio
- Timestamp:
- Nov 1, 2015, 12:15:40 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
library_stdio
v130 v131 410 410 411 411 === 2) void '''giet_fbf_alloc'''() === 412 This blocking function allows the calling threadto get exclusive ownership of the shared FBF peripheral.412 This blocking function allows an application to get exclusive ownership of the shared FBF peripheral. 413 413 It returns only when the lock has been taken. 414 All th eads in the same space as the calling thread can access concurrently the frame buffer, under the user responsibility.415 This lock is released when the thread completesexecution, after a giet_pthread_exit(), or a giet_pthread_kill().414 All threads in the same space as the calling thread can access concurrently the frame buffer, under the user responsibility. 415 This lock is released only when when all threads in the application complete execution, after a giet_pthread_exit(), or a giet_pthread_kill(). 416 416 417 417 === 3) void '''giet_fbf_cma_alloc'''( unsigned int nbufs ) 418 This function allocates a private CMA channel to the calling thread, and registers the channel index in the thread context.418 This function allocates a CMA channel to an application, and registers the channel index in the contexts of all threads that are in the same space as the calling thread. 419 419 The <nbufs> argument define the total number of chained user buffers. 420 420 As each user buffer contains one image, the buffer size must be FBUF_X_SIZE * FBUF_Y_SIZE. … … 425 425 === 4) void '''giet_fbf_cma_init_buf'''( unsigned int index void* buf_vaddr , void* sts_vaddr ) === 426 426 This function initializes the chained buffer descriptor for one user buffer identified by the <index> argument. 427 The <buf_vaddr> and <sts_vaddr> arguments are pointers on the buffer and on the buffer status. 427 428 This <index> argument must be smaller than the <nbufs> argument in giet_fbf_cma_alloc() above. 428 429 The set of user buffers will be transferred by the CMA peripheral in the order of increasing indexes. 429 430 This function must be called <nbufs> times, to initialize the <nbufs> chained buffers descriptors. 430 431 Each user buffer must be large enough to store a complete image, and must be aligned on a 64 bytes boundary. 431 The buffer status contain just a Boolean, but it must occupy 64 bytes, and must be aligned on a 64 bytes boundary. 432 For a given user buffer, the buffer and the associated status must be in the same cluster. 433 * '''index''' : buffer index 434 * '''buf_vaddr''' : virtual address of the user buffer. 435 * '''sts_vaddr''' : virtual address of the buffer status. 432 The buffer status contain just a Boolean, but it must occupy 64 bytes, and must be aligned on a 64 bytes boundary. For a given user buffer, the buffer and the associated status must be in the same cluster. 436 433 The thread exit if buffers are not aligned, index too large, or buffer and status in different clusters. 437 434