Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Variables
pep.h File Reference

Go to the source code of this file.

Data Structures

struct  pep_sock
 
struct  pnpipehdr
 

Macros

#define PNPIPE_CTRLREQ_MAX   10
 
#define other_pep_type   data[1]
 
#define MAX_PNPIPE_HEADER   (MAX_PHONET_HEADER + 4)
 
#define PN_PIPE_INVALID_HANDLE   0xff
 
#define PN_PEP_TYPE_COMMON   0x00
 
#define pn_flow_safe(fc)   ((fc) >> 1)
 

Enumerations

enum  {
  PNS_PIPE_CREATE_REQ = 0x00, PNS_PIPE_CREATE_RESP, PNS_PIPE_REMOVE_REQ, PNS_PIPE_REMOVE_RESP,
  PNS_PIPE_DATA = 0x20, PNS_PIPE_ALIGNED_DATA, PNS_PEP_CONNECT_REQ = 0x40, PNS_PEP_CONNECT_RESP,
  PNS_PEP_DISCONNECT_REQ, PNS_PEP_DISCONNECT_RESP, PNS_PEP_RESET_REQ, PNS_PEP_RESET_RESP,
  PNS_PEP_ENABLE_REQ, PNS_PEP_ENABLE_RESP, PNS_PEP_CTRL_REQ, PNS_PEP_CTRL_RESP,
  PNS_PEP_DISABLE_REQ = 0x4C, PNS_PEP_DISABLE_RESP, PNS_PEP_STATUS_IND = 0x60, PNS_PIPE_CREATED_IND,
  PNS_PIPE_RESET_IND = 0x63, PNS_PIPE_ENABLED_IND, PNS_PIPE_REDIRECTED_IND, PNS_PIPE_DISABLED_IND = 0x66
}
 
enum  { PN_PEP_IND_FLOW_CONTROL, PN_PEP_IND_ID_MCFC_GRANT_CREDITS }
 
enum  {
  PN_PIPE_NO_ERROR, PN_PIPE_ERR_INVALID_PARAM, PN_PIPE_ERR_INVALID_HANDLE, PN_PIPE_ERR_INVALID_CTRL_ID,
  PN_PIPE_ERR_NOT_ALLOWED, PN_PIPE_ERR_PEP_IN_USE, PN_PIPE_ERR_OVERLOAD, PN_PIPE_ERR_DEV_DISCONNECTED,
  PN_PIPE_ERR_TIMEOUT, PN_PIPE_ERR_ALL_PIPES_IN_USE, PN_PIPE_ERR_GENERAL, PN_PIPE_ERR_NOT_SUPPORTED
}
 
enum  { PN_PIPE_DISABLE, PN_PIPE_ENABLE }
 
enum  {
  PN_PIPE_SB_CREATE_REQ_PEP_SUB_TYPE, PN_PIPE_SB_CONNECT_REQ_PEP_SUB_TYPE, PN_PIPE_SB_REDIRECT_REQ_PEP_SUB_TYPE, PN_PIPE_SB_NEGOTIATED_FC,
  PN_PIPE_SB_REQUIRED_FC_TX, PN_PIPE_SB_PREFERRED_FC_RX, PN_PIPE_SB_ALIGNED_DATA
}
 
enum  {
  PN_NO_FLOW_CONTROL, PN_LEGACY_FLOW_CONTROL, PN_ONE_CREDIT_FLOW_CONTROL, PN_MULTI_CREDIT_FLOW_CONTROL,
  PN_MAX_FLOW_CONTROL
}
 
enum  { PEP_IND_EMPTY, PEP_IND_BUSY, PEP_IND_READY }
 

Variables

struct proto_ops phonet_stream_ops
 

Macro Definition Documentation

#define MAX_PNPIPE_HEADER   (MAX_PHONET_HEADER + 4)

Definition at line 76 of file pep.h.

#define other_pep_type   data[1]

Definition at line 69 of file pep.h.

