Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 214770
b: refs/heads/master
c: 8d98efa
h: refs/heads/master
v: v3
  • Loading branch information
Kumar Sanghvi authored and David S. Miller committed Sep 28, 2010
1 parent 1c65066 commit 929b95a
Show file tree
Hide file tree
Showing 5 changed files with 480 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e40051d134f7ee95c8c1f7a3471e84eafc9ab326
refs/heads/master: 8d98efa84b790bdd62248eb0dfff17e9baf5c844
5 changes: 5 additions & 0 deletions trunk/include/linux/phonet.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@
/* Socket options for SOL_PNPIPE level */
#define PNPIPE_ENCAP 1
#define PNPIPE_IFINDEX 2
#define PNPIPE_CREATE 3
#define PNPIPE_ENABLE 4
#define PNPIPE_DISABLE 5
#define PNPIPE_DESTROY 6
#define PNPIPE_INQ 7

#define PNADDR_ANY 0
#define PNADDR_BROADCAST 0xFC
Expand Down
21 changes: 21 additions & 0 deletions trunk/include/net/phonet/pep.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ struct pep_sock {
u8 tx_fc; /* TX flow control */
u8 init_enable; /* auto-enable at creation */
u8 aligned;
#ifdef CONFIG_PHONET_PIPECTRLR
u16 remote_pep;
u8 pipe_state;
#endif
};

static inline struct pep_sock *pep_sk(struct sock *sk)
Expand Down Expand Up @@ -165,4 +169,21 @@ enum {
PEP_IND_READY,
};

#ifdef CONFIG_PHONET_PIPECTRLR
#define PNS_PEP_CONNECT_UTID 0x02
#define PNS_PIPE_CREATED_IND_UTID 0x04
#define PNS_PIPE_ENABLE_UTID 0x0A
#define PNS_PIPE_ENABLED_IND_UTID 0x0C
#define PNS_PIPE_DISABLE_UTID 0x0F
#define PNS_PIPE_DISABLED_IND_UTID 0x11
#define PNS_PEP_DISCONNECT_UTID 0x06

/* Used for tracking state of a pipe */
enum {
PIPE_IDLE,
PIPE_DISABLED,
PIPE_ENABLED,
};
#endif /* CONFIG_PHONET_PIPECTRLR */

#endif
11 changes: 11 additions & 0 deletions trunk/net/phonet/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,14 @@ config PHONET

To compile this driver as a module, choose M here: the module
will be called phonet. If unsure, say N.

config PHONET_PIPECTRLR
bool "Phonet Pipe Controller"
depends on PHONET
default N
help
The Pipe Controller implementation in Phonet stack to support Pipe
data with Nokia Slim modems like WG2.5 used on ST-Ericsson U8500
platform.

If unsure, say N.
Loading

0 comments on commit 929b95a

Please sign in to comment.