blob: beeb6a06aaff9018ce103adbd3f89fbe9f16a657 [file] [log] [blame]
wdenkc7de8292002-11-19 11:04:11 +00001#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
9void sm_write_mode(void);
10void sm_read_mode(void);
11void sm_write_byte(uint8 writeme);
12uint8 sm_read_byte(void);
13int sm_get_ack(void);
14void sm_write_ack(void);
15void sm_write_nack(void);
16void sm_send_start(void);
17void sm_send_stop(void);
18int sm_read_byte_from_device(uint8 addr, uint8 reg, uint8 *storage);
19int sm_get_data(uint8 *DataArray, int dimm_socket);
20void sm_init(void);
21void sm_term(void);
22#endif