Add qemu 2.4.0
[kvmfornfv.git] / qemu / roms / SLOF / board-js2x / rtas / rtas_i2c_bmc.h
1 /******************************************************************************
2  * Copyright (c) 2004, 2008 IBM Corporation
3  * All rights reserved.
4  * This program and the accompanying materials
5  * are made available under the terms of the BSD License
6  * which accompanies this distribution, and is available at
7  * http://www.opensource.org/licenses/bsd-license.php
8  *
9  * Contributors:
10  *     IBM Corporation - initial implementation
11  *****************************************************************************/
12
13 #ifndef __RTAS_I2C_BMC_H
14 #define __RTAS_I2C_BMC_H
15
16 #include <stddef.h>
17
18 void i2c_system_reboot (void);
19 void i2c_power_off (void);
20 short i2c_set_flashside (short mode);
21 short i2c_get_flashside (void);
22 int i2c_stop_bootwatchdog (void);
23 uint32_t i2c_read_vpd (uint8_t *dst, uint32_t len, uint32_t offset);
24 uint32_t i2c_write_vpd (uint8_t *src, uint32_t len, uint32_t offset);
25 int i2c_set_bootwatchdog(unsigned short seconds);
26
27 #endif          /* __RTAS_I2C_BMC_H */