-/* Structure for the drivers main input and output buffers. The readq, writeq
- * entries are the wait queues for the driver to sleep on in case of blocking
- * read/write calls. buf_rx_entry and buf_tx_entry are pointers to the input and
- * output buffers. The buffers are dynamically allocated. The tx_readp,
- * tx_writep, rx_readp and rx_writep pointers are the various read/write
- * pointers used when reading or writing the input and output buffers. The
- * rx/tx_size entries are the dynamically allocated input and output buffer size
- * The rx/tx_in_progress entries are used to determine whether the device is
- * already set up for transmission.
- */
-#if (LINUX_VERSION_CODE <= KERNEL_VERSION(2,3,0))
-struct canfifo_t {
- struct wait_queue *readq, *writeq;
- struct canmsg_t *buf_tx_entry;
- struct canmsg_t *buf_rx_entry;
- struct canmsg_t *tx_readp;
- struct canmsg_t *rx_writep;
- struct canmsg_t *tx_writep;
- struct canmsg_t *rx_readp;
- int rx_size, tx_size;
- volatile int rx_in_progress, tx_in_progress;
- /*int head, tail;*/ /* removed */
-};
-#else
-struct canfifo_t {
- struct __wait_queue_head readq;
- struct __wait_queue_head writeq;
- struct canmsg_t *buf_tx_entry;
- struct canmsg_t *buf_rx_entry;
- struct canmsg_t *tx_readp;
- struct canmsg_t *rx_writep;
- struct canmsg_t *tx_writep;
- struct canmsg_t *rx_readp;
- int rx_size, tx_size;
- volatile int rx_in_progress, tx_in_progress;
- /*int head, tail;*/ /* removed */
-};
-#endif
-