blob: d72ef2bbfd5fc0d3384bdcf689b59ac5673ae536 [file] [log] [blame]
Kuiying Wang11beff12019-04-11 15:54:49 +08001description: >
2 Monitor Post code coming and buffer all of them based on boot cycle
3 into file system.
4
5properties:
Zhikui Ren8aec9462020-02-12 09:09:00 -08006 - name: CurrentBootCycleCount
Kuiying Wang11beff12019-04-11 15:54:49 +08007 type: uint16
8 description: >
Zhikui Ren8aec9462020-02-12 09:09:00 -08009 It is used to indicate number of boot cycles that have
10 post codes archived. It starts from 1 and is limited to
11 MaxBootCycleNum.
Kuiying Wang11beff12019-04-11 15:54:49 +080012 - name: MaxBootCycleNum
13 type: uint16
14 description: >
15 The max cached boot cycles for post code.
16 It is used to indicate end user what's the max boot number,
17 and make sure get command parameter less than it.
18methods:
Zhikui Ren8aec9462020-02-12 09:09:00 -080019 - name: GetPostCodesWithTimeStamp
20 description: >
21 Method to get the cached post codes of the indicated boot cycle with timestamp.
22 parameters:
Patrick Williams8da396c2022-03-14 14:21:02 -050023 - name: Index
24 type: uint16
25 description: >
26 Index indicates which boot cycle of post codes is requested.
27 1 is for the most recent boot cycle. CurrentBootCycleCount is for the
28 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: >
41 Index indicates which boot cycle of post codes is requested.
42 1 is for the most recent boot cycle. CurrentBootCycleCount is for the
43 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.