Changeset 647 for trunk/hal/tsar_mips32/drivers/soclib_fbf.h
- Timestamp:
- Oct 22, 2019, 1:48:51 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/tsar_mips32/drivers/soclib_fbf.h
r75 r647 1 1 /* 2 * soclib_fbf.h - soclib frame-buffer driver definition .2 * soclib_fbf.h - soclib frame-buffer driver definition (used in TSAR_IOB architecture). 3 3 * 4 * Author Alain greiner (2016 )4 * Author Alain greiner (2016,2017,2018,2019) 5 5 * 6 6 * Copyright (c) UPMC Sorbonne Universites … … 22 22 */ 23 23 24 #ifndef _SOCLIB_FB _H_25 #define _SOCLIB_FB _H_24 #ifndef _SOCLIB_FBF_H_ 25 #define _SOCLIB_FBF_H_ 26 26 27 #include <chdev.h> 28 #include <hal_kernel_types.h> 29 30 /**************************************************************************************** 31 * This driver supports the vci_fbf_tsar component. 32 * 33 * This hardware component supports both a frame buffer, and a set of addressable 34 * configuration status registers. 35 ***************************************************************************************/ 36 37 /**************************************************************************************** 38 * SOCLIB_FBF registers offsets 39 * The three addressables registers are on top of the 4 Mbytes allocated 40 * to the frame buffer itself. 41 ***************************************************************************************/ 42 43 enum SoclibFrameBufferRegisters 44 { 45 FBF_WIDTH_REG = 0x100000, 46 FBF_HEIGHT_REG = 0x100001, 47 FBF_SUBSAMPLING_REG = 0x100002, 48 }; 49 50 /**************************************************************************************** 51 * This function access the SOCLIB_FBF hardware registers, to get the frame buffer 52 * size and type, and update the FBF device extension. 53 **************************************************************************************** 54 * @ chdev : pointer on the FBF chdev descriptor. 55 ***************************************************************************************/ 56 void soclib_fbf_init( chdev_t * chdev ); 57 58 /**************************************************************************************** 59 * This function implements the FBF_READ and FBF_WRITE commands registered in the client 60 * thread descriptor identified by the <thread_xp> argument. 61 * It is called directly by the client thread. 62 * ************************************************************************************** 63 * @ thread_xp : extended pointer on client thread descriptor. 64 ***************************************************************************************/ 65 extern void soclib_fbf_cmd( xptr_t thread_xp ); 27 66 28 67 #endif
Note: See TracChangeset
for help on using the changeset viewer.