Patrick Venture | 3d1786b | 2018-08-01 11:19:24 -0700 | [diff] [blame^] | 1 | #pragma once |
| 2 | |
| 3 | /* |
| 4 | * flashStartTransfer -- starts file upload. |
| 5 | * flashDataBlock -- adds data to image file. |
| 6 | * flashDataFinish -- closes the file. |
| 7 | * |
| 8 | * flashStartHash -- starts uploading hash. |
| 9 | * flashDataHash -- adds data to the hash. |
| 10 | * flashDataVerify -- triggers verification. |
| 11 | * |
| 12 | * flashAbort -- abort everything. |
| 13 | * |
| 14 | * flashVerifyCheck -- Check if the verification has completed. |
| 15 | * |
| 16 | * flashVersion -- Get the version of this OEM Handler. |
| 17 | * |
| 18 | * flashRequestRegion -- Request the physical address for decode (bridge) |
| 19 | * flashDataExtBlock -- Provide image data via a bridge |
| 20 | * flashHashExtData -- Provide hash data via a bridge |
| 21 | */ |
| 22 | enum FlashSubCmds |
| 23 | { |
| 24 | /* Start a transfer. */ |
| 25 | flashStartTransfer = 0, |
| 26 | /* Data block. */ |
| 27 | flashDataBlock = 1, |
| 28 | /* Close file. */ |
| 29 | flashDataFinish = 2, |
| 30 | |
| 31 | /* Start a hash transfer. */ |
| 32 | flashStartHash = 3, |
| 33 | /* Add data to the hash. */ |
| 34 | flashHashData = 4, |
| 35 | /* Close out the hash file. */ |
| 36 | flashHashFinish = 5, |
| 37 | |
| 38 | /* Verify the flash image against the hast sent. */ |
| 39 | flashDataVerify = 6, |
| 40 | |
| 41 | /* Abort. */ |
| 42 | flashAbort = 7, |
| 43 | |
| 44 | /* |
| 45 | * Check if the verification is ready and was successful. |
| 46 | * If the response from the IPMI command is OK, check the |
| 47 | * response bytes to know if it's ready or still computing, |
| 48 | * or failed. |
| 49 | */ |
| 50 | flashVerifyCheck = 8, |
| 51 | |
| 52 | flashVersion = 9, |
| 53 | flashRequestRegion = 10, |
| 54 | flashDataExtBlock = 11, |
| 55 | flashHashExtData = 12, |
| 56 | flashMapRegionLpc = 13, |
| 57 | }; |