diff options
Diffstat (limited to 'include/net/phonet/pep.h')
| -rw-r--r-- | include/net/phonet/pep.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/include/net/phonet/pep.h b/include/net/phonet/pep.h index 35672b1cf44a..b60b28c99e87 100644 --- a/include/net/phonet/pep.h +++ b/include/net/phonet/pep.h | |||
| @@ -45,6 +45,10 @@ struct pep_sock { | |||
| 45 | u8 tx_fc; /* TX flow control */ | 45 | u8 tx_fc; /* TX flow control */ |
| 46 | u8 init_enable; /* auto-enable at creation */ | 46 | u8 init_enable; /* auto-enable at creation */ |
| 47 | u8 aligned; | 47 | u8 aligned; |
| 48 | #ifdef CONFIG_PHONET_PIPECTRLR | ||
| 49 | u8 pipe_state; | ||
| 50 | struct sockaddr_pn remote_pep; | ||
| 51 | #endif | ||
| 48 | }; | 52 | }; |
| 49 | 53 | ||
| 50 | static inline struct pep_sock *pep_sk(struct sock *sk) | 54 | static inline struct pep_sock *pep_sk(struct sock *sk) |
| @@ -77,6 +81,11 @@ static inline struct pnpipehdr *pnp_hdr(struct sk_buff *skb) | |||
| 77 | #define MAX_PNPIPE_HEADER (MAX_PHONET_HEADER + 4) | 81 | #define MAX_PNPIPE_HEADER (MAX_PHONET_HEADER + 4) |
| 78 | 82 | ||
| 79 | enum { | 83 | enum { |
| 84 | PNS_PIPE_CREATE_REQ = 0x00, | ||
| 85 | PNS_PIPE_CREATE_RESP, | ||
| 86 | PNS_PIPE_REMOVE_REQ, | ||
| 87 | PNS_PIPE_REMOVE_RESP, | ||
| 88 | |||
| 80 | PNS_PIPE_DATA = 0x20, | 89 | PNS_PIPE_DATA = 0x20, |
| 81 | PNS_PIPE_ALIGNED_DATA, | 90 | PNS_PIPE_ALIGNED_DATA, |
| 82 | 91 | ||
| @@ -160,4 +169,21 @@ enum { | |||
| 160 | PEP_IND_READY, | 169 | PEP_IND_READY, |
| 161 | }; | 170 | }; |
| 162 | 171 | ||
| 172 | #ifdef CONFIG_PHONET_PIPECTRLR | ||
| 173 | #define PNS_PEP_CONNECT_UTID 0x02 | ||
| 174 | #define PNS_PIPE_CREATED_IND_UTID 0x04 | ||
| 175 | #define PNS_PIPE_ENABLE_UTID 0x0A | ||
| 176 | #define PNS_PIPE_ENABLED_IND_UTID 0x0C | ||
| 177 | #define PNS_PIPE_DISABLE_UTID 0x0F | ||
| 178 | #define PNS_PIPE_DISABLED_IND_UTID 0x11 | ||
| 179 | #define PNS_PEP_DISCONNECT_UTID 0x06 | ||
| 180 | |||
| 181 | /* Used for tracking state of a pipe */ | ||
| 182 | enum { | ||
| 183 | PIPE_IDLE, | ||
| 184 | PIPE_DISABLED, | ||
| 185 | PIPE_ENABLED, | ||
| 186 | }; | ||
| 187 | #endif /* CONFIG_PHONET_PIPECTRLR */ | ||
| 188 | |||
| 163 | #endif | 189 | #endif |
