2 * Copyright (C) 2010 Bluecherry, LLC www.bluecherrydvr.com
3 * Copyright (C) 2010 Ben Collins <bcollins@bluecherry.net>
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 #ifndef __SOLO6X10_OFFSETS_H
21 #define __SOLO6X10_OFFSETS_H
23 /* Offsets and sizes of the external address */
24 #define SOLO_DISP_EXT_ADDR 0x00000000
25 #define SOLO_DISP_EXT_SIZE 0x00480000
27 #define SOLO_DEC2LIVE_EXT_ADDR (SOLO_DISP_EXT_ADDR + SOLO_DISP_EXT_SIZE)
28 #define SOLO_DEC2LIVE_EXT_SIZE 0x00240000
30 #define SOLO_OSG_EXT_ADDR (SOLO_DEC2LIVE_EXT_ADDR + SOLO_DEC2LIVE_EXT_SIZE)
31 #define SOLO_OSG_EXT_SIZE 0x00120000
33 #define SOLO_EOSD_EXT_ADDR (SOLO_OSG_EXT_ADDR + SOLO_OSG_EXT_SIZE)
34 #define SOLO_EOSD_EXT_SIZE 0x00010000
36 #define SOLO_MOTION_EXT_ADDR(__solo) (SOLO_EOSD_EXT_ADDR + \
37 (SOLO_EOSD_EXT_SIZE * __solo->nr_chans))
38 #define SOLO_MOTION_EXT_SIZE 0x00080000
40 #define SOLO_G723_EXT_ADDR(__solo) \
41 (SOLO_MOTION_EXT_ADDR(__solo) + SOLO_MOTION_EXT_SIZE)
42 #define SOLO_G723_EXT_SIZE 0x00010000
44 #define SOLO_CAP_EXT_ADDR(__solo) \
45 (SOLO_G723_EXT_ADDR(__solo) + SOLO_G723_EXT_SIZE)
46 #define SOLO_CAP_EXT_MAX_PAGE (18 + 15)
47 #define SOLO_CAP_EXT_SIZE (SOLO_CAP_EXT_MAX_PAGE * 65536)
49 /* This +1 is very important -- Why?! -- BenC */
50 #define SOLO_EREF_EXT_ADDR(__solo) \
51 (SOLO_CAP_EXT_ADDR(__solo) + \
52 (SOLO_CAP_EXT_SIZE * (__solo->nr_chans + 1)))
53 #define SOLO_EREF_EXT_SIZE 0x00140000
55 #define SOLO_MP4E_EXT_ADDR(__solo) \
56 (SOLO_EREF_EXT_ADDR(__solo) + \
57 (SOLO_EREF_EXT_SIZE * __solo->nr_chans))
58 #define SOLO_MP4E_EXT_SIZE(__solo) (0x00080000 * __solo->nr_chans)
60 #define SOLO_DREF_EXT_ADDR(__solo) \
61 (SOLO_MP4E_EXT_ADDR(__solo) + SOLO_MP4E_EXT_SIZE(__solo))
62 #define SOLO_DREF_EXT_SIZE 0x00140000
64 #define SOLO_MP4D_EXT_ADDR(__solo) \
65 (SOLO_DREF_EXT_ADDR(__solo) + \
66 (SOLO_DREF_EXT_SIZE * __solo->nr_chans))
67 #define SOLO_MP4D_EXT_SIZE 0x00080000
69 #define SOLO_JPEG_EXT_ADDR(__solo) \
70 (SOLO_MP4D_EXT_ADDR(__solo) + \
71 (SOLO_MP4D_EXT_SIZE * __solo->nr_chans))
72 #define SOLO_JPEG_EXT_SIZE(__solo) (0x00080000 * __solo->nr_chans)
74 #endif /* __SOLO6X10_OFFSETS_H */