Difference between revisions of "Dsp cmd"
From MCEWiki
(→Commands) |
(→Commands) |
||
Line 22: | Line 22: | ||
READ bank addr | READ bank addr | ||
:where | :where | ||
− | :* <tt>bank</tt> is the memory bank to read, one of '''X''', '''Y''', '''P''' | + | :* <tt>bank</tt> is the memory bank to read, one of [[PCI card hacking#RAM areas on the DSP|'''X''', '''Y''', '''P''']] |
:* <tt>addr</tt> is the memory address | :* <tt>addr</tt> is the memory address | ||
* '''WRITE''': Write data to the DSP memory banks. Syntax is: | * '''WRITE''': Write data to the DSP memory banks. Syntax is: | ||
WRITE bank addr value | WRITE bank addr value | ||
:where | :where | ||
− | :* <tt>bank</tt> is the memory bank to write, one of '''X''', '''Y''', '''P''' | + | :* <tt>bank</tt> is the memory bank to write, one of [[PCI card hacking#RAM areas on the DSP|'''X''', '''Y''', '''P''']] |
:* <tt>addr</tt> is the memory address | :* <tt>addr</tt> is the memory address | ||
:* <tt>value</tt> is the datum to write | :* <tt>value</tt> is the datum to write |
Revision as of 18:27, 9 January 2014
Template:Hierarchy header dsp_cmd can be used to interact with the PCI fibre card DSP program directly. It makes screwing up the fibre card program and/or your PCI bus simple. Use with caution.
Usage
dsp_cmd [-i] [-q] [-p] [-n CARD] [-f FILE | -x COMMAND] dsp_cmd [-h | -?] where: -h / -? show this help screen -i interactive mode -q quiet mode (report errors only) -p don't prefix output lines -f FILE read commands from FILE -n CARD communicate with PCI fibre card number CARD. Ignored unless Multicard MAS has been enabled. -x COMMAND execute command COMMAND
Commands
COMMAND is one of (case insenstive):
- VERS: Report the version number of the DSP code. Syntax is:
VERS
- READ: Read data from the DSP memory banks. Syntax is:
READ bank addr
- where
- bank is the memory bank to read, one of X, Y, P
- addr is the memory address
- WRITE: Write data to the DSP memory banks. Syntax is:
WRITE bank addr value
- where
- bank is the memory bank to write, one of X, Y, P
- addr is the memory address
- value is the datum to write
- RESET: Reset the DSP program. Similar to the dsp_reset command in mce_cmd, except the mce_cmd command also causes the kernel driver to appropriately reconfigure quiet RP mode, which this does not. So, use that instead of this. Syntax is:
RESET
- RESET_MCE: Reset the MCE. This is entirely equivalent to the mce_reset command in mce_cmd. Syntax is:
RESET_MCE
- QT_SET: Set a QT (quiet transfer) mode parameter. Syntax is:
QT_SET param arg0 arg1
- where
- param is the parameter to set, one of BASE, DELTA, NUMBER, INFORM, SIZE, TAIL, HEAD, DROPS, FLUSH, ENABLE, BURST, RP_BASE, RP_SIZE, RP_ENABLE
- arg0 and arg1 are the arguments to the parameter
See also
- dsp_status for a general status report from the fibre card
- PCI card hacking for examples of dsp_cmd use.