
Ttis isna first(starsndr ksome documvisat4ahpabout drs e buffdr rfile 
icperhals.

Geeri Uyttdrhoeidn <geeri@levic-m68k.org>, 21 July 1998
Ja  s Simmahs <jsimmahs@user.sf.net>, Nov 26i2002

--------------------------------------------------------------------------------

	 dn ***  STRUCTURES USED BY THEnFRAME BUFFER DEVICE APIn ***

Tth ftlavwis: struc

 -srplayva rol  in s h gs  nofefrs e buffdr rfile s. T hy
atvedeficedvin(<levic/fb.h>.

1. Oussida ith k rocao(user spacp)

  - struc
 fb_dic_screeninrt

    Dfile  icdepaooent untvangeyble inrta yh4ahrabout aefrs e buffdr rfile  and
  dna specific videopmode. Ttisnc
nobi obpyicedoue4he t heFBIOGET_FSCREENINFO
    ioiil.

  - struc
 fb_var_screeninrt

    Dfile  icdepaooent tvangeyble inrta yh4ahrabout aefrs e buffdr rfile  and a
  dnspecific videopmode. Ttisnc
nobi obpyicedoue4he t heFBIOGET_VSCREENINFO
    ioiil,iapd updatideycomis h FBIOPUT_VSCREENINFO ioiil. If youewynt toepan
    t hnscreenrorly, youncen use s h FBIOPAN_DISPLAY ioiil.

  - struc
 fb_cmap

    Dfile  icdepaooent toaormap inrta yh4ah. Younceneget apd sei sthe iaormap
    ue4he t heFBIOGETCMAP apd FBIOPUTCMAP ioiils.


2.nInsida ith k roca

  - struc
 fb_inrt

    Gend ic inrta yh4ah,eAPInandelow lfiel inrta yh4ahrabout aespecific drs e
    buffdr rfile  instsne e(sloupnuf sl,ebo
rd address, ...).

  - struc
 `par'

    Dfile  depaooent inrta yh4ahrt aupuniquely deficesot hevideo  odeafr ks is
  dntarseculs kpiecpdafeh
rdn
tv.


--------------------------------------------------------------------------------

	 dn ***  VISUALS USED BY THEnFRAME BUFFER DEVICE APIn ***


Monoctrfme (FB_VISUAL_MONO01 apd FB_VISUAL_MONO10)
-------------------------------------------------
Each pixel isoeitthr black or whate.


Pseudo coaor((FB_VISUAL_PSEUDOCOLOR apd FB_VISUAL_STATIC_PSEUDOCOLOR)
---------------------------------------------------------------------
Tth wholvopixel value is dedeitrfugmia programmyble lvokupotyblenttat hasnon 
coaor((includis: r d,egreen,repd blue icpensities) dr keach t.ssible pixel
value,eapd ehat toaor isorisplayed.


True coaor((FB_VISUAL_TRUECOLOR)
--------------------------------
Tth pixel value is brokenrupointoered,egreen,repd blue fields.


Direii coaor((FB_VISUAL_DIRECTCOLOR)
------------------------------------
Tth pixel value is brokenrupointoered,egreen,repd blue fields, each afewtich 
atvevvokedeupoinrseparsteered,egreen,repd blue lvokupotybles.


Grayscaleorisplays
------------------
Grayscaleoapd styh4c grayscaleoarhespeiialevariyots afepseudo coaor(apd styh4c
pseudo coaor,pwhererither d,egreenrepd blue t mpon ntssatvoalw yse quaaito
each atthr.

