1213136Spjd/*-
2213136Spjd * Copyright (c) 2010 Pawel Jakub Dawidek <pjd@FreeBSD.org>
3213136Spjd * All rights reserved.
4213136Spjd *
5213136Spjd * Redistribution and use in source and binary forms, with or without
6213136Spjd * modification, are permitted provided that the following conditions
7213136Spjd * are met:
8213136Spjd * 1. Redistributions of source code must retain the above copyright
9213136Spjd *    notice, this list of conditions and the following disclaimer.
10213136Spjd * 2. Redistributions in binary form must reproduce the above copyright
11213136Spjd *    notice, this list of conditions and the following disclaimer in the
12213136Spjd *    documentation and/or other materials provided with the distribution.
13213136Spjd *
14213136Spjd * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND
15213136Spjd * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16213136Spjd * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17213136Spjd * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE
18213136Spjd * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19213136Spjd * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20213136Spjd * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21213136Spjd * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22213136Spjd * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23213136Spjd * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24213136Spjd * SUCH DAMAGE.
25213136Spjd *
26213136Spjd * $FreeBSD$
27213136Spjd */
28213136Spjd
29213136Spjd#ifndef _GPT_H_
30213136Spjd#define	_GPT_H_
31213136Spjd
32213136Spjd#include <uuid.h>
33213136Spjd#include <drv.h>
34213136Spjd
35213136Spjdint gptread(const uuid_t *uuid, struct dsk *dskp, char *buf);
36213136Spjdint gptfind(const uuid_t *uuid, struct dsk *dskp, int part);
37213136Spjdvoid gptbootfailed(struct dsk *dskp);
38213136Spjd
39213136Spjd#endif	/* !_GPT_H_ */
40