llib-lefi revision af007057247046b266b7b580708a7c33f76a97e4
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User/*
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User * CDDL HEADER START
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User *
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User * The contents of this file are subject to the terms of the
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User * Common Development and Distribution License (the "License").
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User * You may not use this file except in compliance with the License.
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User *
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User * or http://www.opensolaris.org/os/licensing.
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User * See the License for the specific language governing permissions
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User * and limitations under the License.
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User *
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User * When distributing Covered Code, include this CDDL HEADER in each
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User * If applicable, add the following below this CDDL HEADER, with the
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User * fields enclosed by brackets "[]" replaced with your own identifying
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User * information: Portions Copyright [yyyy] [name of copyright owner]
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User *
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User * CDDL HEADER END
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User */
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User/* LINTLIBRARY */
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt/* PROTOLIB1 */
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User/*
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User * Use is subject to license terms.
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User */
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User#pragma ident "%Z%%M% %I% %E% SMI"
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User#include <sys/efi_partition.h>
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User#include <pkginfo.h>
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User/*
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User * usr/src/lib/libefi
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt */
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User/* rdwr_efi.c */
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox Userint efi_alloc_and_init(int fd, uint32_t nparts, struct dk_gpt **vtoc);
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox Userint efi_alloc_and_read(int fd, struct dk_gpt **vtoc);
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox Userint efi_write(int fd, struct dk_gpt *vtoc);
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox Uservoid efi_free(struct dk_gpt *);
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Userint efi_use_whole_disk(int fd);
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User