1 #include <linux/types.h>
4 * WARNING: This file needs to be kept in sync with
5 * - the database scheme
6 * - the generator code (dbgen.py)
10 #define REGDB_MAGIC 0x52474442
13 * Only supported version now, start at arbitrary number
14 * to have some more magic :)
16 #define REGDB_VERSION 19
18 struct regdb_file_header {
19 /* must be REGDB_MAGIC */
21 /* must be REGDB_VERSION */
23 /* pointer (offset) into file where country list starts */
24 __be32 reg_country_ptr;
25 __be32 reg_country_num;
28 struct regdb_file_reg_rule {
29 /* pointers (offsets) into the file */
30 __be32 freq_range_ptr;
31 __be32 power_rule_ptr;
34 struct regdb_file_freq_range {
42 struct regdb_file_power_rule {
45 __be32 max_antenna_gain,
52 struct regdb_file_reg_rules_collection {
54 /* pointers (offsets) into the file */
55 __be32 reg_rule_ptrs[];
58 struct regdb_file_reg_country {
61 /* pointer (offset) into the file */
62 __be32 reg_collection_ptr;