most_dev Struct Reference

Collaboration diagram for most_dev:

Collaboration graph
[legend]

Data Fields

spinlock_t lock
list_head list
int major_device_no
int card_number
char name [20]
u64 serial_number
unsigned char product_id
void * impl
usage_fun manage_usage
most_ops ops
most_ops_rt rt_ops

Detailed Description

MOST Base Driver. Contains all attributes and function pointers a MOST Device must provide. The functions are used by higher-level drivers so that they don't need direct PCI access. It increased code readability and abstracts from the real hardware so that a MOST device using the same MOST Transceivers (OS8104 and OS8604) can be accessed without modifying high-level code.

Definition at line 273 of file most-base.h.


Field Documentation

spinlock_t most_dev::lock

lock access to the struct, also implement some kind of global device lock if needed (such as reading a register, modifying it and writing it back)

Definition at line 274 of file most-base.h.

Referenced by changereg(), intset(), most_dev_new(), most_sync_do_open(), most_sync_do_release(), readreg_8104(), reset(), and writereg_8104().

struct list_head most_dev::list

list of all devices of a specific category

Definition at line 278 of file most-base.h.

Referenced by most_dev_new().

int most_dev::major_device_no

the major device number registered for the MOST PCI driver. Each driver has to take care himself that there no conflicts occure with minor numbers

Definition at line 279 of file most-base.h.

Referenced by most_dev_new().

int most_dev::card_number

the card number, used to register the right character devices.

Definition at line 283 of file most-base.h.

Referenced by most_alsa_probe(), most_dev_new(), probe(), and remove().

char most_dev::name[20]

most-pcid formatted name, used as device name for the /proc/iomem and /proc/interrupt entry to identify the card

Definition at line 285 of file most-base.h.

Referenced by most_dev_new(), and probe().

u64 most_dev::serial_number

the serial number

Definition at line 288 of file most-base.h.

Referenced by get_license(), and probe().

unsigned char most_dev::product_id

the product ID

Definition at line 289 of file most-base.h.

Referenced by revision().

void* most_dev::impl

concrete implementation, here it is a struct most_pci

Definition at line 290 of file most-base.h.

Referenced by most_dev_free(), and probe().

usage_fun most_dev::manage_usage

see documentation of usage_fun

Definition at line 292 of file most-base.h.

Referenced by probe().

struct most_ops most_dev::ops

operations

Definition at line 293 of file most-base.h.

Referenced by probe().

struct most_ops_rt most_dev::rt_ops

real-time operations

Definition at line 295 of file most-base.h.

Referenced by probe().


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