-#include "log.h"
-
-
-reg_arch_type_t *reg_arch_types = NULL;
-
-reg_t* register_get_by_name(struct reg_cache *first,
+#include <helper/log.h>
+
+/**
+ * @file
+ * Holds utilities to work with register caches.
+ *
+ * OpenOCD uses machine registers internally, and exposes them by name
+ * to Tcl scripts. Sets of related registers are grouped into caches.
+ * For example, a CPU core will expose a set of registers, and there
+ * may be separate registers associated with debug or trace modules.
+ */
+
+struct reg* register_get_by_name(struct reg_cache *first,