📄 dm_dbghistory.h
字号:
/******************************************************************************
**
** COPYRIGHT (C) 2000, 2001 Intel Corporation.
**
** This software as well as the software described in it is furnished under
** license and may only be used or copied in accordance with the terms of the
** license. The information in this file is furnished for informational use
** only, is subject to change without notice, and should not be construed as
** a commitment by Intel Corporation. Intel Corporation assumes no
** responsibility or liability for any errors or inaccuracies that may appear
** in this document or any software that may be provided in association with
** this document.
** Except as permitted by such license, no part of this document may be
** reproduced, stored in a retrieval system, or transmitted in any form or by
** any means without the express written consent of Intel Corporation.
**
** FILENAME: DM_DbgHistory.h
**
** PURPOSE: Contains constants, types and variables for various debug
** history related capabilities of DM.
**
** LAST MODIFIED: $Modtime: 7/17/03 1:01p $
******************************************************************************/
#ifndef _DM_DBGHISTORY_H
#define _DM_DBGHISTORY_H
/*
*******************************************************************************
*******************************************************************************
Allocations of control bits to module areas: same for all controls
- Be conservative. Managing large structures could become awkward.
- Usage of individual bits in each allocation is determined within the
module's private logic.
*******************************************************************************
*******************************************************************************
*/
#define DM_CONTROL_DEBUG_TOTAL 256
/*
*******************************************************************************
Debug Item Structure used to store the data durring the real-time debugging
*******************************************************************************
*/
typedef struct DbgItemS
{
UINT param; // Time stamp or the referance parameter
PCHAR messageP; // optional message
UINT data; // pointer to a register or a variable
} DbgItemT;
typedef struct DM_ControlDbgHistoryItemS
{
PCHAR dbgCntrlName; // pointer to the debug control name
BOOL dbgEnable; // enable/disable debug control
} DM_ControlDbgHistoryItemT;
// Note: In case of adding more control switches, do not forget to modify
// DM_ControlDbgHistoryTable in DM_DbgHistory.c
typedef enum DM_ControlDbgHistoryE
{
// Symbol decimal id#
DM_DBG_ARP_0, // 0
DM_DBG_DHCP_0, // 1
DM_DBG_ETHERNET_0, // 2
DM_DBG_ICMP_0, // 3
DM_DBG_INET_0, // 4
DM_DBG_IP_0, // 5
DM_DBG_TFTP_0, // 6
DM_DBG_UDP_0, // 7
DM_DBG_LAN91C111_0, // 8
DM_DBG_DMA_0, // 9
DM_DBG_XS_AC97_CTRL, // 10
DM_DBG_UART_0, // 11
DM_DBG_FIR_0, // 12
DM_DBG_SSP, // 13
DM_DBG_AC97_CODEC, // 14
DM_DBG_XS_INT_CTRL, // 15
DM_DBG_FLASH_0, // 16
DM_DBG_FLASH_1, // 17
DM_DBG_FLASH_LOADER_0, // 18
DM_DBG_MMC, // 19
DM_DBG_SA1111_GPIO_0, // 20
DM_DBG_XS_PCMCIA_0, // 21
DM_DBG_SK_PCMCIA_0, // 22
DM_DBG_USB_CLIENT, // 23
DM_DBG_USB_HOST_0, // 24
DM_DBG_USB_HOST_1, // 25
DM_DBG_SCREEN, // 26
DM_DBG_EXPANSION_0, // 27
DM_DBG_MEMEDIT_0, // 28
DM_DBG_NUM_ASSIGNED
} DM_ControlDbgHistoryT;
/*
*******************************************************************************
Function prototypes
*******************************************************************************
*/
VOID DM_DbgHistoryEnableControl (DM_ControlDbgHistoryT dbgCtrl, BOOL enable);
VOID DM_DbgHistoryControlTogle (PVOID, PCHAR);
VOID DM_DbgHistoryIncrementControl (PVOID, PCHAR);
VOID DM_DbgHistoryDecrementControl (PVOID, PCHAR);
VOID DM_DbgHistoryDisplayCurrControl (PVOID, PCHAR);
VOID DM_DbgHistoryPrintAllControls (PVOID dummy1, PCHAR dummy2);
VOID DM_DbgCaptureHistory (PCHAR messageP,
PUINT dataP,
DM_ControlDbgHistoryT dbgCtrl);
VOID DM_DbgDumpHistory (PVOID dummy1, PCHAR dummy2);
VOID DM_DbgClearHistory (PVOID dummy1, PCHAR dummy2);
VOID DM_DbgHistoryControlToggleSelected (PVOID dummy1, PCHAR controlNameP);
#endif // _DM_DBG_HISTORY_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -