aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Bevenius <[email protected]>2022-08-24 15:58:44 +0200
committerDaniel Bevenius <[email protected]>2022-08-24 15:58:44 +0200
commitbb76a29ff160580a934343a1ab10313e7b408da0 (patch)
tree67937ca1d702c9f3c17d66423720e07ec769970f /src
parent9218aff498aa4f9fca5d0aa3134fda6462801a2e (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 1c49771b9..b8c003297 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -91,6 +91,8 @@ const BACKPLANE_ADDRESS_MASK: u32 = 0x7FFF;
91const BACKPLANE_ADDRESS_32BIT_FLAG: u32 = 0x08000; 91const BACKPLANE_ADDRESS_32BIT_FLAG: u32 = 0x08000;
92const BACKPLANE_MAX_TRANSFER_SIZE: usize = 64; 92const BACKPLANE_MAX_TRANSFER_SIZE: usize = 64;
93 93
94// Broadcom AMBA (Advanced Microcontroller Bus Architecture) Interconnect (AI)
95// constants
94const AI_IOCTRL_OFFSET: u32 = 0x408; 96const AI_IOCTRL_OFFSET: u32 = 0x408;
95const AI_IOCTRL_BIT_FGC: u8 = 0x0002; 97const AI_IOCTRL_BIT_FGC: u8 = 0x0002;
96const AI_IOCTRL_BIT_CLOCK_EN: u8 = 0x0001; 98const AI_IOCTRL_BIT_CLOCK_EN: u8 = 0x0001;