Revision 8e39a033 hw/escc.c

b/hw/escc.c
88 88

  
89 89
typedef enum {
90 90
    chn_a, chn_b,
91
} chn_id_t;
91
} ChnID;
92 92

  
93 93
#define CHN_C(s) ((s)->chn == chn_b? 'b' : 'a')
94 94

  
95 95
typedef enum {
96 96
    ser, kbd, mouse,
97
} chn_type_t;
97
} ChnType;
98 98

  
99 99
#define SERIO_QUEUE_SIZE 256
100 100

  
......
108 108
    qemu_irq irq;
109 109
    uint32_t reg;
110 110
    uint32_t rxint, txint, rxint_under_svc, txint_under_svc;
111
    chn_id_t chn; // this channel, A (base+4) or B (base+0)
112
    chn_type_t type;
111
    ChnID chn; // this channel, A (base+4) or B (base+0)
112
    ChnType type;
113 113
    struct ChannelState *otherchn;
114 114
    uint8_t rx, tx, wregs[SERIAL_REGS], rregs[SERIAL_REGS];
115 115
    SERIOQueue queue;

Also available in: Unified diff