OVERVIEW of ichfb DMA Test Module

This DMA test program consists of the following configurations:
a) Select channel number (0-3), for example, test channel 3
  $ echo 3 > /sys/kernel/debug/ichfb_dmatest/chnl

b) Select direction (DMAR/DMAW/DMAV), for example, test DMAR
  $ echo r > /sys/kernel/debug/ichfb_dmatest/dir_c

b) Select transfer mode (link mode / block mode), for example, test link mode
  $ echo 1 > /sys/kernel/debug/ichfb_dmatest/link_mode

c) Select interrupt mode (interrupt mode / polling mode), for example, test polling mode
  $ echo 0 > /sys/kernel/debug/ichfb_dmatest/int_mode


REQUIREMENTS
============

To enable ichfb DMA test module, you should select CONFIG_DEBUG_FS = y.

Before running the test, ensure that any other applications are not using ichfb
DMA engine, such as xorg, or else the test result might be incorrect.

Besides, all the other parameters are set to default values, you can change
it by sysfs, such as:
$ echo 3 > /sys/kernel/debug/ichfb_dmatest/desc_nr


RUNNING THE TEST
================

$ echo 1 > /sys/kernel/debug/ichfb_dmatest/test


CHECK TEST RESULT
=================

$ cat /sys/kernel/debug/ichfb_dmatest/test


PARAMETERS
==========

You can change the following parameters:

param			: value
-------------------------------
dir_c			: r/R/w/W/v/V
chnl			: [0,3]
link_mode		: [0,1]
int_mode		: [0,1]
desc_nr			: [1,63]
dst_blk_nr		: [1,]
dst_gap_sz		: [0,]
src_blk_nr		: [1,]
src_gap_sz		: [0,]
trans_sz_per_desc	: (0,]
vmem0_addr		: [0,2G)
vmem1_addr		: (vmem0_addr,2G)
offset			: [0,31]

The parameters have the following meaning:

dir_c:
	Transfer directions are DMAR/DMAW/DMAV.

	Example: r or R means DMAR.

chnl:
	Channel selection. The valid channel range is 0-3.

link_mode:
	1: link mode; 0: block mode.

int_mode:
	1: interrupt mode; 0: polling mode.

desc_nr:
	Description quantity in single DMA transfer.

dst_blk_nr:
	Destination block quantity, should be > 0.

dst_gap_sz:
	Destination gap size in bytes following the valid
	data block, it makes sense only when dst_blk_nr > 1.

src_blk_nr:
	Source block quantity, should be > 0.

src_gap_sz:
	Source gap size in bytes following the valid
	data block, it makes sense only when src_blk_nr > 1.

trans_sz_per_desc:
	Transfer size in bytes per description, should be > 0,
	better not too large, othwerwize dma allocation may fails.

vmem0_addr:
	Video memory0 address.

vmem1_addr:
	Video memory1 address. Need to check if it's not overlapped
	with vmem0_addr.

offset:
	Offset for non-aligned, the range suggested is 0-31.

