diff options
| author | Daniel Bevenius <[email protected]> | 2022-08-24 15:58:44 +0200 |
|---|---|---|
| committer | Daniel Bevenius <[email protected]> | 2022-08-24 15:58:44 +0200 |
| commit | bb76a29ff160580a934343a1ab10313e7b408da0 (patch) | |
| tree | 67937ca1d702c9f3c17d66423720e07ec769970f | |
| parent | 9218aff498aa4f9fca5d0aa3134fda6462801a2e (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
| -rw-r--r-- | src/lib.rs | 2 |
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; | |||
| 91 | const BACKPLANE_ADDRESS_32BIT_FLAG: u32 = 0x08000; | 91 | const BACKPLANE_ADDRESS_32BIT_FLAG: u32 = 0x08000; |
| 92 | const BACKPLANE_MAX_TRANSFER_SIZE: usize = 64; | 92 | const BACKPLANE_MAX_TRANSFER_SIZE: usize = 64; |
| 93 | 93 | ||
| 94 | // Broadcom AMBA (Advanced Microcontroller Bus Architecture) Interconnect (AI) | ||
| 95 | // constants | ||
| 94 | const AI_IOCTRL_OFFSET: u32 = 0x408; | 96 | const AI_IOCTRL_OFFSET: u32 = 0x408; |
| 95 | const AI_IOCTRL_BIT_FGC: u8 = 0x0002; | 97 | const AI_IOCTRL_BIT_FGC: u8 = 0x0002; |
| 96 | const AI_IOCTRL_BIT_CLOCK_EN: u8 = 0x0001; | 98 | const AI_IOCTRL_BIT_CLOCK_EN: u8 = 0x0001; |
