Changeset a71c158 in mainline for kernel/arch/ppc32/src/ppc32.c


Ignore:
Timestamp:
2009-08-21T14:12:45Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0e6dce8, b50b5af2, e5792d1
Parents:
90c8b8d
Message:

kernel output devices now suport multiple instances (except ski and sgcn, which respect the same interface, but behave as singletons)
if more than one output device gets initialized, the output is cloned to all of them
get rid of arch_grab_console() and arch_release_console() (output devices can implement a generic "redraw" method, input devices respect the "silent" global variable)
related cleanups and modifications

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ppc32/src/ppc32.c

    r90c8b8d ra71c158  
    143143                        .visual = visual,
    144144                };
    145                 fb_init(&fb_prop);
    146         }
    147        
    148         /* Consider only a single device for now */
    149         return false;
     145               
     146                outdev_t *fbdev = fb_init(&fb_prop);
     147                if (fbdev)
     148                        stdout_wire(fbdev);
     149        }
     150       
     151        return true;
    150152}
    151153
     
    235237}
    236238
    237 /** Acquire console back for kernel
    238  *
    239  */
    240 void arch_grab_console(void)
    241 {
    242 #ifdef CONFIG_FB
    243         fb_redraw();
    244 #endif
    245 }
    246 
    247 /** Return console to userspace
    248  *
    249  */
    250 void arch_release_console(void)
    251 {
    252 }
    253 
    254239/** Construct function pointer
    255240 *
Note: See TracChangeset for help on using the changeset viewer.