Server IP : 103.169.32.36 / Your IP : 216.73.217.13 Web Server : Apache System : Linux web.dpmptsp 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : apache ( 48) PHP Version : 5.6.40 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/lib/modules/3.10.0-1160.119.1.el7.x86_64/build/include/net/irda/ |
Upload File : |
| Current File : /usr/lib/modules/3.10.0-1160.119.1.el7.x86_64/build/include/net/irda/parameters.h |
/*********************************************************************
*
* Filename: parameters.h
* Version: 1.0
* Description: A more general way to handle (pi,pl,pv) parameters
* Status: Experimental.
* Author: Dag Brattli <dagb@cs.uit.no>
* Created at: Mon Jun 7 08:47:28 1999
* Modified at: Sun Jan 30 14:05:14 2000
* Modified by: Dag Brattli <dagb@cs.uit.no>
*
* Copyright (c) 1999-2000 Dag Brattli, 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 as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* 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, see <http://www.gnu.org/licenses/>.
*
* Michel Dänzer <daenzer@debian.org>, 10/2001
* - simplify irda_pv_t to avoid endianness issues
*
********************************************************************/
#ifndef IRDA_PARAMS_H
#define IRDA_PARAMS_H
/*
* The currently supported types. Beware not to change the sequence since
* it a good reason why the sized integers has a value equal to their size
*/
typedef enum {
PV_INTEGER, /* Integer of any (pl) length */
PV_INT_8_BITS, /* Integer of 8 bits in length */
PV_INT_16_BITS, /* Integer of 16 bits in length */
PV_STRING, /* \0 terminated string */
PV_INT_32_BITS, /* Integer of 32 bits in length */
PV_OCT_SEQ, /* Octet sequence */
PV_NO_VALUE /* Does not contain any value (pl=0) */
} PV_TYPE;
/* Bit 7 of type field */
#define PV_BIG_ENDIAN 0x80
#define PV_LITTLE_ENDIAN 0x00
#define PV_MASK 0x7f /* To mask away endian bit */
#define PV_PUT 0
#define PV_GET 1
typedef union {
char *c;
__u32 i;
__u32 *ip;
} irda_pv_t;
typedef struct {
__u8 pi;
__u8 pl;
irda_pv_t pv;
} irda_param_t;
typedef int (*PI_HANDLER)(void *self, irda_param_t *param, int get);
typedef int (*PV_HANDLER)(void *self, __u8 *buf, int len, __u8 pi,
PV_TYPE type, PI_HANDLER func);
typedef struct {
PI_HANDLER func; /* Handler for this parameter identifier */
PV_TYPE type; /* Data type for this parameter */
} pi_minor_info_t;
typedef struct {
pi_minor_info_t *pi_minor_call_table;
int len;
} pi_major_info_t;
typedef struct {
pi_major_info_t *tables;
int len;
__u8 pi_mask;
int pi_major_offset;
} pi_param_info_t;
int irda_param_pack(__u8 *buf, char *fmt, ...);
int irda_param_insert(void *self, __u8 pi, __u8 *buf, int len,
pi_param_info_t *info);
int irda_param_extract_all(void *self, __u8 *buf, int len,
pi_param_info_t *info);
#define irda_param_insert_byte(buf,pi,pv) irda_param_pack(buf,"bbb",pi,1,pv)
#endif /* IRDA_PARAMS_H */
| N4m3 |
5!z3 |
L45t M0d!f!3d |
0wn3r / Gr0up |
P3Rm!55!0n5 |
0pt!0n5 |
| .. |
-- |
September 29 2025 07:01:24 |
0 / 0 |
0755 |
|
| | | | | |
| af_irda.h |
2.895 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| crc.h |
0.859 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| discovery.h |
3.411 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| ircomm_core.h |
3.782 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| ircomm_event.h |
2.556 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| ircomm_lmp.h |
1.313 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| ircomm_param.h |
4.655 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| ircomm_ttp.h |
1.315 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| ircomm_tty.h |
3.605 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| ircomm_tty_attach.h |
3.099 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| irda.h |
3.88 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| irda_device.h |
10.02 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| iriap.h |
2.88 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| iriap_event.h |
2.317 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| irias_object.h |
3.133 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| irlan_client.h |
1.553 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| irlan_common.h |
6.121 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| irlan_eth.h |
1.209 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| irlan_event.h |
2.12 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| irlan_filter.h |
1.286 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| irlan_provider.h |
1.721 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| irlap.h |
9.814 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| irlap_event.h |
3.39 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| irlap_frame.h |
5.182 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| irlmp.h |
8.891 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| irlmp_event.h |
2.875 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| irlmp_frame.h |
2.254 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| irmod.h |
3.585 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| irqueue.h |
3.052 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| irttp.h |
7.355 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| parameters.h |
3.111 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| qos.h |
2.884 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| timer.h |
3.628 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| wrapper.h |
1.777 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|