xmm6160: Use device-specific sizes and offsets
[libsamsung-ipc.git] / samsung-ipc / device / aries / aries_ipc.h
1 /*
2  * This file is part of libsamsung-ipc.
3  *
4  * Copyright (C) 2011-2013 Paul Kocialkowski <contact@paulk.fr>
5  * Copyright (C) 2011 Igor Almeida <igor.contato@gmail.com>
6  *
7  * libsamsung-ipc is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * libsamsung-ipc is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with libsamsung-ipc.  If not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21
22 #include "phonet.h"
23
24 #ifndef __ARIES_IPC_H__
25 #define __ARIES_IPC_H__
26
27 #define ARIES_MODEM_IMAGE_SIZE                                  0xA00000
28 #define ARIES_PSI_SIZE                                          0x5000
29 #define ARIES_ONEDRAM_NV_DATA_OFFSET                            0xD80000
30 #define ARIES_ONEDRAM_MEMORY_SIZE                               0xFFF000
31 #define ARIES_ONEDRAM_INIT                                      0x12341234
32 #define ARIES_ONEDRAM_MAGIC                                     0x45674567
33 #define ARIES_ONEDRAM_DEINIT                                    0xABCDABCD
34 #define ARIES_DATA_SIZE                                         0x50000
35 #define ARIES_SOCKET_RFS_MAGIC                                  0x80000
36
37 #define SO_IPC_RFS                                              0x21
38 #define ARIES_MODEM_FMT_SPN                                     0x01
39 #define ARIES_MODEM_RFS_SPN                                     0x41
40
41 #define ARIES_MODEM_IMAGE_DEVICE                "/dev/block/bml12"
42 #define ARIES_MODEM_SERIAL_DEVICE               "/dev/s3c2410_serial3"
43 #define ARIES_ONEDRAM_DEVICE                    "/dev/onedram"
44 #define ARIES_MODEMCTL_STATUS_SYSFS             "/sys/class/modemctl/xmm/status"
45 #define ARIES_MODEMCTL_CONTROL_SYSFS            "/sys/class/modemctl/xmm/control"
46 #define ARIES_MODEM_IFACE                       "svnet0"
47 #define ARIES_MODEM_PDP_ACTIVATE_SYSFS          "/sys/class/net/svnet0/pdp/activate"
48 #define ARIES_MODEM_PDP_DEACTIVATE_SYSFS        "/sys/class/net/svnet0/pdp/deactivate"
49
50 #define ARIES_GPRS_IFACE_PREFIX                 "pdp"
51 #define ARIES_GPRS_IFACE_COUNT                                  3
52
53 struct aries_ipc_transport_data {
54     struct sockaddr_pn spn;
55     int fd;
56 };
57
58 #endif
59
60 // vim:ts=4:sw=4:expandtab