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

irlap_frame.h File Reference

#include <linux/skbuff.h>
#include <net/irda/irda.h>
#include <net/irda/irlap.h>
#include <net/irda/qos.h>

Include dependency graph for irlap_frame.h:

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

Go to the source code of this file.

Defines

#define INVALID   0xff
#define SNRM_CMD   0x83
#define DISC_CMD   0x43
#define XID_CMD   0x2f
#define TEST_CMD   0xe3
#define RNRM_RSP   0x83
#define UA_RSP   0x63
#define FRMR_RSP   0x87
#define DM_RSP   0x0f
#define RD_RSP   0x43
#define XID_RSP   0xaf
#define TEST_RSP   0xe3
#define RR   0x01
#define REJ   0x09
#define RNR   0x05
#define SREJ   0x0d
#define I_FRAME   0x00
#define UI_FRAME   0x03
#define CMD_FRAME   0x01
#define RSP_FRAME   0x00
#define PF_BIT   0x10

Functions

void irlap_send_discovery_xid_frame (struct irlap_cb *, int S, __u8 s, __u8 command, discovery_t *discovery)
void irlap_send_snrm_frame (struct irlap_cb *, struct qos_info *)
void irlap_send_test_frame (struct irlap_cb *self, __u8 caddr, __u32 daddr, struct sk_buff *cmd)
void irlap_send_ua_response_frame (struct irlap_cb *, struct qos_info *)
void irlap_send_dm_frame (struct irlap_cb *self)
void irlap_send_rd_frame (struct irlap_cb *self)
void irlap_send_disc_frame (struct irlap_cb *self)
void irlap_send_rr_frame (struct irlap_cb *self, int command)
void irlap_send_data_primary (struct irlap_cb *, struct sk_buff *)
void irlap_send_data_primary_poll (struct irlap_cb *, struct sk_buff *)
void irlap_send_data_secondary (struct irlap_cb *, struct sk_buff *)
void irlap_send_data_secondary_final (struct irlap_cb *, struct sk_buff *)
void irlap_resend_rejected_frames (struct irlap_cb *, int command)
void irlap_resend_rejected_frame (struct irlap_cb *self, int command)
void irlap_send_i_frame (struct irlap_cb *, struct sk_buff *, int command)
void irlap_send_ui_frame (struct irlap_cb *self, struct sk_buff *skb, __u8 caddr, int command)
int irlap_insert_qos_negotiation_params (struct irlap_cb *self, struct sk_buff *skb)

Variables

xid_frame PACK


Define Documentation

#define CMD_FRAME   0x01
 

Definition at line 69 of file irlap_frame.h.

Referenced by irlap_driver_rcv(), irlap_send_data_primary(), irlap_send_data_primary_poll(), irlap_send_disc_frame(), irlap_send_discovery_xid_frame(), irlap_send_frmr_frame(), irlap_send_i_frame(), irlap_send_rr_frame(), irlap_send_snrm_frame(), irlap_send_ui_frame(), irlap_state_ndm(), irlap_state_nrm_p(), irlap_state_nrm_s(), irlap_state_setup(), and irlap_state_xmit_p().

#define DISC_CMD   0x43
 

Definition at line 46 of file irlap_frame.h.

Referenced by irlap_driver_rcv(), irlap_send_disc_frame(), llc_decode_frametype(), and llc_interpret_pseudo_code().

#define DM_RSP   0x0f
 

Definition at line 54 of file irlap_frame.h.

Referenced by irlap_driver_rcv(), irlap_send_dm_frame(), llc_decode_frametype(), and llc_interpret_pseudo_code().

#define FRMR_RSP   0x87
 

Definition at line 53 of file irlap_frame.h.

Referenced by irlap_driver_rcv(), llc_decode_frametype(), llc_interpret_pseudo_code(), and llc_mac_data_indicate().

#define I_FRAME   0x00
 

Definition at line 66 of file irlap_frame.h.

Referenced by irlap_data_request(), irlap_send_data_primary(), irlap_send_data_primary_poll(), irlap_send_data_secondary(), and irlap_send_data_secondary_final().

#define INVALID   0xff
 

Definition at line 42 of file irlap_frame.h.

#define PF_BIT   0x10
 

Definition at line 72 of file irlap_frame.h.

Referenced by irlap_driver_rcv(), irlap_recv_frmr_frame(), irlap_recv_i_frame(), irlap_recv_ui_frame(), irlap_resend_rejected_frame(), irlap_resend_rejected_frames(), irlap_send_data_primary_poll(), irlap_send_data_secondary_final(), irlap_send_disc_frame(), irlap_send_discovery_xid_frame(), irlap_send_dm_frame(), irlap_send_frmr_frame(), irlap_send_rd_frame(), irlap_send_rr_frame(), irlap_send_snrm_frame(), irlap_send_test_frame(), and irlap_send_ua_response_frame().

#define RD_RSP   0x43
 

Definition at line 55 of file irlap_frame.h.

Referenced by irlap_send_rd_frame().

#define REJ   0x09
 

Definition at line 61 of file irlap_frame.h.

#define RNR   0x05
 

Definition at line 62 of file irlap_frame.h.

#define RNRM_RSP   0x83
 

Definition at line 51 of file irlap_frame.h.

#define RR   0x01
 

Definition at line 60 of file irlap_frame.h.

#define RSP_FRAME   0x00
 

Definition at line 70 of file irlap_frame.h.

Referenced by irlap_send_data_secondary(), irlap_send_data_secondary_final(), and irlap_state_nrm_s().

#define SNRM_CMD   0x83
 

Definition at line 45 of file irlap_frame.h.

Referenced by irlap_driver_rcv(), and irlap_send_snrm_frame().

#define SREJ   0x0d
 

Definition at line 63 of file irlap_frame.h.

Referenced by irlap_driver_rcv().

#define TEST_CMD   0xe3
 

Definition at line 48 of file irlap_frame.h.

Referenced by irlap_driver_rcv(), llc_decode_frametype(), llc_mac_data_indicate(), and llc_test_request().

#define TEST_RSP   0xe3
 

Definition at line 57 of file irlap_frame.h.

Referenced by irlap_send_test_frame(), llc_decode_frametype(), and llc_mac_data_indicate().

#define UA_RSP   0x63
 

Definition at line 52 of file irlap_frame.h.

Referenced by irlap_driver_rcv(), irlap_send_ua_response_frame(), llc_decode_frametype(), and llc_interpret_pseudo_code().

#define UI_FRAME   0x03
 

Definition at line 67 of file irlap_frame.h.

Referenced by irlap_data_request(), and irlap_driver_rcv().

#define XID_CMD   0x2f
 

Definition at line 47 of file irlap_frame.h.

Referenced by irlap_driver_rcv(), irlap_send_discovery_xid_frame(), llc_decode_frametype(), llc_mac_data_indicate(), and llc_xid_request().

#define XID_RSP   0xaf
 

Definition at line 56 of file irlap_frame.h.

Referenced by irlap_driver_rcv(), irlap_send_discovery_xid_frame(), llc_decode_frametype(), and llc_mac_data_indicate().


Function Documentation

int irlap_insert_qos_negotiation_params struct irlap_cb self,
struct sk_buff skb
 

Definition at line 290 of file qos.c.

References irda_param_insert(), PI_ADD_BOFS, PI_BAUD_RATE, PI_DATA_SIZE, PI_LINK_DISC, PI_MAX_TURN_TIME, PI_MIN_TURN_TIME, PI_WINDOW_SIZE, ret, and sk_buff::tail.

Referenced by irlap_send_snrm_frame(), and irlap_send_ua_response_frame().

Here is the call graph for this function:

void irlap_resend_rejected_frame struct irlap_cb self,
int  command
 

Definition at line 1031 of file irlap_frame.c.

References ASSERT, IRDA_DEBUG, irlap_send_i_frame(), irlap_wait_min_turn_around(), LAP_MAGIC, sk_buff::list, irlap_cb::magic, sk_buff::next, NULL, PF_BIT, sk_buff::prev, sk_buff::sk, skb_copy(), skb_set_owner_w(), and irlap_cb::wx_list.

Referenced by irlap_state_nrm_p(), and irlap_state_nrm_s().

Here is the call graph for this function:

void irlap_resend_rejected_frames struct irlap_cb ,
int  command
 

Definition at line 943 of file irlap_frame.c.

References ASSERT, count, IRDA_DEBUG, irlap_send_data_primary(), irlap_send_data_primary_poll(), irlap_send_i_frame(), irlap_wait_min_turn_around(), LAP_MAGIC, sk_buff::list, irlap_cb::magic, sk_buff::next, NULL, PF_BIT, sk_buff::prev, sk_buff::sk, skb_copy(), skb_set_owner_w(), irlap_cb::txq, irlap_cb::window, and irlap_cb::wx_list.

