blob: cc4156acf03dfd29dfb4dd1c1ad26dcc5c268a28 [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.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
21 * MA 02110-1301 USA
22 */
23
24#define IPMI_NETFN_CHASSIS 0x00
25#define IPMI_NETFN_BRIDGE 0x02
26#define IPMI_NETFN_SENSOREVENT 0x04
27#define IPMI_NETFN_APPLICATION 0x06
28#define IPMI_NETFN_FIRMWARE 0x08
29#define IPMI_NETFN_STORAGE 0x0a
30#define IPMI_NETFN_TRANSPORT 0x0c
31
32#define IPMI_CMD_ACPI_POWERON 0x06
33
34extern int ipmi_kcs_message(int port, int netfn, int lun, int cmd,
35 const unsigned char *inmsg, int inlen,
36 unsigned char *outmsg, int outlen);
37#endif