blob: cb57e291bd8d369eb1ed977b49008485d1ffecde [file] [log] [blame]
Kuiying Wang11beff12019-04-11 15:54:49 +08001description: >
Patrick Williamsa1347412022-12-06 10:56:22 -06002 Monitor Post code coming and buffer all of them based on boot cycle into
3 file system.
Kuiying Wang11beff12019-04-11 15:54:49 +08004
5properties:
Zhikui Ren8aec9462020-02-12 09:09:00 -08006 - name: CurrentBootCycleCount
Kuiying Wang11beff12019-04-11 15:54:49 +08007 type: uint16
8 description: >
Patrick Williamsa1347412022-12-06 10:56:22 -06009 It is used to indicate number of boot cycles that have post codes
10 archived. It starts from 1 and is limited to MaxBootCycleNum.
Kuiying Wang11beff12019-04-11 15:54:49 +080011 - name: MaxBootCycleNum
12 type: uint16
13 description: >
Patrick Williamsa1347412022-12-06 10:56:22 -060014 The max cached boot cycles for post code. It is used to indicate end
15 user what's the max boot number, and make sure get command parameter
16 less than it.
Kuiying Wang11beff12019-04-11 15:54:49 +080017methods:
Zhikui Ren8aec9462020-02-12 09:09:00 -080018 - name: GetPostCodesWithTimeStamp
19 description: >
Patrick Williamsa1347412022-12-06 10:56:22 -060020 Method to get the cached post codes of the indicated boot cycle with
21 timestamp.
Zhikui Ren8aec9462020-02-12 09:09:00 -080022 parameters:
Patrick Williams8da396c2022-03-14 14:21:02 -050023 - name: Index
24 type: uint16
25 description: >
Patrick Williamsa1347412022-12-06 10:56:22 -060026 Index indicates which boot cycle of post codes is requested. 1
27 is for the most recent boot cycle. CurrentBootCycleCount is for
28 the oldest boot cycle.
Zhikui Ren8aec9462020-02-12 09:09:00 -080029 returns:
Patrick Williams8da396c2022-03-14 14:21:02 -050030 - name: Codes
31 type: dict[uint64, struct[uint64,array[byte]]]
32 description: >
33 An array of post codes and timestamp in microseconds since epoch
Kuiying Wang11beff12019-04-11 15:54:49 +080034 - name: GetPostCodes
35 description: >
36 Method to get the cached post codes of the indicated boot cycle.
37 parameters:
Patrick Williams8da396c2022-03-14 14:21:02 -050038 - name: Index
39 type: uint16
40 description: >
Patrick Williamsa1347412022-12-06 10:56:22 -060041 Index indicates which boot cycle of post codes is requested. 1
42 is for the most recent boot cycle. CurrentBootCycleCount is for
43 the oldest boot cycle.
Kuiying Wang11beff12019-04-11 15:54:49 +080044 returns:
Patrick Williams8da396c2022-03-14 14:21:02 -050045 - name: Codes
46 type: array[struct[uint64,array[byte]]]
47 description: >
48 An array of post codes of one boot cycle.