Referenced by irlap_state_nrm_p(), and irlap_state_nrm_s().

Here is the call graph for this function:

void irlap_send_data_primary struct irlap_cb ,
struct sk_buff
 

Definition at line 722 of file irlap_frame.c.

References irlap_cb::caddr, CMD_FRAME, sk_buff::data, dev_kfree_skb, FALSE, I_FRAME, IRDA_DEBUG, irlap_send_i_frame(), irlap_send_ui_frame(), NULL, sk_buff::sk, skb_clone(), skb_set_owner_w(), and irlap_cb::wx_list.

Referenced by irlap_resend_rejected_frames(), and irlap_state_xmit_p().

Here is the call graph for this function:

void irlap_send_data_primary_poll struct irlap_cb ,
struct sk_buff
 

Definition at line 768 of file irlap_frame.c.

References irlap_cb::ack_required, irlap_cb::caddr, CMD_FRAME, sk_buff::data, del_timer(), dev_kfree_skb, FALSE, irlap_cb::final_timeout, I_FRAME, IRDA_DEBUG, irlap_send_i_frame(), irlap_send_rr_frame(), irlap_send_ui_frame(), irlap_start_final_timer(), NULL, PF_BIT, irlap_cb::poll_timer, sk_buff::sk, skb_clone(), skb_set_owner_w(), and irlap_cb::wx_list.

Referenced by irlap_resend_rejected_frames(), and irlap_state_xmit_p().

Here is the call graph for this function:

void irlap_send_data_secondary struct irlap_cb ,
struct sk_buff
 

Definition at line 900 of file irlap_frame.c.

References irlap_cb::caddr, sk_buff::data, dev_kfree_skb, FALSE, I_FRAME, irlap_send_i_frame(), irlap_send_ui_frame(), NULL, RSP_FRAME, sk_buff::sk, skb_clone(), skb_set_owner_w(), and irlap_cb::wx_list.

Referenced by irlap_state_xmit_s().

Here is the call graph for this function:

void irlap_send_data_secondary_final struct irlap_cb ,
struct sk_buff
 

Definition at line 840 of file irlap_frame.c.

References irlap_cb::ack_required, ASSERT, irlap_cb::caddr, sk_buff::data, dev_kfree_skb, FALSE, I_FRAME, irlap_send_i_frame(), irlap_send_rr_frame(), irlap_send_ui_frame(), irlap_start_wd_timer(), LAP_MAGIC, irlap_cb::magic, NULL, PF_BIT, RSP_FRAME, sk_buff::sk, skb_clone(), skb_set_owner_w(), irlap_cb::wd_timeout, and irlap_cb::wx_list.

Referenced by irlap_state_xmit_s().

Here is the call graph for this function:

void irlap_send_disc_frame struct irlap_cb self  ) 
 

Definition at line 269 of file irlap_frame.c.

References ASSERT, CMD_FRAME, DISC_CMD, IRDA_DEBUG, irlap_queue_xmit(), LAP_MAGIC, irlap_cb::magic, NULL, and PF_BIT.

Referenced by irlap_state_nrm_p(), irlap_state_pclose(), irlap_state_reset_wait(), and irlap_state_xmit_p().

Here is the call graph for this function:

void irlap_send_discovery_xid_frame struct irlap_cb ,
int  S,
__u8  s,
__u8  command,
discovery_t discovery
 

Definition at line 297 of file irlap_frame.c.

References ASSERT, BROADCAST, __u16_host_order::byte, xid_frame::caddr, CBROADCAST, discovery_t::charset, CMD_FRAME, xid_frame::control, cpu_to_le32, xid_frame::daddr, discovery_t::daddr, xid_frame::flags, HINT_EXTENSION, discovery_t::hints, xid_frame::ident, IRDA_DEBUG, IRDA_MIN, irlap_queue_xmit(), LAP_MAGIC, len, irlap_cb::magic, memcpy, discovery_t::name_len, discovery_t::nickname, NULL, PF_BIT, xid_frame::saddr, irlap_cb::saddr, xid_frame::slotnr, xid_frame::version, xff, XID_CMD, XID_FORMAT, and XID_RSP.

Referenced by irlap_state_ndm(), irlap_state_query(), and irlap_state_reply().

Here is the call graph for this function:

void irlap_send_dm_frame struct irlap_cb self  ) 
 

Definition at line 239 of file irlap_frame.c.

