Changeset a71c158 in mainline for kernel/arch/sparc64/src/console.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/sparc64/src/console.c

    r90c8b8d ra71c158  
    103103        }
    104104#endif
     105       
    105106#ifdef CONFIG_SGCN_PRN
    106         sgcnout_init();
     107        outdev_t *sgcndev = sgcnout_init();
     108        if (sgcndev)
     109                stdout_wire(sgcndev);
    107110#endif
    108111}
     
    131134}
    132135
    133 
    134 /** Acquire console back for kernel
    135  *
    136  */
    137 void arch_grab_console(void)
    138 {
    139 #ifdef CONFIG_FB
    140         scr_redraw();
    141 #endif
    142        
    143 #ifdef CONFIG_SGCN_KBD
    144         sgcn_grab();
    145 #endif
    146 }
    147 
    148 /** Return console to userspace
    149  *
    150  */
    151 void arch_release_console(void)
    152 {
    153 #ifdef CONFIG_SGCN_KBD
    154         sgcn_release();
    155 #endif
    156 }
    157 
    158136/** @}
    159137 */
Note: See TracChangeset for help on using the changeset viewer.