Fork us on GitHub Follow us on Facebook Follow us on Twitter

Ignore:
Timestamp:
2009-07-07T21:48:51Z (12 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master
Children:
30f869d
Parents:
925be4e
Message:

Modify CUDA driver to state machine format, with one interrupt per byte transferred.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/genarch/include/drivers/via-cuda/cuda.h

    r925be4e r1f0db02e  
    9595};
    9696
     97enum cuda_xfer_state {
     98        cx_listen,
     99        cx_receive,
     100        cx_rcv_end
     101};
     102
    97103typedef struct {
    98104        irq_t irq;
     
    100106        indev_t *kbrdin;
    101107        uint8_t rcv_buf[CUDA_RCV_BUF_SIZE];
     108        size_t bidx;
     109        enum cuda_xfer_state xstate;
    102110        SPINLOCK_DECLARE(dev_lock);
    103111} cuda_instance_t;
Note: See TracChangeset for help on using the changeset viewer.