ShellPkg/mm: Support UINT16 segment number

It's to follow the Shell 2.2 spec.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
This commit is contained in:
Ruiyu Ni
2017-03-21 13:47:08 +08:00
parent d590cce5cd
commit 0027921b1b
2 changed files with 20 additions and 20 deletions

View File

@ -614,21 +614,21 @@
"MM Address [Value] [-w 1|2|4|8] [-MEM | -MMIO | -IO | -PCI | -PCIE] [-n]\r\n"
".SH OPTIONS\r\n"
" \r\n"
" Address - Specifies a starting address.\r\n"
" Value - Specifies the value to write.\r\n"
" Address - Starting address in hexadecimal format.\r\n"
" Value - The value to write in hexadecimal format.\r\n"
" -MEM - Memory Address type\r\n"
" -MMIO - Memory Mapped IO Address type\r\n"
" -IO - IO Address type\r\n"
" -PCI - PCI Configuration Space Address type:\r\n"
" Address format: 0x000000ssbbddffrr\r\n"
" ss - Segment\r\n"
" Address format: ssssbbddffrr\r\n"
" ssss - Segment\r\n"
" bb - Bus\r\n"
" dd - Device\r\n"
" ff - Function\r\n"
" rr - Register\r\n"
" -PCIE - PCIE Configuration Space Address type:\r\n"
" Address format: 0x00000ssbbddffrrr\r\n"
" ss - Segment\r\n"
" Address format: ssssbbddffrrr\r\n"
" ssss - Segment\r\n"
" bb - Bus\r\n"
" dd - Device\r\n"
" ff - Function\r\n"
@ -653,7 +653,7 @@
" follow the PCI Configuration Space Address format above. The 'PCI'\r\n"
" command can be used to determine the address for a specified device.\r\n"
" It is listed in the PCI configuration space dump information in the\r\n"
" following format: "[EFI 0x000000ssbbddffxx]".\r\n"
" following format: "[EFI ssbbddffxx]".\r\n"
" 5. If the PCIE address type is specified, the 'Address' parameter must\r\n"
" follow the PCIE Configuration Space Address format above.\r\n"
" 6. In interactive mode, type a hex value to modify, 'q' or '.' to exit.\r\n"
@ -709,8 +709,8 @@
" IO 0x0000000000000086 : 0xFF >\r\n"
" IO 0x0000000000000087 : 0x00 > q\r\n"
" \r\n"
" * To display PCI configuration space, ss=00, bb=00, dd=00, ff=00, rr=00:\r\n"
" Shell> mm 0000000000 -PCI\r\n"
" * To display PCI configuration space, ss=0000, bb=00, dd=00, ff=00, rr=00:\r\n"
" Shell> mm 000000000000 -PCI\r\n"
" PCI 0x0000000000000000 : 0x86 >\r\n"
" PCI 0x0000000000000001 : 0x80 >\r\n"
" PCI 0x0000000000000002 : 0x30 >\r\n"
@ -719,8 +719,8 @@
" PCI 0x0000000000000005 : 0x00 > q\r\n"
" These contents can also be displayed by 'PCI 00 00 00'.\r\n"
" \r\n"
" * To display PCIE configuration space, ss=00, bb=06, dd=00, ff=00, rrr=000:\r\n"
" Shell> mm 00060000000 -PCIE\r\n"
" * To display PCIE configuration space, ss=0000, bb=06, dd=00, ff=00, rrr=000:\r\n"
" Shell> mm 0000060000000 -PCIE\r\n"
" PCIE 0x0000000060000000 : 0xAB >\r\n"
" PCIE 0x0000000060000001 : 0x11 >\r\n"
" PCIE 0x0000000060000002 : 0x61 >\r\n"