Revision b45d63b6 hw/spapr_vio.h

b/hw/spapr_vio.h
32 32
    SPAPR_TCE_RW = 3,
33 33
};
34 34

  
35
struct VIOsPAPRDevice;
36

  
35 37
typedef struct VIOsPAPR_RTCE {
36 38
    uint64_t tce;
37 39
} VIOsPAPR_RTCE;
38 40

  
41
typedef struct VIOsPAPR_CRQ {
42
    uint64_t qladdr;
43
    uint32_t qsize;
44
    uint32_t qnext;
45
    int(*SendFunc)(struct VIOsPAPRDevice *vdev, uint8_t *crq);
46
} VIOsPAPR_CRQ;
47

  
39 48
typedef struct VIOsPAPRDevice {
40 49
    DeviceState qdev;
41 50
    uint32_t reg;
......
44 53
    target_ulong signal_state;
45 54
    uint32_t rtce_window_size;
46 55
    VIOsPAPR_RTCE *rtce_table;
56
    VIOsPAPR_CRQ crq;
47 57
} VIOsPAPRDevice;
48 58

  
49 59
typedef struct VIOsPAPRBus {
......
81 91
void stq_tce(VIOsPAPRDevice *dev, uint64_t taddr, uint64_t val);
82 92
uint64_t ldq_tce(VIOsPAPRDevice *dev, uint64_t taddr);
83 93

  
94
int spapr_vio_send_crq(VIOsPAPRDevice *dev, uint8_t *crq);
95

  
84 96
void vty_putchars(VIOsPAPRDevice *sdev, uint8_t *buf, int len);
85 97
void spapr_vty_create(VIOsPAPRBus *bus,
86 98
                      uint32_t reg, CharDriverState *chardev,

Also available in: Unified diff