From owner-p4-projects@FreeBSD.ORG Wed Oct 25 19:51:19 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id DBBE116A417; Wed, 25 Oct 2006 19:51:18 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B232B16A407 for ; Wed, 25 Oct 2006 19:51:18 +0000 (UTC) (envelope-from marcel@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 80C3143E1D for ; Wed, 25 Oct 2006 19:50:46 +0000 (GMT) (envelope-from marcel@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k9PJokHH061663 for ; Wed, 25 Oct 2006 19:50:46 GMT (envelope-from marcel@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k9PJokxK061658 for perforce@freebsd.org; Wed, 25 Oct 2006 19:50:46 GMT (envelope-from marcel@freebsd.org) Date: Wed, 25 Oct 2006 19:50:46 GMT Message-Id: <200610251950.k9PJokxK061658@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to marcel@freebsd.org using -f From: Marcel Moolenaar To: Perforce Change Reviews Cc: Subject: PERFORCE change 108420 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Oct 2006 19:51:19 -0000 http://perforce.freebsd.org/chv.cgi?CH=108420 Change 108420 by marcel@marcel_cluster on 2006/10/25 19:50:32 Sync with the EFI 1.10.14.62 sample implementation. Affected files ... .. //depot/projects/ia64/sys/boot/efi/include/efifs.h#3 edit Differences ... ==== //depot/projects/ia64/sys/boot/efi/include/efifs.h#3 (text+ko) ==== @@ -4,7 +4,14 @@ /*++ -Copyright (c) 1998 Intel Corporation +Copyright (c) 1999 - 2002 Intel Corporation. All rights reserved +This software and associated documentation (if any) is furnished +under a license and may only be used or copied in accordance +with the terms of the license. Except as permitted by such +license, no part of this software or documentation may be +reproduced, stored in a retrieval system, or transmitted in any +form or by any means without the express written consent of +Intel Corporation. Module Name: @@ -21,9 +28,9 @@ --*/ -/* - * EFI Partition header (normaly starts in LBA 1) - */ +// +// EFI Partition header (normaly starts in LBA 1) +// #define EFI_PARTITION_SIGNATURE 0x5053595320494249 #define EFI_PARTITION_REVISION 0x00010001 @@ -43,9 +50,9 @@ } EFI_PARTITION_HEADER; -/* - * File header - */ +// +// File header +// #define EFI_FILE_HEADER_SIGNATURE 0x454c494620494249 #define EFI_FILE_HEADER_REVISION 0x00010000 @@ -65,10 +72,10 @@ } EFI_FILE_HEADER; -/* - * Return the file's first LBAL which is in the same - * logical block as the file header - */ +// +// Return the file's first LBAL which is in the same +// logical block as the file header +// #define EFI_FILE_LBAL(a) ((EFI_LBAL *) (((CHAR8 *) (a)) + (a)->LBALOffset)) @@ -77,10 +84,10 @@ #define EFI_FILE_CLASS_NORMAL 3 -/* - * Logical Block Address List - the fundemental block - * description structure - */ +// +// Logical Block Address List - the fundemental block +// description structure +// #define EFI_LBAL_SIGNATURE 0x4c41424c20494249 #define EFI_LBAL_REVISION 0x00010000 @@ -94,22 +101,22 @@ UINT32 ArrayCount; } EFI_LBAL; -/* Array size */ +// Array size #define EFI_LBAL_ARRAY_SIZE(lbal,offs,blks) \ (((blks) - (offs) - (lbal)->Hdr.HeaderSize) / sizeof(EFI_RL)) -/* - * Logical Block run-length - */ +// +// Logical Block run-length +// typedef struct { EFI_LBA Start; UINT64 Length; } EFI_RL; -/* - * Return the run-length structure from an LBAL header - */ +// +// Return the run-length structure from an LBAL header +// #define EFI_LBAL_RL(a) ((EFI_RL*) (((CHAR8 *) (a)) + (a)->Hdr.HeaderSize))