efistdarg.h revision 163898
1/* $FreeBSD: head/sys/boot/efi/include/efistdarg.h 163898 2006-11-02 02:42:48Z marcel $ */ 2#ifndef _EFISTDARG_H_ 3#define _EFISTDARG_H_ 4 5/*++ 6 7Copyright (c) 1999 - 2002 Intel Corporation. All rights reserved 8This software and associated documentation (if any) is furnished 9under a license and may only be used or copied in accordance 10with the terms of the license. Except as permitted by such 11license, no part of this software or documentation may be 12reproduced, stored in a retrieval system, or transmitted in any 13form or by any means without the express written consent of 14Intel Corporation. 15 16Module Name: 17 18 devpath.h 19 20Abstract: 21 22 Defines for parsing the EFI Device Path structures 23 24 25 26Revision History 27 28--*/ 29 30#define _INTSIZEOF(n) ( (sizeof(n) + sizeof(UINTN) - 1) & ~(sizeof(UINTN) - 1) ) 31 32typedef CHAR8 * va_list; 33 34#define va_start(ap,v) ( ap = (va_list)&v + _INTSIZEOF(v) ) 35#define va_arg(ap,t) ( *(t *)((ap += _INTSIZEOF(t)) - _INTSIZEOF(t)) ) 36#define va_end(ap) ( ap = (va_list)0 ) 37 38 39#endif /* _INC_STDARG */ 40