accel_ellipse_fill32.inl 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. Copyright (c) 2023 Victor Suarez Rovere <suarezvictor@gmail.com>
  3. SPDX-License-Identifier: AGPL-3.0-only
  4. This program is free software: you can redistribute it and/or modify it under the terms of the
  5. GNU Affero General Public License as published by the Free Software Foundation, version 3.
  6. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
  7. without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. See the GNU Affero General Public License for more details.
  9. You should have received a copy of the GNU Affero General Public License along with this program.
  10. If not, see <https://www.gnu.org/licenses/>.
  11. This file uses portions from LiteX and MiSoC projects under BSD 2-Clause license
  12. Unless otherwise noted, LiteX is copyright (C) 2012-2022 Enjoy-Digital & LiteX developers.
  13. Unless otherwise noted, MiSoC is copyright (C) 2012-2015 Enjoy-Digital.
  14. Unless otherwise noted, MiSoC is copyright (C) 2007-2015 M-Labs Ltd.
  15. See LITEX-CONTRIBUTORS file for additional authors that may have written code used in this file
  16. */
  17. typedef struct {
  18. volatile uint32_t run; //offset 0x0
  19. volatile uint32_t done; //offset 0x4
  20. volatile uint32_t x0; //offset 0x8
  21. volatile uint32_t y0; //offset 0xc
  22. volatile uint32_t x1; //offset 0x10
  23. volatile uint32_t y1; //offset 0x14
  24. volatile uint32_t rgba; //offset 0x18
  25. volatile uint32_t base; //offset 0x1c
  26. volatile uint32_t xstride; //offset 0x20
  27. volatile uint32_t ystride; //offset 0x24
  28. } accel_ellipse_fill32_layout_t;
  29. #ifndef DISABLE_HARDWARE_ACCEL
  30. #define ACCEL_ELLIPSE_FILL32_CSR_PAGE_SIZE 0x28
  31. #define ACCEL_ELLIPSE_FILL32_CSR_PAGE_OFFSET 0x0
  32. ACCEL_STATIC_ASSERT(sizeof(accel_ellipse_fill32_layout_t)==ACCEL_ELLIPSE_FILL32_CSR_PAGE_SIZE, non_matching_struct_size)
  33. #endif