Remi Denis-Courmont | bce7b15 | 2008-09-22 19:51:15 -0700 | [diff] [blame] | 1 | /** |
| 2 | * file phonet.h |
| 3 | * |
| 4 | * Phonet sockets kernel interface |
| 5 | * |
| 6 | * Copyright (C) 2008 Nokia Corporation. All rights reserved. |
| 7 | * |
| 8 | * This program is free software; you can redistribute it and/or |
| 9 | * modify it under the terms of the GNU General Public License |
| 10 | * version 2 as published by the Free Software Foundation. |
| 11 | * |
| 12 | * This program is distributed in the hope that it will be useful, but |
| 13 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * General Public License for more details. |
| 16 | * |
| 17 | * You should have received a copy of the GNU General Public License |
| 18 | * along with this program; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA |
| 20 | * 02110-1301 USA |
| 21 | */ |
Remi Denis-Courmont | bce7b15 | 2008-09-22 19:51:15 -0700 | [diff] [blame] | 22 | #ifndef LINUX_PHONET_H |
| 23 | #define LINUX_PHONET_H |
| 24 | |
David Howells | 607ca46 | 2012-10-13 10:46:48 +0100 | [diff] [blame] | 25 | #include <uapi/linux/phonet.h> |
Jaswinder Singh Rajput | 06f43ad | 2009-01-30 22:03:25 +0530 | [diff] [blame] | 26 | |
RĂ©mi Denis-Courmont | f5bb1c5 | 2009-09-09 00:00:05 +0000 | [diff] [blame] | 27 | #define SIOCPNGAUTOCONF (SIOCDEVPRIVATE + 0) |
| 28 | |
| 29 | struct if_phonet_autoconf { |
| 30 | uint8_t device; |
| 31 | }; |
| 32 | |
| 33 | struct if_phonet_req { |
| 34 | char ifr_phonet_name[16]; |
| 35 | union { |
| 36 | struct if_phonet_autoconf ifru_phonet_autoconf; |
| 37 | } ifr_ifru; |
| 38 | }; |
| 39 | #define ifr_phonet_autoconf ifr_ifru.ifru_phonet_autoconf |
Remi Denis-Courmont | bce7b15 | 2008-09-22 19:51:15 -0700 | [diff] [blame] | 40 | #endif |