~darkmuggle-deactivatedaccount/ubuntu/quantal/grub2/fix-872244

« back to all changes in this revision

Viewing changes to grub-core/term/serial.c

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2011-05-17 23:59:10 UTC
  • mto: (17.3.55 sid)
  • mto: This revision was merged to the branch mainline in revision 122.
  • Revision ID: james.westby@ubuntu.com-20110517235910-ma8u889vyjdfro27
Tags: upstream-1.99
ImportĀ upstreamĀ versionĀ 1.99

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
#include <grub/i18n.h>
28
28
#include <grub/list.h>
29
29
 
 
30
GRUB_MOD_LICENSE ("GPLv3+");
 
31
 
30
32
#define FOR_SERIAL_PORTS(var) FOR_LIST_ELEMENTS((var), (grub_serial_ports))
31
33
 
32
34
/* Argument options.  */
41
43
  {0, 0, 0, 0, 0, 0}
42
44
};
43
45
 
44
 
struct grub_serial_port *grub_serial_ports;
 
46
static struct grub_serial_port *grub_serial_ports;
45
47
 
46
48
struct grub_serial_output_state
47
49
{
69
71
  return data->port->driver->fetch (data->port);
70
72
}
71
73
 
72
 
const struct grub_serial_input_state grub_serial_terminfo_input_template =
 
74
static const struct grub_serial_input_state grub_serial_terminfo_input_template =
73
75
  {
74
76
    .tinfo =
75
77
    {
77
79
    }
78
80
  };
79
81
 
80
 
const struct grub_serial_output_state grub_serial_terminfo_output_template =
 
82
static const struct grub_serial_output_state grub_serial_terminfo_output_template =
81
83
  {
82
84
    .tinfo =
83
85
    {
87
89
    }
88
90
  };
89
91
 
90
 
struct grub_serial_input_state grub_serial_terminfo_input;
91
 
 
92
 
struct grub_serial_output_state grub_serial_terminfo_output;
93
 
 
94
 
int registered = 0;
 
92
static struct grub_serial_input_state grub_serial_terminfo_input;
 
93
 
 
94
static struct grub_serial_output_state grub_serial_terminfo_output;
 
95
 
 
96
static int registered = 0;
95
97
 
96
98
static struct grub_term_input grub_serial_term_input =
97
99
{