Blame android/ipc-common.h
|
Packit Service |
8264ee |
/*
|
|
Packit Service |
8264ee |
*
|
|
Packit Service |
8264ee |
* BlueZ - Bluetooth protocol stack for Linux
|
|
Packit Service |
8264ee |
*
|
|
Packit Service |
8264ee |
* Copyright (C) 2014 Intel Corporation. All rights reserved.
|
|
Packit Service |
8264ee |
*
|
|
Packit Service |
8264ee |
*
|
|
Packit Service |
8264ee |
* This library is free software; you can redistribute it and/or
|
|
Packit Service |
8264ee |
* modify it under the terms of the GNU Lesser General Public
|
|
Packit Service |
8264ee |
* License as published by the Free Software Foundation; either
|
|
Packit Service |
8264ee |
* version 2.1 of the License, or (at your option) any later version.
|
|
Packit Service |
8264ee |
*
|
|
Packit Service |
8264ee |
* This library is distributed in the hope that it will be useful,
|
|
Packit Service |
8264ee |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
8264ee |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit Service |
8264ee |
* Lesser General Public License for more details.
|
|
Packit Service |
8264ee |
*
|
|
Packit Service |
8264ee |
* You should have received a copy of the GNU Lesser General Public
|
|
Packit Service |
8264ee |
* License along with this library; if not, write to the Free Software
|
|
Packit Service |
8264ee |
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
Packit Service |
8264ee |
*
|
|
Packit Service |
8264ee |
*/
|
|
Packit Service |
8264ee |
|
|
Packit Service |
8264ee |
#define IPC_MTU 1024
|
|
Packit Service |
8264ee |
|
|
Packit Service |
8264ee |
#define IPC_STATUS_SUCCESS 0x00
|
|
Packit Service |
8264ee |
|
|
Packit Service |
8264ee |
struct ipc_hdr {
|
|
Packit Service |
8264ee |
uint8_t service_id;
|
|
Packit Service |
8264ee |
uint8_t opcode;
|
|
Packit Service |
8264ee |
uint16_t len;
|
|
Packit Service |
8264ee |
uint8_t payload[0];
|
|
Packit Service |
8264ee |
} __attribute__((packed));
|
|
Packit Service |
8264ee |
|
|
Packit Service |
8264ee |
#define IPC_OP_STATUS 0x00
|
|
Packit Service |
8264ee |
struct ipc_status {
|
|
Packit Service |
8264ee |
uint8_t code;
|
|
Packit Service |
8264ee |
} __attribute__((packed));
|