summaryrefslogtreecommitdiffstats
path: root/src/usr/hwpf/hwp/slave_sbe/proc_check_slave_sbe_seeprom_complete/proc_read_seeprom.H
blob: cf96592cf856b93138b0f220a75d630da74fa1a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
/* IBM_PROLOG_BEGIN_TAG                                                   */
/* This is an automatically generated prolog.                             */
/*                                                                        */
/* $Source: src/usr/hwpf/hwp/slave_sbe/proc_check_slave_sbe_seeprom_complete/proc_read_seeprom.H $ */
/*                                                                        */
/* OpenPOWER HostBoot Project                                             */
/*                                                                        */
/* COPYRIGHT International Business Machines Corp. 2012,2014              */
/*                                                                        */
/* Licensed under the Apache License, Version 2.0 (the "License");        */
/* you may not use this file except in compliance with the License.       */
/* You may obtain a copy of the License at                                */
/*                                                                        */
/*     http://www.apache.org/licenses/LICENSE-2.0                         */
/*                                                                        */
/* Unless required by applicable law or agreed to in writing, software    */
/* distributed under the License is distributed on an "AS IS" BASIS,      */
/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or        */
/* implied. See the License for the specific language governing           */
/* permissions and limitations under the License.                         */
/*                                                                        */
/* IBM_PROLOG_END_TAG                                                     */
// $Id: proc_read_seeprom.H,v 1.4 2013/06/06 20:45:13 cswenson Exp $
/* File proc_read_seeprom.H created by KUHFAL, CHRISTINA L. (CHRISTY) on Thu Jun 21 2012. */

/* Change Activity: */
/* End Change Activity */

#ifndef _PROC_READ_SEEPROM_H
#define _PROC_READ_SEEPROM_H

//------------------------------------------------------------------------------
// Includes
//------------------------------------------------------------------------------

#include <fapi.H>
#include "p8_scom_addresses.H"

//------------------------------------------------------------------------------
// Structure definitions
//------------------------------------------------------------------------------

// function pointer typedef definition for HWP call support
typedef fapi::ReturnCode (*proc_read_seeprom_FP_t)(const fapi::Target &,
						   uint32_t &, uint32_t &, bool &, uint64_t *, bool &);

//------------------------------------------------------------------------------
// Function prototypes
//------------------------------------------------------------------------------


extern "C"
{

/**
 * @Read seeprom_0 or seeprom_1
 *
 * @param[in] i_target      Reference to processor chip target
 * @param[in] i_start_addr  The starting address to begin reading the seeprom
 * @param[in] i_length The  Length that is to be read from seeprom
 * @param[in] i_ecc_disable True if ecc is to be disabled false otherwise
 * @param[in] return_data   Data returned to the wrapper
 * @param[in] use_secondary True if secondary seeprom is to used, false otherwise
 * @return ReturnCode
 */
   fapi::ReturnCode proc_read_seeprom(const fapi::Target & i_target,
				      uint32_t & i_start_addr, uint32_t & i_length, bool & i_ecc_disable, uint64_t * return_data, bool & use_secondary);  

} // extern "C"

#endif /* _PROC_READ_SEEPROM_H */

/* Change Log
<@log@>

Fri Jul 27 2012  08:29:15  by KUHFAL, CHRISTINA L. (CHRISTY)
<reason><version><Brief description and why change was made.>

Fri Jun 22 2012  14:22:35  by KUHFAL, CHRISTINA L. (CHRISTY)
<reason><version><Brief description and why change was made.>

Thu Jun 21 2012  10:02:20  by KUHFAL, CHRISTINA L. (CHRISTY)
<reason><version><Brief description and why change was made.>
*/
OpenPOWER on IntegriCloud