Revision b96ae2da

b/hw/fw_cfg.c
38 38

  
39 39
#define FW_CFG_SIZE 2
40 40

  
41
typedef struct _FWCfgEntry {
41
typedef struct FWCfgEntry {
42 42
    uint32_t len;
43 43
    uint8_t *data;
44 44
    void *callback_opaque;
45 45
    FWCfgCallback callback;
46 46
} FWCfgEntry;
47 47

  
48
struct _FWCfgState {
48
struct FWCfgState {
49 49
    FWCfgEntry entries[2][FW_CFG_MAX_ENTRY];
50 50
    FWCfgFiles *files;
51 51
    uint16_t cur_entry;
b/hw/fw_cfg.h
53 53

  
54 54
typedef void (*FWCfgCallback)(void *opaque, uint8_t *data);
55 55

  
56
typedef struct _FWCfgState FWCfgState;
56
typedef struct FWCfgState FWCfgState;
57 57
int fw_cfg_add_bytes(FWCfgState *s, uint16_t key, uint8_t *data, uint32_t len);
58 58
int fw_cfg_add_i16(FWCfgState *s, uint16_t key, uint16_t value);
59 59
int fw_cfg_add_i32(FWCfgState *s, uint16_t key, uint32_t value);

Also available in: Unified diff