blob: 056fdfb7927eff796e8408a144a6862629eedd4d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
/**
* This file is part of libsamsung-ipc.
*
* Copyright (C) 2011 Paul Kocialkowski <contact@paulk.fr>
* Igor Almeida <igor.contato@gmail.com>
*
* libsamsung-ipc 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.
*
* libsamsung-ipc 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 libsamsung-ipc. If not, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef __ARIES_IPC_H__
#define __ARIES_IPC_H__
#include "phonet.h"
#define BOOTCORE_VERSION 0xf0
#define PSI_MAGIC 0x30
#define PSI_DATA_LEN 0x5000
#define RADIO_IMG_MAX_SIZE 0xd80000
#define RADIO_IMG_READ_SIZE 0xa00000
#define ONENAND_MAP_SIZE 0xFFF000
#define ONEDRAM_INIT_READ 0x12341234
#define ONEDRAM_DEINIT_CMD 0x45674567
#define ONEDRAM_DEINIT_READ 0xabcdabcd
#define SO_RFSMAGIC 0x21
#define SOCKET_RFS_MAGIC 0x80000
#define PHONET_IFACE "svnet0"
#define PHONET_SPN_RES_FMT 0x01
#define PHONET_SPN_RES_RFS 0x41
#define MAX_MODEM_DATA_SIZE 0x1000
#define GPRS_IFACE_PREFIX "pdp"
#define GPRS_IFACE_COUNT 3
int phonet_iface_ifdown(void);
int phonet_iface_ifup(void);
struct aries_ipc_transport_data {
struct sockaddr_pn spn;
int fd;
};
#endif
// vim:ts=4:sw=4:expandtab
|