References ASSERT, CBROADCAST, DM_RSP, irlap_queue_xmit(), LAP_MAGIC, LAP_NDM, irlap_cb::magic, NULL, PF_BIT, and irlap_cb::state.

Referenced by irlap_state_conn().

Here is the call graph for this function:

void irlap_send_i_frame struct irlap_cb ,
struct sk_buff ,
int  command
 

Definition at line 1102 of file irlap_frame.c.

References CMD_FRAME, sk_buff::data, and irlap_queue_xmit().

Referenced by irlap_resend_rejected_frame(), irlap_resend_rejected_frames(), irlap_send_data_primary(), irlap_send_data_primary_poll(), irlap_send_data_secondary(), and irlap_send_data_secondary_final().

Here is the call graph for this function:

void irlap_send_rd_frame struct irlap_cb self  ) 
 

Definition at line 579 of file irlap_frame.c.

References irlap_queue_xmit(), PF_BIT, and RD_RSP.

Referenced by irlap_state_reset_check(), and irlap_state_xmit_s().

Here is the call graph for this function:

void irlap_send_rr_frame struct irlap_cb self,
int  command
 

Definition at line 554 of file irlap_frame.c.

References CMD_FRAME, irlap_queue_xmit(), PF_BIT, and RR.

Referenced by irlap_send_data_primary_poll(), irlap_send_data_secondary_final(), irlap_state_nrm_p(), irlap_state_nrm_s(), irlap_state_setup(), and irlap_state_xmit_p().

Here is the call graph for this function:

void irlap_send_snrm_frame struct irlap_cb ,
struct qos_info
 

Definition at line 102 of file irlap_frame.c.

References ASSERT, snrm_frame::caddr, CBROADCAST, CMD_FRAME, snrm_frame::control, cpu_to_le32, snrm_frame::daddr, irlap_cb::daddr, dev_kfree_skb, irlap_insert_qos_negotiation_params(), irlap_queue_xmit(), LAP_MAGIC, irlap_cb::magic, snrm_frame::ncaddr, NULL, PF_BIT, ret, snrm_frame::saddr, irlap_cb::saddr, and SNRM_CMD.

Referenced by irlap_state_ndm(), irlap_state_reset(), irlap_state_reset_wait(), and irlap_state_setup().

Here is the call graph for this function:

void irlap_send_test_frame struct irlap_cb self,
__u8  caddr,
__u32  daddr,
struct sk_buff cmd
 

Definition at line 1208 of file irlap_frame.c.

References test_frame::caddr, CBROADCAST, test_frame::control, cpu_to_le32, test_frame::daddr, sk_buff::data, irlap_queue_xmit(), irlap_wait_min_turn_around(), LAP_ADDR_HEADER, LAP_CTRL_HEADER, sk_buff::len, memcpy, PF_BIT, irlap_cb::qos_tx, test_frame::saddr, irlap_cb::saddr, and TEST_RSP.

Referenced by irlap_state_ndm(), and irlap_state_nrm_s().

Here is the call graph for this function:

void irlap_send_ua_response_frame struct irlap_cb ,
struct qos_info
 

Definition at line 193 of file irlap_frame.c.

References ASSERT, ua_frame::caddr, ua_frame::control, cpu_to_le32, ua_frame::daddr, irlap_cb::daddr, dev_kfree_skb, IRDA_DEBUG, irlap_insert_qos_negotiation_params(), irlap_queue_xmit(), jiffies, LAP_MAGIC, irlap_cb::magic, NULL, PF_BIT, ret, ua_frame::saddr, irlap_cb::saddr, and UA_RSP.

Referenced by irlap_state_conn(), irlap_state_nrm_s(), irlap_state_reset(), irlap_state_reset_check(), irlap_state_sclose(), and irlap_state_setup().

Here is the call graph for this function:

void irlap_send_ui_frame struct irlap_cb self,
struct sk_buff skb,
__u8  caddr,
int  command
 

Definition at line 1082 of file irlap_frame.c.

References ASSERT, CMD_FRAME, sk_buff::data, IRDA_DEBUG, irlap_queue_xmit(), LAP_MAGIC, irlap_cb::magic, and NULL.

Referenced by irlap_send_data_primary(), irlap_send_data_primary_poll(), irlap_send_data_secondary(), irlap_send_data_secondary_final(), and irlap_state_ndm().

Here is the call graph for this function:


Variable Documentation

struct snrm_frame PACK