From: Romain D. <do...@ir...> - 2001-08-02 07:47:40
|
chr...@ph... wrote: > So in Ex1 why not defining the sa1100fb_hwswitch variable ??? > > Or when do you define xxxxfb_hwswitch variable and put fbgen_xxx > functions in xxxxfb_ops var (like ex2) rather than writing > function for only xxxxfb_ops (like ex 1) ? Well, in the 2.4.x API you have two way of doing thing: 1) do everything by hand, as in the sa1100 example. you need to fill the fb_ops struct and write the relevant functions. 2) let fbgen do a bit of thw work for you. Then, you fill fb_ops with the fbgen functions. The fbgen fucntions will need some support functions, and those are in the fbgen_hwswitch struct. It's the way it's done in pm2fb or pm3fb. In the newer 'ruby' framework, the functions you need to write are similar to those in case 2) above (mostly hardware stuff, no console stuff), but they go in the fb_ops struct :-) HTH -- DOLBEAU Romain | l'histoire est entierement vraie, puisque ENS Cachan / Ker Lann | je l'ai imaginee d'un bout a l'autre do...@ir... | -- Boris Vian |