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

« back to all changes in this revision

Viewing changes to include/grub/arc/arc.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:
79
79
  grub_arc_uchar_t reverse_video;
80
80
};
81
81
 
 
82
enum
 
83
  {
 
84
    GRUB_ARC_COMPONENT_FLAG_OUT = 0x40,
 
85
    GRUB_ARC_COMPONENT_FLAG_IN = 0x20,
 
86
  };
 
87
 
82
88
struct grub_arc_component
83
89
{
84
90
  grub_arc_enum_t class;
133
139
    GRUB_ARC_COMPONENT_TYPE_POINTER,
134
140
    GRUB_ARC_COMPONENT_TYPE_KBD,
135
141
    GRUB_ARC_COMPONENT_TYPE_TERMINAL,
 
142
#ifndef GRUB_CPU_WORDS_BIGENDIAN
136
143
    GRUB_ARC_COMPONENT_TYPE_OTHER_PERIPHERAL,
 
144
#endif
137
145
    GRUB_ARC_COMPONENT_TYPE_LINE,
138
146
    GRUB_ARC_COMPONENT_TYPE_NET,
139
147
    GRUB_ARC_COMPONENT_TYPE_MEMORY_UNIT,
210
218
  grub_arc_err_t (*seek) (grub_arc_fileno_t fileno,
211
219
                          grub_arc_ularge_t *pos, grub_arc_enum_t mode);
212
220
  void *mount;
213
 
  void *getenvironmentvariable;
 
221
  const char * (*getenvironmentvariable) (const char *name);
214
222
  void *setenvironmentvariable;
215
223
 
216
224
  /* 0x80. */
255
263
#define GRUB_ARC_STDIN 0
256
264
#define GRUB_ARC_STDOUT 1
257
265
 
258
 
int EXPORT_FUNC (grub_arc_iterate_devs) (int (*hook) (const char *name, const struct grub_arc_component *comp), int alt_names);
 
266
typedef int (*grub_arc_iterate_devs_hook_t)
 
267
  (const char *name, const struct grub_arc_component *comp, void *data);
 
268
 
 
269
int EXPORT_FUNC (grub_arc_iterate_devs) (grub_arc_iterate_devs_hook_t hook,
 
270
                                         void *hook_data,
 
271
                                         int alt_names);
 
272
 
 
273
char *EXPORT_FUNC (grub_arc_alt_name_to_norm) (const char *name, const char *suffix);
 
274
 
 
275
int EXPORT_FUNC (grub_arc_is_device_serial) (const char *name, int alt_names);
 
276
 
259
277
 
260
278
#define FOR_ARC_CHILDREN(comp, parent) for (comp = GRUB_ARC_FIRMWARE_VECTOR->getchild (parent); comp; comp = GRUB_ARC_FIRMWARE_VECTOR->getpeer (comp))
261
279