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 * ----------------------------------------------------------------------- */
26 char socket_designation
[32];
27 char configuration
[32];
30 uint16_t installed_size
;
32 char supported_sram_types
[32];
33 char installed_sram_types
[32];
35 char error_correction_type
[32];
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 */