wdenk | 452cfd6 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 1 | #ifndef _SMBUS_H_ |
| 2 | #define _SMBUS_H_ |
| 3 | |
| 4 | #include "short_types.h" |
| 5 | |
| 6 | #define SM_DIMM0_ADDR 0x51 |
| 7 | #define SM_DIMM1_ADDR 0x52 |
| 8 | |
| 9 | void sm_write_mode(void); |
| 10 | void sm_read_mode(void); |
| 11 | void sm_write_byte(uint8 writeme); |
| 12 | uint8 sm_read_byte(void); |
| 13 | int sm_get_ack(void); |
| 14 | void sm_write_ack(void); |
| 15 | void sm_write_nack(void); |
| 16 | void sm_send_start(void); |
| 17 | void sm_send_stop(void); |
| 18 | int sm_read_byte_from_device(uint8 addr, uint8 reg, uint8 *storage); |
| 19 | int sm_get_data(uint8 *DataArray, int dimm_socket); |
| 20 | void sm_init(void); |
| 21 | void sm_term(void); |
| 22 | #endif |