Files
OpenCellular/host/include/cgpt_params.h
Bill Richardson 0c3ba249ab Massive refactoring of external header files.
This reduces the number of exported header files to the minimum needed by
the existing userspace utilities and firmware implementations.

BUG=chromium:221544
BRANCH=none
TEST=manual, trybots
CQ-DEPEND=CL:47019,CL:47022,CL:47023

  sudo FEATURES=test emerge vboot_reference
  FEATURES=test emerge-$BOARD \
                vboot_reference \
                chromeos-cryptohome \
                chromeos-installer \
                chromeos-u-boot \
                peach-u-boot \
                depthcharge

Change-Id: I2946cc2dbaf5459a6c5eca92ca57d546498e6d85
Signed-off-by: Bill Richardson <wfrichar@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/47021
Reviewed-by: Randall Spangler <rspangler@chromium.org>
2013-04-02 14:12:52 -07:00

99 lines
1.9 KiB
C

// Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef VBOOT_REFERENCE_CGPT_CGPT_PARAMS_H_
#define VBOOT_REFERENCE_CGPT_CGPT_PARAMS_H_
#include <stdint.h>
#include "gpt.h"
enum {
CGPT_OK = 0,
CGPT_FAILED,
};
typedef struct CgptCreateParams {
char *drive_name;
int zap;
} CgptCreateParams;
typedef struct CgptAddParams {
char *drive_name;
uint32_t partition;
uint64_t begin;
uint64_t size;
Guid type_guid;
Guid unique_guid;
char *label;
int successful;
int tries;
int priority;
uint16_t raw_value;
int set_begin;
int set_size;
int set_type;
int set_unique;
int set_successful;
int set_tries;
int set_priority;
int set_raw;
} CgptAddParams;
typedef struct CgptShowParams {
char *drive_name;
int numeric;
int verbose;
int quick;
uint32_t partition;
int single_item;
int debug;
int num_partitions;
} CgptShowParams;
typedef struct CgptRepairParams {
char *drive_name;
int verbose;
} CgptRepairParams;
typedef struct CgptBootParams {
char *drive_name;
uint32_t partition;
char *bootfile;
int create_pmbr;
} CgptBootParams;
typedef struct CgptPrioritizeParams {
char *drive_name;
uint32_t set_partition;
int set_friends;
int max_priority;
int orig_priority;
} CgptPrioritizeParams;
typedef struct CgptFindParams {
char *drive_name;
int verbose;
int set_unique;
int set_type;
int set_label;
int oneonly;
int numeric;
uint8_t *matchbuf;
uint64_t matchlen;
uint64_t matchoffset;
uint8_t *comparebuf;
Guid unique_guid;
Guid type_guid;
char *label;
int hits;
int match_partnum; /* 1-based; 0 means no match */
} CgptFindParams;
typedef struct CgptLegacyParams {
char *drive_name;
int efipart;
} CgptLegacyParams;
#endif // VBOOT_REFERENCE_CGPT_CGPT_PARAMS_H_