Changeset 1524f95 in rtems-libbsd


Ignore:
Timestamp:
10/04/23 05:13:45 (5 months ago)
Author:
Chris Johns <chrisj@…>
Branches:
6-freebsd-12
Children:
3c9c9f1
Parents:
f0fe043
Message:

i386/pc686: Fix kernel bus DMA for the PC686 BSP

The x86 provides it own bus space support. Use the generic
bus space calls. This however requires the BUS_SPACE_MEM tag
be provided for all architectures. Make the generic value
match the x86 value.

Location:
rtemsbsd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • rtemsbsd/include/machine/bus.h

    rf0fe043 r1524f95  
    167167
    168168#endif /* BSP_HAS_PC_PCI */
     169
     170/*
     171 * Provide a memory tag for the DMA bus interface
     172 */
     173#ifdef BSP_BUS_SPACE_MEM
     174#define BUS_SPACE_MEM BSP_BUS_SPACE_MEM
     175#else
     176#define BUS_SPACE_MEM 1
     177#endif
    169178
    170179/*
  • rtemsbsd/rtems/rtems-kernel-bus-dma.c

    rf0fe043 r1524f95  
    6262#ifdef __arm__
    6363#include <bsp/linker-symbols.h>
     64#endif
     65
     66#ifdef X86_BUS_SPACE_MEM
     67#define BUS_SPACE_MEM X86_BUS_SPACE_MEM
    6468#endif
    6569
     
    262266                int len = dmat->maxsize;
    263267                while (len-- > 0) {
    264                         bsp_bus_space_write_1(mem, 0);
     268                        bus_space_write_1(BUS_SPACE_MEM, mem, 0, 0);
    265269                        mem++;
    266270                }
Note: See TracChangeset for help on using the changeset viewer.