Difference between revisions of "Dsp cmd"
From MCEWiki
(15 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | {{ | + | {{Related|PCI Card Firmware}} |
− | + | {{Related|MAS Applications}} | |
− | + | '''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. | |
− | dsp_cmd -x | + | == 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 | ||
+ | :* <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 | ||
+ | * '''WRITE''': Write data to the DSP memory banks. Syntax is: | ||
+ | WRITE bank addr value | ||
+ | :where | ||
+ | :* <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>value</tt> 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_PCI''': Perform a hard-reset of the DSP. Syntax is: | ||
+ | RESET_PCI | ||
+ | * '''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 | ||
+ | :* <tt>param</tt> is the parameter to set, one of '''BASE''', '''DELTA''', '''NUMBER''', '''INFORM''', '''SIZE''', '''TAIL''', '''HEAD''', '''DROPS''', '''FLUSH''', '''ENABLE''', '''BURST''', '''RP_BASE''', '''RP_SIZE''', '''RP_ENABLE''' | ||
+ | :* <tt>arg0</tt> and <tt>arg1</tt> 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. | ||
− | [[Category: | + | [[Category:MAS Applications]] |
+ | [[Category:PCI Card Firmware]] |
Latest revision as of 14:06, 12 September 2017
Related topics:
Related topics:
► MAS
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_PCI: Perform a hard-reset of the DSP. Syntax is:
RESET_PCI
- 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.