m00235_fdma_packer_memmap_package.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * Copyright 2014-2015 Cisco Systems, Inc. and/or its affiliates.
  3. * All rights reserved.
  4. *
  5. * This program is free software; you may redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation; version 2 of the License.
  8. *
  9. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  10. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  11. * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  12. * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
  13. * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
  14. * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  15. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  16. * SOFTWARE.
  17. */
  18. #ifndef M00235_FDMA_PACKER_MEMMAP_PACKAGE_H
  19. #define M00235_FDMA_PACKER_MEMMAP_PACKAGE_H
  20. /*******************************************************************
  21. * Register Block
  22. * M00235_FDMA_PACKER_MEMMAP_PACKAGE_VHD_REGMAP
  23. *******************************************************************/
  24. struct m00235_fdma_packer_regmap {
  25. uint32_t control; /* Reg 0x0000, Default=0x0 */
  26. };
  27. #define M00235_FDMA_PACKER_REG_CONTROL_OFST 0
  28. /*******************************************************************
  29. * Bit Mask for register
  30. * M00235_FDMA_PACKER_MEMMAP_PACKAGE_VHD_BITMAP
  31. *******************************************************************/
  32. /* control [3:0] */
  33. #define M00235_CONTROL_BITMAP_ENABLE_OFST (0)
  34. #define M00235_CONTROL_BITMAP_ENABLE_MSK (0x1 << M00235_CONTROL_BITMAP_ENABLE_OFST)
  35. #define M00235_CONTROL_BITMAP_PACK_FORMAT_OFST (1)
  36. #define M00235_CONTROL_BITMAP_PACK_FORMAT_MSK (0x3 << M00235_CONTROL_BITMAP_PACK_FORMAT_OFST)
  37. #define M00235_CONTROL_BITMAP_ENDIAN_FORMAT_OFST (3)
  38. #define M00235_CONTROL_BITMAP_ENDIAN_FORMAT_MSK (0x1 << M00235_CONTROL_BITMAP_ENDIAN_FORMAT_OFST)
  39. #endif /*M00235_FDMA_PACKER_MEMMAP_PACKAGE_H*/