• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* ----------------------------------------------------------------------- *
2  *
3  *   Copyright 2006-2009 Erwan Velu - All Rights Reserved
4  *
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.
10  *
11  * ----------------------------------------------------------------------- */
12 
13 #ifndef DMI_IPMI_H
14 #define DMI_IPMI_H
15 
16 #define IPMI_INTERFACE_TYPE_SIZE	32
17 #define IPMI_MEMORY_MODEL_SIZE		16
18 
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;
26 
27     uint8_t irq;
28     bool filled;
29 } s_ipmi;
30 
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
34