[edk2-devel] [PATCH edk2-platforms v3 2/8] Silicon/Broadcom: Add BcmGenetPlatformDevice protocol

Ard Biesheuvel ard.biesheuvel at arm.com
Tue May 12 16:41:19 UTC 2020


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 at arm.com>
Reviewed-by: Leif Lindholm <leif at nuviainc.com>
---
 Silicon/Broadcom/Drivers/Net/BcmNet.dec                                |  4 ++++
 Silicon/Broadcom/Drivers/Net/Include/Protocol/BcmGenetPlatformDevice.h | 24 ++++++++++++++++++++
 2 files changed, 28 insertions(+)

diff --git a/Silicon/Broadcom/Drivers/Net/BcmNet.dec b/Silicon/Broadcom/Drivers/Net/BcmNet.dec
index 4a55946e8f80..fda3caf0b4ef 100644
--- a/Silicon/Broadcom/Drivers/Net/BcmNet.dec
+++ b/Silicon/Broadcom/Drivers/Net/BcmNet.dec
@@ -1,6 +1,7 @@
 ## @file
 #
 #  Copyright (c) 2020, Pete Batard <pete at akeo.ie>
+#  Copyright (c) 2020, ARM Limited. All rights reserved.
 #
 #  SPDX-License-Identifier: BSD-2-Clause-Patent
 #
@@ -18,6 +19,9 @@ [Includes]
 [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
 
diff --git a/Silicon/Broadcom/Drivers/Net/Include/Protocol/BcmGenetPlatformDevice.h b/Silicon/Broadcom/Drivers/Net/Include/Protocol/BcmGenetPlatformDevice.h
new file mode 100644
index 000000000000..3af4f4aec622
--- /dev/null
+++ b/Silicon/Broadcom/Drivers/Net/Include/Protocol/BcmGenetPlatformDevice.h
@@ -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
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#59300): https://edk2.groups.io/g/devel/message/59300
Mute This Topic: https://groups.io/mt/74162665/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-




More information about the edk2-devel-archive mailing list