==================================
ϡ
linux-2.6.13/Documentation/fb/modedb.txt 
Ǥ
Ρ JF ץ < http://www.linux.or.jp/JF/ >
  2005/8/30
  Hiroshi.Suzuki < setter at reset dot jp >
==================================

			modedb default video mode support

			modedb ǥեȥӥǥ⡼ɥݡ

Currently all frame buffer device drivers have their own video mode databases,
which is a mess and a waste of resources. The main idea of modedb is to have

ߡ٤ƤΥե졼ХåեǥХɥ饤Фϡ餬ӥǥ⡼ɥǡ١
äƤޤΤȤϡ֤䡢ϲθˤʤäƤޤ
modedb μʹͤϡ˼Τ¸뤳ȤǤ

  - one routine to probe for video modes, which can be used by all frame buffer
    devices
  - one generic video mode database with a fair amount of standard videomodes
    (taken from XFree86)
  - the possibility to supply your own mode database for graphics hardware that
    needs non-standard modes, like amifb and Mac frame buffer drivers (which
    use macmodes.c)

  - ٤ƤΥե졼ХåեǥХǻȤ롢ӥǥ⡼ɤĴ٤뤿ΤҤȤĤΥ롼
  - ʬʿɸӥǥ⡼(XFree86 )ġŪʥǡ١
  - amifb (macmodes.c Ȥ)Mac Υե졼Хåեɥ饤ФΤ褦ʡɸΥ⡼ɤ
    ɬפȤ륰եåϡɥˡʬΥ⡼ɥǡ١򶡵Ǥ褦ˤ롣

When a frame buffer device receives a video= option it doesn't know, it should
consider that to be a video mode option. If no frame buffer device is specified
in a video= option, fbmem considers that to be a global video mode option.

ե졼ХåեǥХΤʤ video= ץäȤ
ӥǥ⡼ɥץȤߤʤϤǤ
video= ץǡե졼ХåեǥХꤵʤʤ顢fbmem ϥХ
ӥǥ⡼ɥץȤߤʤޤ

Valid mode specifiers (mode_option argument):

ͭʥ⡼ɤꤹ(mode_option ѿ):

    <xres>x<yres>[-<bpp>][@<refresh>]
    <name>[-<bpp>][@<refresh>]

with <xres>, <yres>, <bpp> and <refresh> decimal numbers and <name> a string.
Things between square brackets are optional.

10ʿ <xres>, <yres>, <bpp>, <refresh> ȡʸ <name> Ȥäƻꤷޤ
ѳ "[]" ϥץǤ

To find a suitable video mode, you just call

Ŭӥǥ⡼ɤդˤϡ˼Τ¹Ԥޤ

int __init fb_find_mode(struct fb_var_screeninfo *var,
                        struct fb_info *info, const char *mode_option,
                        const struct fb_videomode *db, unsigned int dbsize,
                        const struct fb_videomode *default_mode,
                        unsigned int default_bpp)

with db/dbsize your non-standard video mode database, or NULL to use the
standard video mode database.

db/dbsize ˡȤɸӥǥ⡼ɥǡ١ꤹ뤫
NULL ꤷɸӥǥ⡼ɥǡ١Ȥޤ

fb_find_mode() first tries the specified video mode (or any mode that matches,
e.g. there can be multiple 640x480 modes, each of them is tried). If that
fails, the default mode is tried. If that fails, it walks over all modes.

fb_find_mode() ϡǽˡꤷӥǥ⡼ (ޤϡפ뤹٤ƤΥ⡼ɡ
㤨Сʣ640x480 ⡼ɤʤ顢줾줬ޤ) ޤ
ޤʤ硢ǥեȥ⡼ɤޤ
Ǥ⤦ޤʤ硢٤ƤΥ⡼ɤޤ

To specify a video mode at bootup, use the following boot options:

ư˥ӥǥ⡼ɤꤹˤϡεưץȤޤ:

    video=<driver>:<xres>x<yres>[-<bpp>][@refresh]

where <driver> is a name from the table below.  Valid default modes can be
found in linux/drivers/video/modedb.c.  Check your driver's documentation.
There may be more modes.

Ǥ <driver> ϡɽˤ̾ΤҤȤĤǤ
ͭʥǥեȥ⡼ɤϡlinux/drivers/video/modedb.c  ˤޤ
ȤΥɥ饤Ф򸫤Ƥ¿Υ⡼ɤ뤫⤷ޤ

    Drivers that support modedb boot options
    Boot Name	  Cards Supported
    amifb	- Amiga chipset frame buffer
    aty128fb	- ATI Rage128 / Pro frame buffer
    atyfb	- ATI Mach64 frame buffer
    tdfxfb	- 3D Fx frame buffer
    tridentfb	- Trident (Cyber)blade chipset frame buffer

    modedb ưץ򥵥ݡȤɥ饤 
    ư̾	  ݡȺѤߥ
    amifb	- Amiga åץåȥե졼Хåե
    aty128fb	- ATI Rage128 / Pro ե졼Хåե
    atyfb	- ATI Mach64 ե졼Хåե
    tdfxfb	- 3D Fx ե졼Хåե
    tridentfb	- Trident (Cyber)blade åץåȥե졼Хåե

BTW, only a few drivers use this at the moment. Others are to follow
(feel free to send patches).

Ȥ (by the way)ĤΥɥ饤ФȤޤ
¾ΤΤϡ³Ƥޤ (ѥåΤϼͳǤ)
