intel: common: expose gen_spec fields

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Scott D Phillips <scott.d.phillips@intel.com>
This commit is contained in:
Lionel Landwerlin 2017-09-22 18:00:25 +01:00
parent f0ab3f7635
commit 957a6eea7a
2 changed files with 13 additions and 13 deletions

View File

@ -39,19 +39,6 @@
#define XML_BUFFER_SIZE 4096
struct gen_spec {
uint32_t gen;
int ncommands;
struct gen_group *commands[256];
int nstructs;
struct gen_group *structs[256];
int nregisters;
struct gen_group *registers[256];
int nenums;
struct gen_enum *enums[256];
};
struct location {
const char *filename;
int line_number;

View File

@ -68,6 +68,19 @@ struct gen_field_iterator {
bool print_colors;
};
struct gen_spec {
uint32_t gen;
uint32_t ncommands;
struct gen_group *commands[256];
uint32_t nstructs;
struct gen_group *structs[256];
uint32_t nregisters;
struct gen_group *registers[256];
uint32_t nenums;
struct gen_enum *enums[256];
};
struct gen_group {
struct gen_spec *spec;
char *name;