1 /******************************************************************************
2 * Copyright (c) 2004, 2008 IBM Corporation
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
10 * IBM Corporation - initial implementation
11 *****************************************************************************/
13 #ifndef __RTAS_I2C_BMC_H
14 #define __RTAS_I2C_BMC_H
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);
27 #endif /* __RTAS_I2C_BMC_H */