Subversion Repositories HelenOS

Rev

Rev 4610 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4610 Rev 4626
Line 92... Line 92...
92
 
92
 
93
enum {
93
enum {
94
    CUDA_RCV_BUF_SIZE = 5
94
    CUDA_RCV_BUF_SIZE = 5
95
};
95
};
96
 
96
 
-
 
97
enum cuda_xfer_state {
-
 
98
    cx_listen,
-
 
99
    cx_receive,
-
 
100
    cx_rcv_end
-
 
101
};
-
 
102
 
97
typedef struct {
103
typedef struct {
98
    irq_t irq;
104
    irq_t irq;
99
    cuda_t *cuda;
105
    cuda_t *cuda;
100
    indev_t *kbrdin;
106
    indev_t *kbrdin;
101
    uint8_t rcv_buf[CUDA_RCV_BUF_SIZE];
107
    uint8_t rcv_buf[CUDA_RCV_BUF_SIZE];
-
 
108
    size_t bidx;
-
 
109
    enum cuda_xfer_state xstate;
102
    SPINLOCK_DECLARE(dev_lock);
110
    SPINLOCK_DECLARE(dev_lock);
103
} cuda_instance_t;
111
} cuda_instance_t;
104
 
112
 
105
extern cuda_instance_t *cuda_init(cuda_t *, inr_t, cir_t, void *);
113
extern cuda_instance_t *cuda_init(cuda_t *, inr_t, cir_t, void *);
106
extern void cuda_wire(cuda_instance_t *, indev_t *);
114
extern void cuda_wire(cuda_instance_t *, indev_t *);