Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
phonet.h File Reference
#include <linux/types.h>
#include <linux/socket.h>

Go to the source code of this file.

Data Structures

struct  phonethdr
 
struct  phonetmsg
 
struct  sockaddr_pn
 

Macros

#define PN_PROTO_TRANSPORT   0
 
#define PN_PROTO_PHONET   1
 
#define PN_PROTO_PIPE   2
 
#define PHONET_NPROTO   3
 
#define PNPIPE_ENCAP   1
 
#define PNPIPE_IFINDEX   2
 
#define PNPIPE_HANDLE   3
 
#define PNPIPE_INITSTATE   4
 
#define PNADDR_ANY   0
 
#define PNADDR_BROADCAST   0xFC
 
#define PNPORT_RESOURCE_ROUTING   0
 
#define PNPIPE_ENCAP_NONE   0
 
#define PNPIPE_ENCAP_IP   1
 
#define SIOCPNGETOBJECT   (SIOCPROTOPRIVATE + 0)
 
#define SIOCPNENABLEPIPE   (SIOCPROTOPRIVATE + 13)
 
#define SIOCPNADDRESOURCE   (SIOCPROTOPRIVATE + 14)
 
#define SIOCPNDELRESOURCE   (SIOCPROTOPRIVATE + 15)
 
#define PN_COMMON_MESSAGE   0xF0
 
#define PN_COMMGR   0x10
 
#define PN_PREFIX   0xE0 /* resource for extended messages */
 
#define pn_submsg_id   pn_msg_u.base.pn_submsg_id
 
#define pn_e_submsg_id   pn_msg_u.ext.pn_e_submsg_id
 
#define pn_e_res_id   pn_msg_u.ext.pn_e_res_id
 
#define pn_data   pn_msg_u.base.pn_data
 
#define pn_e_data   pn_msg_u.ext.pn_e_data
 
#define PN_COMM_SERVICE_NOT_IDENTIFIED_RESP   0x01
 
#define PN_COMM_ISA_ENTITY_NOT_REACHABLE_RESP   0x14
 
#define pn_orig_msg_id   pn_data[0]
 
#define pn_status   pn_data[1]
 
#define pn_e_orig_msg_id   pn_e_data[0]
 
#define pn_e_status   pn_e_data[1]
 
#define PN_DEV_PC   0x10
 

Functions

struct phonethdr __attribute__ ((packed))
 

Variables

__u8 pn_rdev
 
__u8 pn_sdev
 
__u8 pn_res
 
__be16 pn_length
 
__u8 pn_robj
 
__u8 pn_sobj
 
struct phonetmsg __attribute__
 
__kernel_sa_family_t spn_family
 
__u8 spn_obj
 
__u8 spn_dev
 
__u8 spn_resource
 
__u8 spn_zero [sizeof(struct sockaddr)-sizeof(__kernel_sa_family_t)-3]
 

Macro Definition Documentation

#define PHONET_NPROTO   3

Definition at line 35 of file phonet.h.

#define PN_COMM_ISA_ENTITY_NOT_REACHABLE_RESP   0x14

Definition at line 94 of file phonet.h.

#define PN_COMM_SERVICE_NOT_IDENTIFIED_RESP   0x01

Definition at line 93 of file phonet.h.

#define PN_COMMGR   0x10

Definition at line 84 of file phonet.h.

#define PN_COMMON_MESSAGE   0xF0

Definition at line 83 of file phonet.h.

#define pn_data   pn_msg_u.base.pn_data

Definition at line 89 of file phonet.h.

#define PN_DEV_PC   0x10

Definition at line 110 of file phonet.h.

#define pn_e_data   pn_msg_u.ext.pn_e_data

Definition at line 90 of file phonet.h.

#define pn_e_orig_msg_id   pn_e_data[0]

Definition at line 97 of file phonet.h.

#define pn_e_res_id   pn_msg_u.ext.pn_e_res_id

Definition at line 88 of file phonet.h.

#define pn_e_status   pn_e_data[1]

Definition at line 98 of file phonet.h.

#define pn_e_submsg_id   pn_msg_u.ext.pn_e_submsg_id

Definition at line 87 of file phonet.h.

#define pn_orig_msg_id   pn_data[0]

Definition at line 95 of file phonet.h.

#define PN_PREFIX   0xE0 /* resource for extended messages */

Definition at line 85 of file phonet.h.

#define PN_PROTO_PHONET   1

Definition at line 32 of file phonet.h.

#define PN_PROTO_PIPE   2

Definition at line 34 of file phonet.h.

#define PN_PROTO_TRANSPORT   0

file phonet.h

Phonet sockets kernel interface

Copyright (C) 2008 Nokia Corporation. All rights reserved.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

Definition at line 30 of file phonet.h.

#define pn_status   pn_data[1]

Definition at line 96 of file phonet.h.

#define pn_submsg_id   pn_msg_u.base.pn_submsg_id

Definition at line 86 of file phonet.h.

#define PNADDR_ANY   0

Definition at line 43 of file phonet.h.

#define PNADDR_BROADCAST   0xFC

Definition at line 44 of file phonet.h.

#define PNPIPE_ENCAP   1

Definition at line 38 of file phonet.h.

#define PNPIPE_ENCAP_IP   1

Definition at line 49 of file phonet.h.

#define PNPIPE_ENCAP_NONE   0

Definition at line 48 of file phonet.h.

#define PNPIPE_HANDLE   3

Definition at line 40 of file phonet.h.

#define PNPIPE_IFINDEX   2

Definition at line 39 of file phonet.h.

#define PNPIPE_INITSTATE   4

Definition at line 41 of file phonet.h.

#define PNPORT_RESOURCE_ROUTING   0

Definition at line 45 of file phonet.h.

#define SIOCPNADDRESOURCE   (SIOCPROTOPRIVATE + 14)

Definition at line 54 of file phonet.h.

#define SIOCPNDELRESOURCE   (SIOCPROTOPRIVATE + 15)

Definition at line 55 of file phonet.h.

#define SIOCPNENABLEPIPE   (SIOCPROTOPRIVATE + 13)

Definition at line 53 of file phonet.h.

#define SIOCPNGETOBJECT   (SIOCPROTOPRIVATE + 0)

Definition at line 52 of file phonet.h.

Function Documentation

struct phonethdr __attribute__ ( (packed)  )
read

mcontroller : adapter info structure for old mimd_t apps

: base address : irq number : number of logical drives : pci bus : pci device : pci function : pci id : vendor id : slot number : unique id

Definition at line 171 of file esd_usb2.c.

Variable Documentation

__be16 pn_length

Definition at line 69 of file phonet.h.

__u8 pn_rdev

Definition at line 66 of file phonet.h.

__u8 pn_res

Definition at line 68 of file phonet.h.

__u8 pn_robj

Definition at line 70 of file phonet.h.

__u8 pn_sdev

Definition at line 67 of file phonet.h.

__u8 pn_sobj

Definition at line 71 of file phonet.h.

__u8 spn_dev

Definition at line 110 of file phonet.h.

Definition at line 108 of file phonet.h.

__u8 spn_obj

Definition at line 109 of file phonet.h.

__u8 spn_resource

Definition at line 111 of file phonet.h.

Definition at line 112 of file phonet.h.