Adding upstream version 3.86+dfsg.
[syslinux-debian/hramrach.git] / com32 / gplinclude / dmi / dmi_cache.h
blobcfd7114eace735eb583da7df9e2d8c033bbbb76a
1 /* ----------------------------------------------------------------------- *
3 * Copyright 2009 Pierre-Alexandre Meyer - All Rights Reserved
5 * Some part borrowed from DMI Decode:
7 * (C) 2000-2002 Alan Cox <alan@redhat.com>
8 * (C) 2002-2007 Jean Delvare <khali@linux-fr.org>
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation, Inc., 53 Temple Place Ste 330,
13 * Boston MA 02111-1307, USA; either version 2 of the License, or
14 * (at your option) any later version; incorporated herein by reference.
16 * ----------------------------------------------------------------------- */
18 #ifndef DMI_CACHE_H
19 #define DMI_CACHE_H
21 #include <stdint.h>
23 #include "stdbool.h"
25 typedef struct {
26 char socket_designation[32];
27 char configuration[32];
28 char mode[32];
29 char location[8];
30 uint16_t installed_size;
31 uint16_t max_size;
32 char supported_sram_types[32];
33 char installed_sram_types[32];
34 uint16_t speed;
35 char error_correction_type[32];
36 char system_type[16];
37 char associativity[32];
38 } __attribute__ ((__packed__)) s_cache;
40 const char *dmi_cache_mode(uint8_t code);
41 const char *dmi_cache_location(uint8_t code);
42 uint16_t dmi_cache_size(uint16_t code);
43 void dmi_cache_types(uint16_t code, const char *sep, char *array);
44 const char *dmi_cache_ec_type(uint8_t code);
45 const char *dmi_cache_type(uint8_t code);
46 const char *dmi_cache_associativity(uint8_t code);
47 #endif /* DMI_CACHE_H */