offsets.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /*
  2. * Copyright (C) 2010 Bluecherry, LLC www.bluecherrydvr.com
  3. * Copyright (C) 2010 Ben Collins <bcollins@bluecherry.net>
  4. *
  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.
  9. *
  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.
  14. *
  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.
  18. */
  19. #ifndef __SOLO6X10_OFFSETS_H
  20. #define __SOLO6X10_OFFSETS_H
  21. /* Offsets and sizes of the external address */
  22. #define SOLO_DISP_EXT_ADDR 0x00000000
  23. #define SOLO_DISP_EXT_SIZE 0x00480000
  24. #define SOLO_DEC2LIVE_EXT_ADDR (SOLO_DISP_EXT_ADDR + SOLO_DISP_EXT_SIZE)
  25. #define SOLO_DEC2LIVE_EXT_SIZE 0x00240000
  26. #define SOLO_OSG_EXT_ADDR (SOLO_DEC2LIVE_EXT_ADDR + SOLO_DEC2LIVE_EXT_SIZE)
  27. #define SOLO_OSG_EXT_SIZE 0x00120000
  28. #define SOLO_EOSD_EXT_ADDR (SOLO_OSG_EXT_ADDR + SOLO_OSG_EXT_SIZE)
  29. #define SOLO_EOSD_EXT_SIZE 0x00010000
  30. #define SOLO_MOTION_EXT_ADDR(__solo) (SOLO_EOSD_EXT_ADDR + \
  31. (SOLO_EOSD_EXT_SIZE * __solo->nr_chans))
  32. #define SOLO_MOTION_EXT_SIZE 0x00080000
  33. #define SOLO_G723_EXT_ADDR(__solo) \
  34. (SOLO_MOTION_EXT_ADDR(__solo) + SOLO_MOTION_EXT_SIZE)
  35. #define SOLO_G723_EXT_SIZE 0x00010000
  36. #define SOLO_CAP_EXT_ADDR(__solo) \
  37. (SOLO_G723_EXT_ADDR(__solo) + SOLO_G723_EXT_SIZE)
  38. #define SOLO_CAP_EXT_MAX_PAGE (18 + 15)
  39. #define SOLO_CAP_EXT_SIZE (SOLO_CAP_EXT_MAX_PAGE * 65536)
  40. /* This +1 is very important -- Why?! -- BenC */
  41. #define SOLO_EREF_EXT_ADDR(__solo) \
  42. (SOLO_CAP_EXT_ADDR(__solo) + \
  43. (SOLO_CAP_EXT_SIZE * (__solo->nr_chans + 1)))
  44. #define SOLO_EREF_EXT_SIZE 0x00140000
  45. #define SOLO_MP4E_EXT_ADDR(__solo) \
  46. (SOLO_EREF_EXT_ADDR(__solo) + \
  47. (SOLO_EREF_EXT_SIZE * __solo->nr_chans))
  48. #define SOLO_MP4E_EXT_SIZE(__solo) (0x00080000 * __solo->nr_chans)
  49. #define SOLO_DREF_EXT_ADDR(__solo) \
  50. (SOLO_MP4E_EXT_ADDR(__solo) + SOLO_MP4E_EXT_SIZE(__solo))
  51. #define SOLO_DREF_EXT_SIZE 0x00140000
  52. #define SOLO_MP4D_EXT_ADDR(__solo) \
  53. (SOLO_DREF_EXT_ADDR(__solo) + \
  54. (SOLO_DREF_EXT_SIZE * __solo->nr_chans))
  55. #define SOLO_MP4D_EXT_SIZE 0x00080000
  56. #define SOLO_JPEG_EXT_ADDR(__solo) \
  57. (SOLO_MP4D_EXT_ADDR(__solo) + \
  58. (SOLO_MP4D_EXT_SIZE * __solo->nr_chans))
  59. #define SOLO_JPEG_EXT_SIZE(__solo) (0x00080000 * __solo->nr_chans)
  60. #endif /* __SOLO6X10_OFFSETS_H */