1 /* SPDX-License-Identifier: GPL-2.0-only */
5 * Phonet network device
7 * Copyright (C) 2008 Nokia Corporation.
13 struct phonet_device_list
{
14 struct list_head list
;
18 struct phonet_device_list
*phonet_device_list(struct net
*net
);
20 struct phonet_device
{
21 struct list_head list
;
22 struct net_device
*netdev
;
23 DECLARE_BITMAP(addrs
, 64);
27 int phonet_device_init(void);
28 void phonet_device_exit(void);
29 int phonet_netlink_register(void);
30 struct net_device
*phonet_device_get(struct net
*net
);
32 int phonet_address_add(struct net_device
*dev
, u8 addr
);
33 int phonet_address_del(struct net_device
*dev
, u8 addr
);
34 u8
phonet_address_get(struct net_device
*dev
, u8 addr
);
35 int phonet_address_lookup(struct net
*net
, u8 addr
);
36 void phonet_address_notify(int event
, struct net_device
*dev
, u8 addr
);
38 int phonet_route_add(struct net_device
*dev
, u8 daddr
);
39 int phonet_route_del(struct net_device
*dev
, u8 daddr
);
40 void rtm_phonet_notify(int event
, struct net_device
*dev
, u8 dst
);
41 struct net_device
*phonet_route_get_rcu(struct net
*net
, u8 daddr
);
42 struct net_device
*phonet_route_output(struct net
*net
, u8 daddr
);
44 #define PN_NO_ADDR 0xff
46 extern const struct seq_operations pn_sock_seq_ops
;
47 extern const struct seq_operations pn_res_seq_ops
;