Ignore:
Timestamp:
Jul 11, 2010, 7:42:10 AM (15 years ago)
Author:
David Azarewicz
Message:

Bring branch up-to-date with trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GPL/branches/uniaud32-2.1.x/drv32/read.cpp

    r268 r504  
    1111int   wrOffset= 0;
    1212char  *szprintBuf= 0;
    13 #ifdef DEBUG
    14 int   max_buf_size= 0x100000;
    15 #else
    16 int   max_buf_size= 0x10000;
    17 #endif
    1813
    1914void * __ioremap(unsigned long physaddr, unsigned long size, unsigned long flags);
     
    2520{
    2621  RPRWV __far* rp = (RPRWV __far*)_rp;
    27  
     22
    2823  char *lin;
    2924  int   transferCount= rp->Count;
    30  
     25
    3126  if( szprintBuf )
    3227  {
     
    3530    {
    3631      int diffCount;
    37      
     32
    3833      if( rdOffset > wrOffset )
    3934      {
    40         diffCount= max_buf_size - rdOffset + wrOffset;
     35        diffCount= DBG_MAX_BUF_SIZE - rdOffset + wrOffset;
    4136      } else
    4237      {
     
    4540      if( transferCount > diffCount )
    4641        transferCount= diffCount;
    47      
     42
    4843      rp->Count= transferCount;
    49       if( (rdOffset + transferCount) > max_buf_size )
     44      if( (rdOffset + transferCount) > DBG_MAX_BUF_SIZE )
    5045      {
    51         diffCount= max_buf_size - rdOffset;
     46        diffCount= DBG_MAX_BUF_SIZE - rdOffset;
    5247        memcpy( lin, szprintBuf + rdOffset, diffCount );
    5348        transferCount= transferCount - diffCount;
     
    5550      } else
    5651        diffCount= 0;
    57        
    58       if( transferCount ) 
     52
     53      if( transferCount )
    5954      {
    6055        memcpy( lin + diffCount, szprintBuf + rdOffset, transferCount );
Note: See TracChangeset for help on using the changeset viewer.