1224106Snwhitehorn/*- 2224106Snwhitehorn * Copyright (C) 2000 Benno Rice. 3224106Snwhitehorn * Copyright (C) 2007 Semihalf, Rafal Jaworowski <raj@semihalf.com> 4224106Snwhitehorn * Copyright (C) 2011 glevand (geoffrey.levand@mail.ru) 5224106Snwhitehorn * All rights reserved. 6224106Snwhitehorn * 7224106Snwhitehorn * Redistribution and use in source and binary forms, with or without 8224106Snwhitehorn * modification, are permitted provided that the following conditions 9224106Snwhitehorn * are met: 10224106Snwhitehorn * 1. Redistributions of source code must retain the above copyright 11224106Snwhitehorn * notice, this list of conditions and the following disclaimer. 12224106Snwhitehorn * 2. Redistributions in binary form must reproduce the above copyright 13224106Snwhitehorn * notice, this list of conditions and the following disclaimer in the 14224106Snwhitehorn * documentation and/or other materials provided with the distribution. 15224106Snwhitehorn * 16224106Snwhitehorn * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 17224106Snwhitehorn * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 18224106Snwhitehorn * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 19224106Snwhitehorn * IN NO EVENT SHALL TOOLS GMBH BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 20224106Snwhitehorn * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 21224106Snwhitehorn * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 22224106Snwhitehorn * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 23224106Snwhitehorn * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 24224106Snwhitehorn * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 25224106Snwhitehorn * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26224106Snwhitehorn * 27224106Snwhitehorn * $FreeBSD$ 28224106Snwhitehorn */ 29224106Snwhitehorn 30224106Snwhitehorn#ifndef _PS3_DEV_DESC_H 31224106Snwhitehorn#define _PS3_DEV_DESC_H 32224106Snwhitehorn 33224106Snwhitehorn/* Note: Must match the 'struct devdesc' in bootstrap.h */ 34224106Snwhitehornstruct ps3_devdesc { 35224106Snwhitehorn struct devsw *d_dev; 36224106Snwhitehorn int d_type; 37224106Snwhitehorn int d_unit; 38224106Snwhitehorn 39224106Snwhitehorn union { 40224106Snwhitehorn struct { 41224106Snwhitehorn void *data; 42224106Snwhitehorn int pnum; 43224106Snwhitehorn int ptype; 44224106Snwhitehorn } disk; 45224106Snwhitehorn } d_kind; 46224106Snwhitehorn}; 47224106Snwhitehorn 48224106Snwhitehorn#define d_disk d_kind.disk 49224106Snwhitehorn 50224106Snwhitehorn#define PTYPE_BSDLABEL 1 51224106Snwhitehorn#define PTYPE_GPT 2 52224106Snwhitehorn 53224106Snwhitehorn#endif 54