Print this page
8368 remove warlock leftovers from usr/src/uts


  94 #include <sys/note.h>
  95 #include <sys/t_lock.h>
  96 
  97 /* Terminal emulator internal helper functions */
  98 static void     tems_setup_terminal(struct vis_devinit *, size_t, size_t);
  99 static void     tems_modechange_callback(struct vis_modechg_arg *,
 100                 struct vis_devinit *);
 101 
 102 static void     tems_reset_colormap(cred_t *, enum called_from);
 103 
 104 static void     tem_free_buf(struct tem_vt_state *);
 105 static void     tem_internal_init(struct tem_vt_state *, cred_t *, boolean_t,
 106                     boolean_t);
 107 static void     tems_get_initial_color(tem_color_t *pcolor);
 108 
 109 /*
 110  * Globals
 111  */
 112 static ldi_ident_t      term_li = NULL;
 113 tem_state_t     tems;   /* common term info */
 114 _NOTE(MUTEX_PROTECTS_DATA(tems.ts_lock, tems))
 115 
 116 extern struct mod_ops mod_miscops;
 117 
 118 static struct modlmisc  modlmisc = {
 119         &mod_miscops,       /* modops */
 120         "ANSI Terminal Emulator", /* name */
 121 };
 122 
 123 static struct modlinkage modlinkage = {
 124         MODREV_1, (void *)&modlmisc, NULL
 125 };
 126 
 127 int
 128 _init(void)
 129 {
 130         int ret;
 131         ret = mod_install(&modlinkage);
 132         if (ret != 0)
 133                 return (ret);
 134         ret = ldi_ident_from_mod(&modlinkage, &term_li);




  94 #include <sys/note.h>
  95 #include <sys/t_lock.h>
  96 
  97 /* Terminal emulator internal helper functions */
  98 static void     tems_setup_terminal(struct vis_devinit *, size_t, size_t);
  99 static void     tems_modechange_callback(struct vis_modechg_arg *,
 100                 struct vis_devinit *);
 101 
 102 static void     tems_reset_colormap(cred_t *, enum called_from);
 103 
 104 static void     tem_free_buf(struct tem_vt_state *);
 105 static void     tem_internal_init(struct tem_vt_state *, cred_t *, boolean_t,
 106                     boolean_t);
 107 static void     tems_get_initial_color(tem_color_t *pcolor);
 108 
 109 /*
 110  * Globals
 111  */
 112 static ldi_ident_t      term_li = NULL;
 113 tem_state_t     tems;   /* common term info */

 114 
 115 extern struct mod_ops mod_miscops;
 116 
 117 static struct modlmisc  modlmisc = {
 118         &mod_miscops,       /* modops */
 119         "ANSI Terminal Emulator", /* name */
 120 };
 121 
 122 static struct modlinkage modlinkage = {
 123         MODREV_1, (void *)&modlmisc, NULL
 124 };
 125 
 126 int
 127 _init(void)
 128 {
 129         int ret;
 130         ret = mod_install(&modlinkage);
 131         if (ret != 0)
 132                 return (ret);
 133         ret = ldi_ident_from_mod(&modlinkage, &term_li);