9 #define IPMI_KCS_STATE(_x) ((_x) >> 6)
11 #define IPMI_KCS_GET_STATUS_ABORT 0x60
12 #define IPMI_KCS_START_WRITE 0x61
13 #define IPMI_KCS_END_WRITE 0x62
14 #define IPMI_KCS_READ_BYTE 0x68
16 #define IPMI_KCS_OBF 0x01
17 #define IPMI_KCS_IBF 0x02
18 #define IPMI_KCS_ATN 0x04
20 #define IPMI_KCS_STATE_IDLE 0x00
21 #define IPMI_KCS_STATE_READ 0x01
22 #define IPMI_KCS_STATE_WRITE 0x02
23 #define IPMI_KCS_STATE_ERROR 0x03
25 #define IPMI_CMD(_x) ((_x) + CONFIG_IPMI_KCS_REGISTER_SPACING)
26 #define IPMI_DATA(_x) ((_x))
27 #define IPMI_STAT(_x) ((_x) + CONFIG_IPMI_KCS_REGISTER_SPACING)
127 const unsigned char *msg,
int len)
209 if (msg && (ret < len)) {
223 const unsigned char *inmsg,
int inlen,
224 unsigned char *outmsg,
int outlen)
#define printk(level,...)
void outb(u8 val, u16 port)
#define wait_ms(timeout_ms, condition)
#define IPMI_KCS_STATE_IDLE
#define IPMI_KCS_STATE_WRITE
#define IPMI_KCS_STATE_READ
#define IPMI_KCS_START_WRITE
#define IPMI_KCS_READ_BYTE
static int ipmi_kcs_send_last_data_byte(int port, const unsigned char byte)
static int ipmi_kcs_send_message(int port, int netfn, int lun, int cmd, const unsigned char *msg, int len)
static int ipmi_kcs_send_cmd_byte(int port, const unsigned char byte)
static int ipmi_kcs_send_data_byte(int port, const unsigned char byte)
static int wait_obf_timeout(int port)
#define IPMI_KCS_END_WRITE
static unsigned char ipmi_kcs_status(int port)
static int ipmi_kcs_read_message(int port, unsigned char *msg, int len)
#define IPMI_KCS_STATE(_x)
int ipmi_kcs_message(int port, int netfn, int lun, int cmd, const unsigned char *inmsg, int inlen, unsigned char *outmsg, int outlen)
static int wait_ibf_timeout(int port)
#define BIOS_ERR
BIOS_ERR - System in incomplete state.
#define BIOS_SPEW
BIOS_SPEW - Excessively verbose output.