most_sync_rt_dev Struct Reference

Collaboration diagram for most_sync_rt_dev:

Collaboration graph
[legend]

Data Fields

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
rtdm_lock_t lock
rtdm_device rtdm_dev
rtdm_event_t rx_wait
rtdm_event_t tx_wait
most_conf_sync rx_sync
most_conf_sync tx_sync
unsigned char rx_current_page
unsigned char tx_current_page

Detailed Description

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

Todo:
common base with the most_sync_dev structure

Definition at line 106 of file most-sync-rt.h.


Field Documentation

struct most_dev* most_sync_rt_dev::most_dev

the corresponding most_dev structure

Definition at line 107 of file most-sync-rt.h.

Referenced by most_sync_nrt_close(), most_sync_nrt_open(), most_sync_rt_interrupt_handler(), and most_sync_rt_probe().

struct dma_buffer most_sync_rt_dev::hw_receive_buf

the receive buffer

Definition at line 108 of file most-sync-rt.h.

Referenced by most_sync_rt_interrupt_handler().

struct dma_buffer most_sync_rt_dev::hw_transmit_buf

the transmit buffer

Definition at line 109 of file most-sync-rt.h.

Referenced by most_sync_rt_interrupt_handler().

struct rx_buffer* most_sync_rt_dev::sw_receive_buf

the receive ring buffer

Definition at line 110 of file most-sync-rt.h.

Referenced by most_sync_rt_interrupt_handler().

struct tx_buffer* most_sync_rt_dev::sw_transmit_buf

the transmit ring buffer

Definition at line 111 of file most-sync-rt.h.

Referenced by most_sync_rt_interrupt_handler().

struct list_head most_sync_rt_dev::file_list

list of all opened files in a device

Definition at line 112 of file most-sync-rt.h.

Referenced by most_sync_nrt_open(), and most_sync_rt_probe().

atomic_t most_sync_rt_dev::open_count

open counter

Definition at line 113 of file most-sync-rt.h.

Referenced by most_sync_nrt_close(), and most_sync_nrt_open().

atomic_t most_sync_rt_dev::receiver_count

count of running receivers

Definition at line 114 of file most-sync-rt.h.

Referenced by most_sync_nrt_close(), and most_sync_rt_probe().

atomic_t most_sync_rt_dev::transmitter_count

count of running transmittes

Definition at line 115 of file most-sync-rt.h.

Referenced by most_sync_nrt_close(), and most_sync_rt_probe().

rtdm_lock_t most_sync_rt_dev::lock

lock for the file

Definition at line 116 of file most-sync-rt.h.

Referenced by most_sync_nrt_close(), most_sync_nrt_open(), and most_sync_rt_probe().

struct rtdm_device most_sync_rt_dev::rtdm_dev

the RTDM device which is registered, it must be embedded in this structure (and not referenced as pointer) because then it's posible to obtain the most_sync_rt_dev structure in the open() method of the device (see also most_sync_rt_open

Definition at line 117 of file most-sync-rt.h.

Referenced by most_sync_rt_probe(), and most_sync_rt_remove().

rtdm_event_t most_sync_rt_dev::rx_wait

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

Definition at line 123 of file most-sync-rt.h.

Referenced by most_sync_rt_interrupt_handler(), most_sync_rt_probe(), and most_sync_rt_remove().

rtdm_event_t most_sync_rt_dev::tx_wait

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

Definition at line 126 of file most-sync-rt.h.

Referenced by most_sync_rt_interrupt_handler(), most_sync_rt_probe(), and most_sync_rt_remove().

struct most_conf_sync most_sync_rt_dev::rx_sync

synchronisation for reading

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

Referenced by most_sync_nrt_close(), most_sync_nrt_setup_rx(), most_sync_rt_probe(), and most_sync_rt_remove().

struct most_conf_sync most_sync_rt_dev::tx_sync

synchronisation for writing

Definition at line 130 of file most-sync-rt.h.

Referenced by most_sync_nrt_close(), most_sync_nrt_setup_tx(), most_sync_rt_probe(), and most_sync_rt_remove().

unsigned char most_sync_rt_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 131 of file most-sync-rt.h.

Referenced by most_sync_rt_interrupt_handler().

unsigned char most_sync_rt_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 133 of file most-sync-rt.h.

Referenced by most_sync_rt_interrupt_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