Shell里提供了大量的命令,可以查看系统的状态信息。今天以运行在Intel Arch上的Vx69为例,总结一下硬件相关的Show命令
查看CPU- 包含组件INCLUDE_INTEL_CPU_SHOW
/* show CPU type, family, model, and supported features */
void vxCpuShow();
/* show content of the Debug Registers 0 to 7 */
void vxDrShow();
/* print the contents of a task's SSE registers
* SSE - Streaming SIMD Extension
* SIMD - Single Instruction Multiple Data
*/
void vxSseShow(int taskId);
或者使用vxCpuIdShow()
/* probe the CPU for feature set */
int vxCpuIdProbe(VX_CPUID *vxCpuId);
/* display the probed CPUID features */
void vxCpuIdShow(VX_CPUID *vxCpuId);
查看协处理器 - INCLUDE_COPROCESSOR_SHOW
/* show coprocessor information */
void coprocShow();
/* show a register list for all coprocessors in the system */
void coprocRegListShow();
/* show task-level coprocessor context information */
void coprocTaskRegsShow
(
TASK_ID tid,
int mask/* which coproc contexts to show; 0 means all */
);
查看浮点寄存器 - INCLUDE_HW_FP_SHOW
/* Print the list of available registers */
void fppRegListShow();
查看ACPI - INCLUDE_ACPI_SHOW
/* ACPI - Advanced Configuration and Power Management Interface */
/* Print ACPI table information for all tables */
STATUS acpiTablesShow();
/* Show ACPI devices */
STATUS acpiDevicesShow ();
/* Show ACPI internal database */
STATUS acpiObjectsShow();
/* Display CPU info obtained by ACPI */
STATUS acpiBoardShow();
/* print system board information */
STATUS sysBoardInfoPrint();
查看VxBus - INCLUDE_VXBUS_SHOW
/* show vxBus subsystem */
void vxBusShow(int verboseLevel);
/* Show bus topology */
int vxbTopoShow();
/* Show bus information*/
STATUS vxbPresStructShow(struct vxbBusPresent *pPres);
/* Show device information*/
STATUS vxbDevStructShow(struct vxbDev *pDev);
/* Show bus hierarchy */
void vxbDevPathShow(struct vxbDev *pDev);
/* Show interrupt controllers for device's interrupts*/
STATUS plbIntrShow(VXB_DEVICE_ID pDev,int Level);
/* show interrupt values for specified device */
int devResourceIntrShow(VXB_DEVICE_ID pDev);
/* show all devices and resource values */
void hcfResourceAllShow();
查看PCI- INCLUDE_PCI_BUS_SHOW
查看USB - INCLUDE_USB_SHOW
/* show usb devices on the system */
void usbShow();
/* show attached usb devices which using GEN2 class driver */
void usbGen2Show();
查看IDE硬盘 - INCLUDE_ATA_SHOW
/* show the ATA/IDE disk parameters */
STATUS ataShow(int ctrl, int drive);
查看Intel IDE硬盘 - INCLUDE_DRV_STORAGE_INTEL_ICH_SHOW
/* show Intel(82371AB) ATA/IDE disk parameters */
STATUS ichAtaShow(VXB_DEVICE_ID pDev, int ctrl, int drive);
查看Intel AHCI SATA硬盘 - INCLUDE_DRV_STORAGE_INTEL_AHCI_SHOW
/* show the capabilities of a AHCI controller */
STATUS ahciCtrlShow(VXB_DEVICE_ID pDev);
/* show the AHCI disk parameters */
STATUS ahciShow(VXB_DEVICE_ID pDev, int drive);
/* show the AHCI disk SMART data */
STATUS ahciSmartShow(VXB_DEVICE_ID pDev, int drive);
查看Timer - INCLUDE_TIMER_SYS_SHOW
/* show the system clock information */
void vxbSysClkShow();
/* show the delay clock information */
void vxbDelayClkShow();
/* show the auxiliary clock information */
void vxbAuxClkShow();
/* show the timestamp clock information */
void vxbTimestampShow();