blob: 3cd7609039702805aab1f7091a0d9ab5971dbcdf [file] [log] [blame]
Sven Schnelle7435baa2012-07-08 18:32:23 +02001#ifndef __IPMI_KCS_H
2#define __IPMI_KCS_H
3/*
4 * This file is part of the coreboot project.
5 *
6 * Copyright (C) 2012 Sven Schnelle <svens@stackframe.org>
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License as
10 * published by the Free Software Foundation; version 2 of
11 * the License.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
Sven Schnelle7435baa2012-07-08 18:32:23 +020017 */
18
19#define IPMI_NETFN_CHASSIS 0x00
20#define IPMI_NETFN_BRIDGE 0x02
21#define IPMI_NETFN_SENSOREVENT 0x04
22#define IPMI_NETFN_APPLICATION 0x06
23#define IPMI_NETFN_FIRMWARE 0x08
24#define IPMI_NETFN_STORAGE 0x0a
25#define IPMI_NETFN_TRANSPORT 0x0c
26
27#define IPMI_CMD_ACPI_POWERON 0x06
28
29extern int ipmi_kcs_message(int port, int netfn, int lun, int cmd,
30 const unsigned char *inmsg, int inlen,
31 unsigned char *outmsg, int outlen);
32#endif