David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 2 | /** |
| 3 | * file phonet.h |
| 4 | * |
| 5 | * Phonet sockets kernel interface |
| 6 | * |
| 7 | * Copyright (C) 2008 Nokia Corporation. All rights reserved. |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 8 | */ |
| 9 | #ifndef LINUX_PHONET_H |
| 10 | #define LINUX_PHONET_H |
| 11 | |
| 12 | #include <uapi/linux/phonet.h> |
| 13 | |
| 14 | #define SIOCPNGAUTOCONF (SIOCDEVPRIVATE + 0) |
| 15 | |
| 16 | struct if_phonet_autoconf { |
| 17 | uint8_t device; |
| 18 | }; |
| 19 | |
| 20 | struct if_phonet_req { |
| 21 | char ifr_phonet_name[16]; |
| 22 | union { |
| 23 | struct if_phonet_autoconf ifru_phonet_autoconf; |
| 24 | } ifr_ifru; |
| 25 | }; |
| 26 | #define ifr_phonet_autoconf ifr_ifru.ifru_phonet_autoconf |
| 27 | #endif |