From bb76a29ff160580a934343a1ab10313e7b408da0 Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Wed, 24 Aug 2022 15:58:44 +0200 Subject: [PATCH] Add comment for AI constants This commit adds a comment about the AI_* constants. The motivation for using this definition is from looking in the following file: https://github.com/seemoo-lab/bcm-public/blob/master/firmware_patching/examples/ioctl/bcmdhd/include/aidmp.h#L2 https://github.com/seemoo-lab/bcm-public/blob/master/firmware_patching/examples/ioctl/bcmdhd/include/aidmp.h#L307-L361 --- src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 1c49771b..b8c00329 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -91,6 +91,8 @@ const BACKPLANE_ADDRESS_MASK: u32 = 0x7FFF; const BACKPLANE_ADDRESS_32BIT_FLAG: u32 = 0x08000; const BACKPLANE_MAX_TRANSFER_SIZE: usize = 64; +// Broadcom AMBA (Advanced Microcontroller Bus Architecture) Interconnect (AI) +// constants const AI_IOCTRL_OFFSET: u32 = 0x408; const AI_IOCTRL_BIT_FGC: u8 = 0x0002; const AI_IOCTRL_BIT_CLOCK_EN: u8 = 0x0001;