most_sync_dev Struct Reference

Collaboration diagram for most_sync_dev:

Collaboration graph
[legend]

Data Fields

cdev cdev
most_devmost_dev
dma_buffer hw_receive_buf
dma_buffer hw_transmit_buf
rx_buffersw_receive_buf
tx_buffersw_transmit_buf
list_head file_list
atomic_t open_count
atomic_t receiver_count
atomic_t transmitter_count
wait_queue_head_t rx_queue
wait_queue_head_t tx_queue
rw_semaphore config_lock_rx
rw_semaphore config_lock_tx
unsigned char rx_current_page
unsigned char tx_current_page

Detailed Description

Data structure for each most_sync device. If the probe function is called, such a device is created and if the remove function is called, the device is destroyed.

Definition at line 128 of file most-sync.h.


Field Documentation

struct cdev most_sync_dev::cdev

the character device of the Linux kernel

Definition at line 129 of file most-sync.h.

Referenced by most_sync_probe(), and most_sync_remove().

struct most_dev* most_sync_dev::most_dev

the corresponding most_dev structure

Definition at line 131 of file most-sync.h.

Referenced by most_sync_do_open(), most_sync_do_release(), most_sync_int_handler(), and most_sync_probe().

struct dma_buffer most_sync_dev::hw_receive_buf

the receive buffer

Definition at line 133 of file most-sync.h.

Referenced by most_sync_int_handler().

struct dma_buffer most_sync_dev::hw_transmit_buf

the transmit buffer

Definition at line 134 of file most-sync.h.

Referenced by most_sync_int_handler().

struct rx_buffer* most_sync_dev::sw_receive_buf

the receive ring buffer

Definition at line 135 of file most-sync.h.

Referenced by most_sync_int_handler(), and most_sync_read().

struct tx_buffer* most_sync_dev::sw_transmit_buf

the transmit ring buffer

Definition at line 136 of file most-sync.h.

Referenced by most_sync_int_handler(), and most_sync_write().

struct list_head most_sync_dev::file_list

list of all opened files in a device

Definition at line 137 of file most-sync.h.

Referenced by most_sync_do_open(), and most_sync_probe().

atomic_t most_sync_dev::open_count

open counter

Definition at line 139 of file most-sync.h.

Referenced by most_sync_do_open(), most_sync_do_release(), and most_sync_probe().

atomic_t most_sync_dev::receiver_count

count of running receivers

Definition at line 140 of file most-sync.h.

Referenced by most_sync_do_release(), and most_sync_probe().

atomic_t most_sync_dev::transmitter_count

count of running transmittes

Definition at line 141 of file most-sync.h.

Referenced by most_sync_do_release(), and most_sync_probe().

wait_queue_head_t most_sync_dev::rx_queue

wait queue for sleeping processes that want to read data but cannot because there are no data to read

Definition at line 142 of file most-sync.h.

Referenced by most_sync_int_handler(), most_sync_probe(), and most_sync_read().

wait_queue_head_t most_sync_dev::tx_queue

wait queue for sleeping processes that want to write data but cannot write because the queue is full

Definition at line 145 of file most-sync.h.

Referenced by most_sync_int_handler(), most_sync_probe(), and most_sync_write().

struct rw_semaphore most_sync_dev::config_lock_rx

semaphore to model the fact that a device can only be set up if no other file is in a read method

Definition at line 148 of file most-sync.h.

Referenced by most_sync_do_release(), most_sync_probe(), most_sync_read(), and most_sync_setup_rx().

struct rw_semaphore most_sync_dev::config_lock_tx

semaphore to model the fact that a device can only be set up if no other file is in a write method

Definition at line 151 of file most-sync.h.

Referenced by most_sync_do_release(), most_sync_probe(), most_sync_setup_tx(), and most_sync_write().

unsigned char most_sync_dev::rx_current_page

current page to keep track of pages and be able to print a warning if page is wrong (RX)

Definition at line 154 of file most-sync.h.

Referenced by most_sync_int_handler().

unsigned char most_sync_dev::tx_current_page

current page to keep track of pages and be able to print a warning if page is wrong (TX)

Definition at line 157 of file most-sync.h.

Referenced by most_sync_int_handler().


The documentation for this struct was generated from the following file:
Generated on Fri Mar 9 14:48:58 2007 for MOST Linux Drivers (Linux and RTAI) by  doxygen 1.5.0