Main Page | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

qos.h File Reference

#include <linux/config.h>
#include <linux/skbuff.h>
#include <net/irda/parameters.h>

Include dependency graph for qos.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define PI_BAUD_RATE   0x01
#define PI_MAX_TURN_TIME   0x82
#define PI_DATA_SIZE   0x83
#define PI_WINDOW_SIZE   0x84
#define PI_ADD_BOFS   0x85
#define PI_MIN_TURN_TIME   0x86
#define PI_LINK_DISC   0x08
#define PI_COMPRESSION   0x07
#define IR_115200_MAX   0x3f
#define IR_2400   0x01
#define IR_9600   0x02
#define IR_19200   0x04
#define IR_38400   0x08
#define IR_57600   0x10
#define IR_115200   0x20
#define IR_576000   0x40
#define IR_1152000   0x80
#define IR_4000000   0x01
#define IR_16000000   0x02

Functions

void irda_init_max_qos_capabilies (struct qos_info *qos)
void irda_qos_compute_intersection (struct qos_info *, struct qos_info *)
__u32 irlap_max_line_capacity (__u32 speed, __u32 max_turn_time)
__u32 irlap_requested_line_capacity (struct qos_info *qos)
__u32 irlap_min_turn_time_in_bytes (__u32 speed, __u32 min_turn_time)
int msb_index (__u16 byte)
int value_index (__u32 value, __u32 *array)
__u32 byte_value (__u8 byte, __u32 *array)
__u32 index_value (int index, __u32 *array)
void irda_qos_bits_to_value (struct qos_info *qos)

Variables

__u32 baud_rates []
__u32 data_sizes []
__u32 min_turn_times []
__u32 add_bofs []
__u32 compressions []


Define Documentation

#define IR_115200   0x20
 

Definition at line 57 of file qos.h.

Referenced by actisys_open(), esi_open(), girbil_open(), ircc_open(), irport_open(), irtty_open(), litelink_open(), nsc_ircc_open(), tekram_open(), toshoboe_open(), and w83977af_open().

#define IR_1152000   0x80
 

Definition at line 59 of file qos.h.

Referenced by ircc_open(), nsc_ircc_open(), toshoboe_open(), and w83977af_open().

#define IR_115200_MAX   0x3f
 

Definition at line 49 of file qos.h.

#define IR_16000000   0x02
 

Definition at line 63 of file qos.h.

#define IR_19200   0x04
 

Definition at line 54 of file qos.h.

Referenced by actisys_open(), esi_open(), girbil_open(), ircc_open(), irport_open(), irtty_open(), litelink_open(), nsc_ircc_open(), tekram_open(), toshoboe_open(), and w83977af_open().

#define IR_2400   0x01
 

Definition at line 52 of file qos.h.

Referenced by toshoboe_open().

#define IR_38400   0x08
 

Definition at line 55 of file qos.h.

Referenced by actisys_open(), girbil_open(), ircc_open(), irport_open(), irtty_open(), litelink_open(), nsc_ircc_open(), tekram_open(), and w83977af_open().

#define IR_4000000   0x01
 

Definition at line 62 of file qos.h.

Referenced by ircc_open(), nsc_ircc_open(), toshoboe_open(), and w83977af_open().

#define IR_57600   0x10
 

Definition at line 56 of file qos.h.

Referenced by actisys_open(), girbil_open(), ircc_open(), irport_open(), irtty_open(), litelink_open(), nsc_ircc_open(), tekram_open(), and w83977af_open().

#define IR_576000   0x40
 

Definition at line 58 of file qos.h.

Referenced by ircc_open(), nsc_ircc_open(), toshoboe_open(), and w83977af_open().

#define IR_9600   0x02
 

Definition at line 53 of file qos.h.

Referenced by actisys_open(), esi_open(), girbil_open(), ircc_open(), irport_open(), irtty_open(), litelink_open(), nsc_ircc_open(), old_belkin_open(), tekram_open(), toshoboe_open(), and w83977af_open().

#define PI_ADD_BOFS   0x85
 

Definition at line 43 of file qos.h.

Referenced by irlap_insert_qos_negotiation_params().

#define PI_BAUD_RATE   0x01
 

Definition at line 39 of file qos.h.

Referenced by irlap_insert_qos_negotiation_params().

#define PI_COMPRESSION   0x07
 

Definition at line 46 of file qos.h.

#define PI_DATA_SIZE   0x83
 

Definition at line 41 of file qos.h.

Referenced by irlap_insert_qos_negotiation_params().

#define PI_LINK_DISC   0x08
 

Definition at line 45 of file qos.h.

Referenced by irlap_insert_qos_negotiation_params().

