forked from tgingold-cern/cheby
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Testfiles - Add generation of C header files for blkprefix 3 and 4
- Loading branch information
1 parent
3ce5075
commit 4f50153
Showing
3 changed files
with
101 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
#ifndef __CHEBY__BLKPREFIX3__H__ | ||
#define __CHEBY__BLKPREFIX3__H__ | ||
|
||
#include <stdint.h> | ||
|
||
#define BLKPREFIX3_SIZE 12 /* 0xc */ | ||
|
||
/* (comment missing) */ | ||
#define BLKPREFIX3_B1 0x0UL | ||
#define BLKPREFIX3_B1_SIZE 8 /* 0x8 */ | ||
|
||
/* (comment missing) */ | ||
#define BLKPREFIX3_B1_R2 0x0UL | ||
#define BLKPREFIX3_B1_R2_F1_MASK 0x7UL | ||
#define BLKPREFIX3_B1_R2_F1_SHIFT 0 | ||
#define BLKPREFIX3_B1_R2_F2 0x10UL | ||
|
||
/* (comment missing) */ | ||
#define BLKPREFIX3_B1_R3 0x4UL | ||
#define BLKPREFIX3_B1_R3_F1_MASK 0x7UL | ||
#define BLKPREFIX3_B1_R3_F1_SHIFT 0 | ||
#define BLKPREFIX3_B1_R3_F2 0x10UL | ||
|
||
/* (comment missing) */ | ||
#define BLKPREFIX3_B2 0x8UL | ||
#define BLKPREFIX3_B2_SIZE 4 /* 0x4 */ | ||
|
||
/* (comment missing) */ | ||
#define BLKPREFIX3_B2_R3 0x8UL | ||
#define BLKPREFIX3_B2_R3_F1_MASK 0x7UL | ||
#define BLKPREFIX3_B2_R3_F1_SHIFT 0 | ||
|
||
#ifndef __ASSEMBLER__ | ||
struct blkprefix3 { | ||
/* [0x0]: BLOCK (comment missing) */ | ||
/* [0x0]: REG (rw) (comment missing) */ | ||
uint32_t r2; | ||
|
||
/* [0x4]: BLOCK (comment missing) */ | ||
/* [0x0]: REG (rw) (comment missing) */ | ||
uint32_t r3; | ||
|
||
/* [0x8]: BLOCK (comment missing) */ | ||
struct b2 { | ||
/* [0x0]: REG (rw) (comment missing) */ | ||
uint32_t r3; | ||
} b2; | ||
}; | ||
#endif /* !__ASSEMBLER__*/ | ||
|
||
#endif /* __CHEBY__BLKPREFIX3__H__ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
#ifndef __CHEBY__BLKPREFIX4__H__ | ||
#define __CHEBY__BLKPREFIX4__H__ | ||
|
||
#include <stdint.h> | ||
|
||
|
||
#include "blkprefix4_1.h" | ||
#define BLKPREFIX4_SIZE 64 /* 0x40 */ | ||
|
||
/* (comment missing) */ | ||
#define BLKPREFIX4_R5 0x0UL | ||
|
||
/* (comment missing) */ | ||
#define BLKPREFIX4_SUB1 0x20UL | ||
#define ADDR_MASK_BLKPREFIX4_SUB1 0x10UL | ||
#define BLKPREFIX4_SUB1_SIZE 16 /* 0x10 */ | ||
|
||
/* (comment missing) */ | ||
#define BLKPREFIX4_SUB2 0x30UL | ||
#define ADDR_MASK_BLKPREFIX4_SUB2 0x10UL | ||
#define BLKPREFIX4_SUB2_SIZE 16 /* 0x10 */ | ||
|
||
#ifndef __ASSEMBLER__ | ||
struct blkprefix4 { | ||
/* [0x0]: REG (rw) (comment missing) */ | ||
uint32_t r5; | ||
|
||
/* padding to: 32 Bytes */ | ||
uint32_t __padding_0[7]; | ||
|
||
/* [0x20]: BLOCK (comment missing) */ | ||
struct blk { | ||
/* [0x0]: SUBMAP (comment missing) */ | ||
struct blkprefix4_1 sub1; | ||
|
||
/* padding to: 16 Bytes */ | ||
uint32_t __padding_0[1]; | ||
|
||
/* [0x10]: SUBMAP (comment missing) */ | ||
struct blkprefix4_1 sub2; | ||
|
||
/* padding to: 64 Bytes */ | ||
uint32_t __padding_1[1]; | ||
} blk; | ||
}; | ||
#endif /* !__ASSEMBLER__*/ | ||
|
||
#endif /* __CHEBY__BLKPREFIX4__H__ */ |