Changeset View
Standalone View
stand/efi/include/efirng.h
- This file was added.
/*- | |||||
* SPDX-License-Identifier: BSD-2-Clause | |||||
imp: This file needs a copyright / license at the top.
| |||||
Done Inline ActionsWhich copyright should it be? Most of these interface definitions seem to have Intel… val_packett.cool: Which copyright should it be? Most of these interface definitions seem to have Intel… | |||||
Not Done Inline Actions
BSD 2-clause here, maybe. Assign to BSD Foundation if you don't want it for yourself? markm: > Which copyright should it be? Most of these interface definitions seem to have Intel…
BSD 2… | |||||
Not Done Inline ActionsMy $0.02 -- IANAL but I think these (constants and interface data structures) are "fact"s and is probably not copyrightable. To err on the safe side, however, I'd probably use Intel copyright as the file appears to be substantially identical to edk2's [RandomNumber.h](https://github.com/tianocore/edk2-test/blame/master/uefi-sct/SctPkg/UEFI/Protocol/RandomNumber.h) delphij: My $0.02 -- IANAL but I think these (constants and interface data structures) are "fact"s and… | |||||
Not Done Inline ActionsIIRC, there is a problem with copyright-less files, as lawyers get touchy about this in large corporations. If it falls through to the top-level copyright, then I guess it's OK. markm: IIRC, there is a problem with copyright-less files, as lawyers get touchy about this in large… | |||||
* | |||||
* Copyright 2006 - 2016 Unified EFI, Inc.<BR> | |||||
* Copyright (c) 2013 - 2016, Intel Corporation. All rights reserved.<BR> | |||||
* This program and the accompanying materials | |||||
* are licensed and made available under the terms and conditions of the BSD License | |||||
* which accompanies this distribution. The full text of the license may be found at | |||||
* http://opensource.org/licenses/bsd-license.php | |||||
* | |||||
* THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, | |||||
* WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. | |||||
* | |||||
*/ | |||||
#ifndef _EFIRNG_H | |||||
#define _EFIRNG_H | |||||
#define EFI_RNG_PROTOCOL_GUID \ | |||||
{ 0x3152bca5, 0xeade, 0x433d, {0x86, 0x2e, 0xc0, 0x1c, 0xdc, 0x29, 0x1f, 0x44} } | |||||
INTERFACE_DECL(_EFI_RNG_PROTOCOL); | |||||
typedef EFI_GUID EFI_RNG_ALGORITHM; | |||||
typedef | |||||
EFI_STATUS | |||||
(EFIAPI *EFI_RNG_GET_INFO) ( | |||||
IN struct _EFI_RNG_PROTOCOL *This, | |||||
IN OUT UINTN *RNGAlgorithmListSize, | |||||
OUT EFI_RNG_ALGORITHM *RNGAlgorithmList | |||||
); | |||||
typedef | |||||
EFI_STATUS | |||||
(EFIAPI *EFI_RNG_GET_RNG) ( | |||||
IN struct _EFI_RNG_PROTOCOL *This, | |||||
IN EFI_RNG_ALGORITHM *RNGAlgorithm, OPTIONAL | |||||
IN UINTN RNGValueLength, | |||||
OUT UINT8 *RNGValue | |||||
); | |||||
typedef struct _EFI_RNG_PROTOCOL { | |||||
EFI_RNG_GET_INFO GetInfo; | |||||
EFI_RNG_GET_RNG GetRNG; | |||||
} EFI_RNG_PROTOCOL; | |||||
static EFI_GUID rng_guid = EFI_RNG_PROTOCOL_GUID; | |||||
#endif /* _EFIRNG_H */ |
This file needs a copyright / license at the top.