summaryrefslogtreecommitdiff
path: root/util/nvramtool/layout.h
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@coresystems.de>2010-01-13 21:00:23 +0000
committerStefan Reinauer <stepan@openbios.org>2010-01-13 21:00:23 +0000
commit90b96b68e0fedbc1d76e8547cad39c57021d5119 (patch)
tree115d59e288347288b4ab1fa913bc783383a55805 /util/nvramtool/layout.h
parent766db7ea09addca79d91436cb7ac06a9bff491a5 (diff)
downloadcoreboot-90b96b68e0fedbc1d76e8547cad39c57021d5119.tar.xz
indent all of nvramtool to make it fit into coreboot's
coding style Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5007 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/nvramtool/layout.h')
-rw-r--r--util/nvramtool/layout.h89
1 files changed, 42 insertions, 47 deletions
diff --git a/util/nvramtool/layout.h b/util/nvramtool/layout.h
index 0e86aeb066..d99275c031 100644
--- a/util/nvramtool/layout.h
+++ b/util/nvramtool/layout.h
@@ -45,44 +45,40 @@
#define LAYOUT_SUMMED_AREA_OUT_OF_RANGE (LAYOUT_RESULT_START + 8)
#define LAYOUT_CHECKSUM_LOCATION_OUT_OF_RANGE (LAYOUT_RESULT_START + 9)
-typedef enum
- { CMOS_ENTRY_ENUM,
- CMOS_ENTRY_HEX,
- CMOS_ENTRY_STRING,
- CMOS_ENTRY_RESERVED
- }
-cmos_entry_config_t;
+typedef enum {
+ CMOS_ENTRY_ENUM,
+ CMOS_ENTRY_HEX,
+ CMOS_ENTRY_STRING,
+ CMOS_ENTRY_RESERVED
+} cmos_entry_config_t;
/* This represents a CMOS parameter. */
-typedef struct
- { unsigned bit;
- unsigned length;
- cmos_entry_config_t config;
- unsigned config_id;
- char name[CMOS_MAX_NAME_LENGTH + 1];
- }
-cmos_entry_t;
+typedef struct {
+ unsigned bit;
+ unsigned length;
+ cmos_entry_config_t config;
+ unsigned config_id;
+ char name[CMOS_MAX_NAME_LENGTH + 1];
+} cmos_entry_t;
/* This represents a possible value for a CMOS parameter of type
* CMOS_ENTRY_ENUM.
*/
-typedef struct
- { unsigned config_id;
- unsigned long long value;
- char text[CMOS_MAX_TEXT_LENGTH + 1];
- }
-cmos_enum_t;
+typedef struct {
+ unsigned config_id;
+ unsigned long long value;
+ char text[CMOS_MAX_TEXT_LENGTH + 1];
+} cmos_enum_t;
-/* This represents the location of the CMOS checksum and the area over which
- * it is computed. Depending on the context, the values may be represented as
- * either bit positions or byte positions.
+/* This represents the location of the CMOS checksum and the area over
+ * which it is computed. Depending on the context, the values may be
+ * represented as either bit positions or byte positions.
*/
-typedef struct
- { unsigned summed_area_start; /* first checksummed location */
- unsigned summed_area_end; /* last checksummed location */
- unsigned checksum_at; /* location of checksum */
- }
-cmos_checksum_layout_t;
+typedef struct {
+ unsigned summed_area_start; /* first checksummed location */
+ unsigned summed_area_end; /* last checksummed location */
+ unsigned checksum_at; /* location of checksum */
+} cmos_checksum_layout_t;
extern const char checksum_param_name[];
@@ -94,21 +90,20 @@ extern unsigned cmos_checksum_index;
typedef void (*cmos_layout_get_fn_t) (void);
-void register_cmos_layout_get_fn (cmos_layout_get_fn_t fn);
-void get_cmos_layout (void);
-int add_cmos_entry (const cmos_entry_t *e, const cmos_entry_t **conflict);
-const cmos_entry_t * find_cmos_entry (const char name[]);
-const cmos_entry_t * first_cmos_entry (void);
-const cmos_entry_t * next_cmos_entry (const cmos_entry_t *last);
-int add_cmos_enum (const cmos_enum_t *e);
-const cmos_enum_t * find_cmos_enum (unsigned config_id,
- unsigned long long value);
-const cmos_enum_t * first_cmos_enum (void);
-const cmos_enum_t * next_cmos_enum (const cmos_enum_t *last);
-const cmos_enum_t * first_cmos_enum_id (unsigned config_id);
-const cmos_enum_t * next_cmos_enum_id (const cmos_enum_t *last);
-int is_checksum_name (const char name[]);
-int checksum_layout_to_bytes (cmos_checksum_layout_t *layout);
-void checksum_layout_to_bits (cmos_checksum_layout_t *layout);
+void register_cmos_layout_get_fn(cmos_layout_get_fn_t fn);
+void get_cmos_layout(void);
+int add_cmos_entry(const cmos_entry_t * e, const cmos_entry_t ** conflict);
+const cmos_entry_t *find_cmos_entry(const char name[]);
+const cmos_entry_t *first_cmos_entry(void);
+const cmos_entry_t *next_cmos_entry(const cmos_entry_t * last);
+int add_cmos_enum(const cmos_enum_t * e);
+const cmos_enum_t *find_cmos_enum(unsigned config_id, unsigned long long value);
+const cmos_enum_t *first_cmos_enum(void);
+const cmos_enum_t *next_cmos_enum(const cmos_enum_t * last);
+const cmos_enum_t *first_cmos_enum_id(unsigned config_id);
+const cmos_enum_t *next_cmos_enum_id(const cmos_enum_t * last);
+int is_checksum_name(const char name[]);
+int checksum_layout_to_bytes(cmos_checksum_layout_t * layout);
+void checksum_layout_to_bits(cmos_checksum_layout_t * layout);
-#endif /* LAYOUT_H */
+#endif /* LAYOUT_H */