Sage Ahn | 247e9cf | 2012-05-15 13:20:36 +0900 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2012 GCT Semiconductor, Inc. All rights reserved. |
| 3 | * |
| 4 | * This software is licensed under the terms of the GNU General Public |
| 5 | * License version 2, as published by the Free Software Foundation, and |
| 6 | * may be copied, distributed, and modified under those terms. |
| 7 | * |
| 8 | * This program is distributed in the hope that it will be useful, |
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | * GNU General Public License for more details. |
| 12 | */ |
| 13 | |
Ben Chan | bbd500d | 2014-06-30 22:13:17 -0700 | [diff] [blame] | 14 | #ifndef __GDM72XX_NETLINK_K_H__ |
| 15 | #define __GDM72XX_NETLINK_K_H__ |
| 16 | |
Sage Ahn | 247e9cf | 2012-05-15 13:20:36 +0900 | [diff] [blame] | 17 | #include <linux/netdevice.h> |
| 18 | #include <net/sock.h> |
| 19 | |
Michalis Pappas | 39c511f | 2014-05-09 18:08:27 +0800 | [diff] [blame] | 20 | struct sock *netlink_init(int unit, void (*cb)(struct net_device *dev, u16 type, |
| 21 | void *msg, int len)); |
Sage Ahn | 247e9cf | 2012-05-15 13:20:36 +0900 | [diff] [blame] | 22 | void netlink_exit(struct sock *sock); |
| 23 | int netlink_send(struct sock *sock, int group, u16 type, void *msg, int len); |
| 24 | |
Ben Chan | bbd500d | 2014-06-30 22:13:17 -0700 | [diff] [blame] | 25 | #endif /* __GDM72XX_NETLINK_K_H__ */ |