summaryrefslogtreecommitdiff
path: root/chip/g/sn_bits.h
blob: 372c6eb16a2ab2bc1b99774b5d82d8e694c60960 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
 * Copyright 2018 The ChromiumOS Authors
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#ifndef __EC_CHIP_G_SN_BITS_H
#define __EC_CHIP_G_SN_BITS_H

#include "board_space.h"

/**
 * Reads the SN data from the flash INFO1 space.
 *
 * @param id    Pointer to a sn_data structure to fill
 *
 * @return      EC_SUCCESS or an error code in case of failure.
 */
int read_sn_data(struct sn_data *sn);

#endif  /* ! __EC_CHIP_G_SN_BITS_H */