Os motores de busca de Datasheet de Componentes eletrônicos
  Portuguese  ▼
ALLDATASHEETPT.COM

X  

AN2641 Folha de dados(PDF) 27 Page - STMicroelectronics

Nome de Peças AN2641
Descrição Electrónicos  Using the color LCD controller
PDF  37 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Fabricante Electrônico  STMICROELECTRONICS [STMicroelectronics]
Página de início  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN2641 Folha de dados(HTML) 27 Page - STMicroelectronics

Back Button AN2641 Datasheet HTML 23Page - STMicroelectronics AN2641 Datasheet HTML 24Page - STMicroelectronics AN2641 Datasheet HTML 25Page - STMicroelectronics AN2641 Datasheet HTML 26Page - STMicroelectronics AN2641 Datasheet HTML 27Page - STMicroelectronics AN2641 Datasheet HTML 28Page - STMicroelectronics AN2641 Datasheet HTML 29Page - STMicroelectronics AN2641 Datasheet HTML 30Page - STMicroelectronics AN2641 Datasheet HTML 31Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 27 / 37 page
background image
AN2641
Linux frame buffer
Doc ID 14027 Rev 1
27/37
6.4
More details on the frame buffer in Linux
6.4.1
Data structures
1.
The 'fb_info' structure defines the current state of the video card. 'fb_info' is only visible
from the kernel. Inside fb_info, there is a structure called 'fb_ops' which is a collection
of functions needed to make the driver work.
'struct fb_info' is the central data structure used by frame buffer drivers. This structure
is defined in include/linux/fb.h as follows:
Figure 16.
Structure fb_info
The memory for fb_info is allocated by framebuffer_alloc(), a library routine provided by
the frame buffer core. This function also takes the size of a private area as an argument
and appends it to the end of the allocated fb_info. This private area can be referenced
using the par pointer in the fb_info structure.
2.
The user application program can use the ioctl() system call to operate low level LCD
hardware. Methods defined in structure 'fb_ops' are used to support these operations.
The 'fb_ops' structure contains the addresses of all entry points provided by the low-
level frame buffer driver. The first few methods in fb_ops are necessary for the
functioning of the driver, while those remaining are optional ones that provide for
graphics acceleration. The responsibility of each function is briefly explained in the
comments:
struct fb_info {
/* ... */
struct fb_var_screeninfo var; /* Variable screen information*/
struct fb_fix_screeninfo fix; /* Fixed screen information*/
/* ... */
struct fb_cmap cmap; /* Color map*/
/* ... */
struct fb_ops *fbops; /* Driver operations*/
/* ... */
char __iomem *screen_base; /* Frame buffer's virtual address */
unsigned long screen_size; /* Frame buffer's size */
/* ... */
/* From here on everything is device dependent */
void *par; /* Private area */
};



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37


Folha de dados Download

Go To PDF Page


Ligação URL



ALLDATASHEET é útil para você?  [ DONATE ] 

Sobre Alldatasheet   |   Publicidade   |   Contato conosco   |   Privacy Policy   |   Link para a ficha técnica    |   roca de Link   |   Lista de Fabricantes
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com