~ubuntu-branches/ubuntu/trusty/grub2/trusty

« back to all changes in this revision

Viewing changes to include/grub/serial.h

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2014-01-16 15:18:04 UTC
  • mfrom: (17.6.38 experimental)
  • Revision ID: package-import@ubuntu.com-20140116151804-3foouk7fpqcq3sxx
Tags: 2.02~beta2-2
* Convert patch handling to git-dpm.
* Add bi-endian support to ELF parser (Tomohiro B Berry).
* Adjust restore_mkdevicemap.patch to mark get_kfreebsd_version as static,
  to appease "gcc -Werror=missing-prototypes".
* Cherry-pick from upstream:
  - Change grub-macbless' manual page section to 8.
* Install grub-glue-efi, grub-macbless, grub-render-label, and
  grub-syslinux2cfg.
* grub-shell: Pass -no-pad to xorriso when building floppy images.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
#ifdef GRUB_MACHINE_IEEE1275
31
31
#include <grub/ieee1275/ieee1275.h>
32
32
#endif
 
33
#ifdef GRUB_MACHINE_ARC
 
34
#include <grub/arc/arc.h>
 
35
#endif
33
36
 
34
37
struct grub_serial_port;
35
38
struct grub_serial_config;
64
67
  int word_len;
65
68
  grub_serial_parity_t parity;
66
69
  grub_serial_stop_bits_t stop_bits;
 
70
  grub_uint64_t base_clock;
 
71
  int rtscts;
67
72
};
68
73
 
69
74
struct grub_serial_port
105
110
#ifdef GRUB_MACHINE_EFI
106
111
    struct grub_efi_serial_io_interface *interface;
107
112
#endif
 
113
#ifdef GRUB_MACHINE_ARC
 
114
    struct
 
115
    {
 
116
      grub_arc_fileno_t handle;
 
117
      int handle_valid;
 
118
    };
 
119
#endif
108
120
  };
109
121
  grub_term_output_t term_out;
110
122
  grub_term_input_t term_in;
148
160
    {
149
161
#ifdef GRUB_MACHINE_MIPS_LOONGSON
150
162
      .speed = 115200,
 
163
      /* On Loongson machines serial port has only 3 wires.  */
 
164
      .rtscts = 0,
151
165
#else
152
166
      .speed = 9600,
 
167
      .rtscts = 1,
153
168
#endif
154
169
      .word_len = 8,
155
170
      .parity = GRUB_SERIAL_PARITY_NONE,
156
 
      .stop_bits = GRUB_SERIAL_STOP_BITS_1
 
171
      .stop_bits = GRUB_SERIAL_STOP_BITS_1,
 
172
      .base_clock = 0
157
173
    };
158
174
 
159
175
  return port->driver->configure (port, &config);
170
186
void
171
187
grub_efiserial_init (void);
172
188
#endif
 
189
#ifdef GRUB_MACHINE_ARC
 
190
void
 
191
grub_arcserial_init (void);
 
192
const char *
 
193
grub_arcserial_add_port (const char *path);
 
194
#endif
173
195
 
174
196
struct grub_serial_port *grub_serial_find (const char *name);
175
197
extern struct grub_serial_driver grub_ns8250_driver;