Subversion Repositories Kolibri OS

Rev

Rev 4075 | Rev 4570 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4075 Rev 4080
Line 396... Line 396...
396
 
396
 
397
	if (bytes < chunk_size)
397
	if (bytes < chunk_size)
Line 398... Line 398...
398
		chunk_size = bytes;
398
		chunk_size = bytes;
399
 
399
 
400
	iowrite32(bytes, fifo_mem + SVGA_FIFO_RESERVED);
400
	iowrite32(bytes, fifo_mem + SVGA_FIFO_RESERVED);
401
//   mb();
401
    mb();
402
    memcpy(fifo_mem + (next_cmd >> 2), buffer, chunk_size);
402
    memcpy(fifo_mem + (next_cmd >> 2), buffer, chunk_size);
403
	rest = bytes - chunk_size;
403
	rest = bytes - chunk_size;
404
	if (rest)
404
	if (rest)
Line 464... Line 464...
464
		iowrite32(next_cmd, fifo_mem + SVGA_FIFO_NEXT_CMD);
464
		iowrite32(next_cmd, fifo_mem + SVGA_FIFO_NEXT_CMD);
465
	}
465
	}
Line 466... Line 466...
466
 
466
 
467
	if (reserveable)
467
	if (reserveable)
468
		iowrite32(0, fifo_mem + SVGA_FIFO_RESERVED);
468
		iowrite32(0, fifo_mem + SVGA_FIFO_RESERVED);
469
//   mb();
469
    mb();
470
//   up_write(&fifo_state->rwsem);
470
//   up_write(&fifo_state->rwsem);
471
	vmw_fifo_ping_host(dev_priv, SVGA_SYNC_GENERIC);
471
	vmw_fifo_ping_host(dev_priv, SVGA_SYNC_GENERIC);
472
	mutex_unlock(&fifo_state->fifo_mutex);
472
	mutex_unlock(&fifo_state->fifo_mutex);