Changeset 9569b39 in rtems-libbsd


Ignore:
Timestamp:
Nov 17, 2017, 1:23:55 PM (20 months ago)
Author:
Christian Mauderer <Christian.Mauderer@…>
Branches:
7ece7548c1b05cf6bb10e6708b83b2401d45c250, 29cc431e0bcfe059d65ac3019f53eeafa5064ae8
Children:
b1649d6
Parents:
c360b1a
git-author:
Christian Mauderer <Christian.Mauderer@…> (11/17/17 13:23:55)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/17/17 13:28:56)
Message:

at91_mci: Fix for 32k buffer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freebsd/sys/arm/at91/at91_mci.c

    rc360b1a r9569b39  
    141141 */
    142142#define BBCOUNT     2
     143#ifndef __rtems__
    143144#define BBSIZE      (16*1024)
    144145#define MAX_BLOCKS  ((BBSIZE*BBCOUNT)/512)
     146#else /* __rtems__ */
     147#define BBSIZE      (32*1024)
     148#define MAX_BLOCKS  ((BBSIZE)/512)
     149/* FIXME: It would be better to split the DMA up in that case like in the
     150 * original driver. But that would need some rework. */
     151#endif /* __rtems__ */
    145152
    146153static int mci_debug;
     
    936943                int err;
    937944
     945#ifndef __rtems__
    938946                if (remaining > (BBCOUNT*BBSIZE))
     947#else /* __rtems__ */
     948                if (remaining > (BBSIZE))
     949#endif /* __rtems__ */
    939950                        panic("IO read size exceeds MAXDATA\n");
    940951
Note: See TracChangeset for help on using the changeset viewer.