Skip to content
Permalink
Browse files
Silicon/Broadcom: Add BcmGenetPlatformDevice protocol
Add BcmGenetPlatformDevice definition for GENET. This protocol
will be used to register GENET platform device that is on a
non-discoverable bus.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@arm.com>
Reviewed-by: Leif Lindholm <leif@nuviainc.com>
  • Loading branch information
Ard Biesheuvel committed May 12, 2020
1 parent 2fabf22 commit cc2e45a85dcdc5ac2d332750854d1d82bcb4646f
Showing 2 changed files with 28 additions and 0 deletions.
@@ -1,6 +1,7 @@
## @file
#
# Copyright (c) 2020, Pete Batard <pete@akeo.ie>
# Copyright (c) 2020, ARM Limited. All rights reserved.
#
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
@@ -18,6 +19,9 @@
[Guids]
gBcmNetTokenSpaceGuid = {0x12b97d70, 0x9149, 0x4c2f, {0x82, 0xd5, 0xad, 0xa9, 0x1e, 0x92, 0x75, 0xa1}}

[Protocols]
gBcmGenetPlatformDeviceProtocolGuid = {0x5e485a22, 0x1bb0, 0x4e22, {0x85, 0x49, 0x41, 0xfc, 0xec, 0x85, 0xdf, 0xd3}}

[PcdsFixedAtBuild]
gBcmNetTokenSpaceGuid.PcdBcmGenetRegistersAddress|0x0|UINT64|0x00000001

@@ -0,0 +1,24 @@
/** @file
Copyright (c) 2020, ARM Limited. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
**/

#ifndef BCM_GENET_PLATFORM_DEVICE_H
#define BCM_GENET_PLATFORM_DEVICE_H

#include <Uefi/UefiBaseType.h>

#define BCM_GENET_PLATFORM_DEVICE_PROTOCOL_GUID \
{0x5e485a22, 0x1bb0, 0x4e22, {0x85, 0x49, 0x41, 0xfc, 0xec, 0x85, 0xdf, 0xd3}}

typedef struct {
EFI_PHYSICAL_ADDRESS BaseAddress;
EFI_MAC_ADDRESS MacAddress;
} BCM_GENET_PLATFORM_DEVICE_PROTOCOL;

extern EFI_GUID gBcmGenetPlatformDeviceProtocolGuid;

#endif

0 comments on commit cc2e45a

Please sign in to comment.