#define pn_flow_safe (   fc)    ((fc) >> 1)

Definition at line 159 of file pep.h.

#define PN_PEP_TYPE_COMMON   0x00

Definition at line 109 of file pep.h.

#define PN_PIPE_INVALID_HANDLE   0xff

Definition at line 108 of file pep.h.

#define PNPIPE_CTRLREQ_MAX   10

Definition at line 36 of file pep.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
PNS_PIPE_CREATE_REQ 
PNS_PIPE_CREATE_RESP 
PNS_PIPE_REMOVE_REQ 
PNS_PIPE_REMOVE_RESP 
PNS_PIPE_DATA 
PNS_PIPE_ALIGNED_DATA 
PNS_PEP_CONNECT_REQ 
PNS_PEP_CONNECT_RESP 
PNS_PEP_DISCONNECT_REQ 
PNS_PEP_DISCONNECT_RESP 
PNS_PEP_RESET_REQ 
PNS_PEP_RESET_RESP 
PNS_PEP_ENABLE_REQ 
PNS_PEP_ENABLE_RESP 
PNS_PEP_CTRL_REQ 
PNS_PEP_CTRL_RESP 
PNS_PEP_DISABLE_REQ 
PNS_PEP_DISABLE_RESP 
PNS_PEP_STATUS_IND 
PNS_PIPE_CREATED_IND 
PNS_PIPE_RESET_IND 
PNS_PIPE_ENABLED_IND 
PNS_PIPE_REDIRECTED_IND 
PNS_PIPE_DISABLED_IND 

Definition at line 78 of file pep.h.

anonymous enum
Enumerator:
PN_PEP_IND_FLOW_CONTROL 
PN_PEP_IND_ID_MCFC_GRANT_CREDITS 

Definition at line 112 of file pep.h.

anonymous enum
Enumerator:
PN_PIPE_NO_ERROR 
PN_PIPE_ERR_INVALID_PARAM 
PN_PIPE_ERR_INVALID_HANDLE 
PN_PIPE_ERR_INVALID_CTRL_ID 
PN_PIPE_ERR_NOT_ALLOWED 
PN_PIPE_ERR_PEP_IN_USE 
PN_PIPE_ERR_OVERLOAD 
PN_PIPE_ERR_DEV_DISCONNECTED 
PN_PIPE_ERR_TIMEOUT 
PN_PIPE_ERR_ALL_PIPES_IN_USE 
PN_PIPE_ERR_GENERAL 
PN_PIPE_ERR_NOT_SUPPORTED 

Definition at line 118 of file pep.h.

anonymous enum
Enumerator:
PN_PIPE_DISABLE 
PN_PIPE_ENABLE 

Definition at line 134 of file pep.h.

anonymous enum
Enumerator:
PN_PIPE_SB_CREATE_REQ_PEP_SUB_TYPE 
PN_PIPE_SB_CONNECT_REQ_PEP_SUB_TYPE 
PN_PIPE_SB_REDIRECT_REQ_PEP_SUB_TYPE 
PN_PIPE_SB_NEGOTIATED_FC 
PN_PIPE_SB_REQUIRED_FC_TX 
PN_PIPE_SB_PREFERRED_FC_RX 
PN_PIPE_SB_ALIGNED_DATA 

Definition at line 140 of file pep.h.

anonymous enum
Enumerator:
PN_NO_FLOW_CONTROL 
PN_LEGACY_FLOW_CONTROL 
PN_ONE_CREDIT_FLOW_CONTROL 
PN_MULTI_CREDIT_FLOW_CONTROL 
PN_MAX_FLOW_CONTROL 

Definition at line 151 of file pep.h.

anonymous enum
Enumerator:
PEP_IND_EMPTY 
PEP_IND_BUSY 
PEP_IND_READY 

Definition at line 162 of file pep.h.

Variable Documentation

struct proto_ops phonet_stream_ops

Definition at line 466 of file socket.c.