Changeset 643 for trunk/libs/libalmosmkh/almosmkh.c
- Timestamp:
- Oct 17, 2019, 3:14:01 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libs/libalmosmkh/almosmkh.c
r641 r643 26 26 #include <hal_macros.h> 27 27 #include <hal_shared_types.h> 28 #include <shared_fbf.h> 28 29 #include <syscalls_numbers.h> 29 30 #include <string.h> … … 1451 1452 } // end pthread_parallel_create() 1452 1453 1454 ///////////////////////////////////////////////////////////////////////////////////////// 1455 /////////////// non standard Frame Buffer related syscalls 1456 ///////////////////////////////////////////////////////////////////////////////////////// 1457 1458 ///////////////////////////////// 1459 int fbf_get_config( int * width, 1460 int * height, 1461 int * type ) 1462 { 1463 return hal_user_syscall( SYS_FBF, 1464 FBF_GET_CONFIG, 1465 (reg_t)width, 1466 (reg_t)height, 1467 (reg_t)type ); 1468 } 1469 1470 //////////////////////////// 1471 int fbf_read( void * buffer, 1472 int length, 1473 int offset ) 1474 { 1475 return hal_user_syscall( SYS_FBF, 1476 FBF_READ, 1477 (reg_t)buffer, 1478 (reg_t)length, 1479 (reg_t)offset ); 1480 } 1481 1482 //////////////////////////// 1483 int fbf_write( void * buffer, 1484 int length, 1485 int offset ) 1486 { 1487 return hal_user_syscall( SYS_FBF, 1488 FBF_WRITE, 1489 (reg_t)buffer, 1490 (reg_t)length, 1491 (reg_t)offset ); 1492 } 1453 1493 1454 1494
Note: See TracChangeset
for help on using the changeset viewer.