diff options
author | Erwan Velu <erwan.velu@free.fr> | 2009-03-22 09:23:15 +0100 |
---|---|---|
committer | Erwan Velu <erwan.velu@free.fr> | 2009-03-22 09:23:15 +0100 |
commit | 34e44cb14e28e7cfe93de8d625c9c5a4a092a6d8 (patch) | |
tree | d5d555b673e6d83c7c2c79027f51af4e8c634b1d /com32/gplinclude/dmi/dmi_ipmi.h | |
parent | c9638ff9ac818ae744d5d66885f431f5b4e2ba93 (diff) | |
download | syslinux-34e44cb14e28e7cfe93de8d625c9c5a4a092a6d8.tar.gz |
dmi: Adding IPMI detection
Impact: IPMI base board can now be detected
Detecting IPMI via DMI structures
Diffstat (limited to 'com32/gplinclude/dmi/dmi_ipmi.h')
-rw-r--r-- | com32/gplinclude/dmi/dmi_ipmi.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/com32/gplinclude/dmi/dmi_ipmi.h b/com32/gplinclude/dmi/dmi_ipmi.h new file mode 100644 index 00000000..7dcb71b9 --- /dev/null +++ b/com32/gplinclude/dmi/dmi_ipmi.h @@ -0,0 +1,33 @@ +/* ----------------------------------------------------------------------- * + * + * Copyright 2006-2009 Erwan Velu - All Rights Reserved + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, Inc., 53 Temple Place Ste 330, + * Boston MA 02111-1307, USA; either version 2 of the License, or + * (at your option) any later version; incorporated herein by reference. + * + * ----------------------------------------------------------------------- */ + +#ifndef DMI_IPMI_H +#define DMI_IPMI_H + +#define IPMI_INTERFACE_TYPE_SIZE 32 +#define IPMI_MEMORY_MODEL_SIZE 16 + +typedef struct { +char interface_type[IPMI_INTERFACE_TYPE_SIZE]; +uint8_t major_specification_version; +uint8_t minor_specification_version; +uint8_t I2C_slave_address; +uint16_t nv_address; +uint64_t base_address; + +uint8_t irq; +bool filled; +} s_ipmi; + +void dmi_ipmi_base_address(uint8_t type, const uint8_t *p, s_ipmi *ipmi); +const char *dmi_ipmi_interface_type(uint8_t code); +#endif |