* Retrieve the Serial ID of the NFP * * @param cpp * NFP CPP handle * @param serial * Pointer to NFP serial number * * @return * Length of NFP serial number */
| 153 | * Length of NFP serial number |
| 154 | */ |
| 155 | uint32_t |
| 156 | nfp_cpp_serial(struct nfp_cpp *cpp, |
| 157 | const uint8_t **serial) |
| 158 | { |
| 159 | *serial = &cpp->serial[0]; |
| 160 | |
| 161 | return sizeof(cpp->serial); |
| 162 | } |
| 163 | |
| 164 | /** |
| 165 | * Set the private instance owned data of a nfp_cpp struct |