-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathasmdef.h
More file actions
32 lines (26 loc) · 738 Bytes
/
Copy pathasmdef.h
File metadata and controls
32 lines (26 loc) · 738 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef BCM2DUMP_ASMDEF_H
#define BCM2DUMP_ASMDEF_H
#define BCM2_RWCODE_MAGIC 0xbeefc0de
// pointer to buffer, offset length
#define BCM2_READ_FUNC_PBOL 0
// buffer, offset, length
#define BCM2_READ_FUNC_BOL (1 << 0)
// offset, buffer, length
#define BCM2_READ_FUNC_OBL (1 << 1)
// offset, length
#define BCM2_ERASE_FUNC_OL (1 << 8)
// offset, partition size
#define BCM2_ERASE_FUNC_OS (1 << 9)
// offset, end
#define BCM2_ARGS_OE (1 << 16)
// offset, length
#define BCM2_ARGS_OL (1 << 17)
// ignore return value
#define BCM2_RET_VOID 0
// returns zero on success
#define BCM2_RET_OK_0 (1 << 0)
// returns zero on error
#define BCM2_RET_ERR_0 (1 << 1)
// returns length on success
#define BCM2_RET_OK_LEN (1 << 2)
#endif