Adding upstream version 3.86+dfsg.
[syslinux-debian/hramrach.git] / com32 / gplinclude / dmi / dmi_ipmi.h
blob9110ae4f71924d42def81f272772670070a5a549
1 /* ----------------------------------------------------------------------- *
3 * Copyright 2006-2009 Erwan Velu - All Rights Reserved
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, Inc., 53 Temple Place Ste 330,
8 * Boston MA 02111-1307, USA; either version 2 of the License, or
9 * (at your option) any later version; incorporated herein by reference.
11 * ----------------------------------------------------------------------- */
13 #ifndef DMI_IPMI_H
14 #define DMI_IPMI_H
16 #define IPMI_INTERFACE_TYPE_SIZE 32
17 #define IPMI_MEMORY_MODEL_SIZE 16
19 typedef struct {
20 char interface_type[IPMI_INTERFACE_TYPE_SIZE];
21 uint8_t major_specification_version;
22 uint8_t minor_specification_version;
23 uint8_t I2C_slave_address;
24 uint16_t nv_address;
25 uint64_t base_address;
27 uint8_t irq;
28 bool filled;
29 } s_ipmi;
31 void dmi_ipmi_base_address(uint8_t type, const uint8_t * p, s_ipmi * ipmi);
32 const char *dmi_ipmi_interface_type(uint8_t code);
33 #endif