#define PI_MAX_TURN_TIME   0x82
 

Definition at line 40 of file qos.h.

Referenced by irlap_insert_qos_negotiation_params().

#define PI_MIN_TURN_TIME   0x86
 

Definition at line 44 of file qos.h.

Referenced by irlap_insert_qos_negotiation_params().

#define PI_WINDOW_SIZE   0x84
 

Definition at line 42 of file qos.h.

Referenced by irlap_insert_qos_negotiation_params().


Function Documentation

__u32 byte_value __u8  byte,
__u32 array
 

Definition at line 576 of file qos.c.

References ASSERT, index, index_value(), msb_index(), and NULL.

Here is the call graph for this function:

__u32 index_value int  index,
__u32 array
 

Definition at line 630 of file qos.c.

Referenced by byte_value().

void irda_init_max_qos_capabilies struct qos_info qos  ) 
 

Definition at line 148 of file qos.c.

References qos_info::additional_bofs, qos_info::baud_rate, qos_value_t::bits, qos_info::data_size, qos_info::link_disc_time, qos_info::max_turn_time, qos_info::min_turn_time, and qos_info::window_size.

Referenced by ircc_open(), irlap_init_qos_capabilities(), irport_open(), irtty_open(), nsc_ircc_open(), toshoboe_open(), and w83977af_open().

void irda_qos_bits_to_value struct qos_info qos  ) 
 

Definition at line 635 of file qos.c.

References add_bofs, qos_info::additional_bofs, ASSERT, qos_info::baud_rate, baud_rates, qos_value_t::bits, compressions, qos_info::data_size, data_sizes, index, qos_info::link_disc_time, link_disc_times, qos_info::max_turn_time, max_turn_times, qos_info::min_turn_time, min_turn_times, msb_index(), NULL, qos_value_t::value, and qos_info::window_size.

Referenced by ircc_open(), irda_qos_compute_intersection(), irlap_init_qos_capabilities(), irlap_qos_negotiate(), irport_open(), irtty_open(), nsc_ircc_open(), tekram_open(), toshoboe_open(), and w83977af_open().

Here is the call graph for this function:

void irda_qos_compute_intersection struct qos_info ,
struct qos_info
 

Definition at line 120 of file qos.c.

References qos_info::additional_bofs, ASSERT, qos_info::baud_rate, qos_value_t::bits, qos_info::data_size, irda_qos_bits_to_value(), qos_info::link_disc_time, qos_info::max_turn_time, qos_info::min_turn_time, NULL, and qos_info::window_size.

Referenced by irlap_init_qos_capabilities().

Here is the call graph for this function:

__u32 irlap_max_line_capacity __u32  speed,
__u32  max_turn_time
 

Definition at line 531 of file qos.c.

References ASSERT, baud_rates, i, IRDA_DEBUG, j, irlap_cb::line_capacity, max_line_capacities, max_turn_times, and value_index().

Referenced by irlap_adjust_qos_settings(), and irlap_apply_connection_parameters().

Here is the call graph for this function:

__u32 irlap_min_turn_time_in_bytes __u32  speed,
__u32  min_turn_time
 

Definition at line 567 of file qos.c.

References bytes.

Referenced by irlap_requested_line_capacity(), and irlap_wait_min_turn_around().

__u32 irlap_requested_line_capacity struct qos_info qos  ) 
 

Definition at line 553 of file qos.c.

References qos_info::additional_bofs, qos_info::baud_rate, qos_info::data_size, IRDA_DEBUG, irlap_min_turn_time_in_bytes(), irlap_cb::line_capacity, qos_info::min_turn_time, qos_value_t::value, and qos_info::window_size.

Referenced by irlap_adjust_qos_settings().

Here is the call graph for this function:

int msb_index __u16  byte  ) 
 

Definition at line 593 of file qos.c.

References index.

Referenced by byte_value(), and irda_qos_bits_to_value().

int value_index __u32  value,
__u32 array
 

Definition at line 613 of file qos.c.

References i.

Referenced by irlap_adjust_qos_settings(), and irlap_max_line_capacity().


Variable Documentation

__u32 add_bofs[]
 

Definition at line 63 of file qos.c.

Referenced by irda_qos_bits_to_value().

__u32 baud_rates[]
 

Definition at line 60 of file qos.c.

__u32 compressions[]
 

Referenced by irda_qos_bits_to_value().

__u32 data_sizes[]
 

Definition at line 62 of file qos.c.

Referenced by irda_qos_bits_to_value(), and irlap_adjust_qos_settings().

__u32 min_turn_times[]
 

Definition at line 59 of file qos.c.

Referenced by irda_qos_bits_to_value().