mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
cdc-phonet: autoconfigure Phonet address
Signed-off-by: Rémi Denis-Courmont <remi.denis-courmont@nokia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
f5bb1c5584
commit
02571f8987
2 changed files with 18 additions and 0 deletions
|
@ -99,6 +99,9 @@ struct sockaddr_pn {
|
|||
__u8 spn_zero[sizeof(struct sockaddr) - sizeof(sa_family_t) - 3];
|
||||
} __attribute__ ((packed));
|
||||
|
||||
/* Well known address */
|
||||
#define PN_DEV_PC 0x10
|
||||
|
||||
static inline __u16 pn_object(__u8 addr, __u16 port)
|
||||
{
|
||||
return (addr << 8) | (port & 0x3ff);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue