mbgtools-lx  4.2.8
mbgpccyc.h File Reference
#include <mbg_tgt.h>
#include <words.h>

Go to the source code of this file.

Macros

#define _ext   extern
 
#define _mbg_swab_mbg_pc_cycles(_p)   _nop_macro_fnc()
 
#define _mbg_swab_mbg_pc_cycles_frequency(_p)   _nop_macro_fnc()
 
#define MBG_PC_CYCLES_SUPPORTED   0
 

Typedefs

typedef int64_t MBG_PC_CYCLES
 Generic types to hold PC cycle counter values. More...
 
typedef uint64_t MBG_PC_CYCLES_FREQUENCY
 

Functions

static __mbg_inline void mbg_get_pc_cycles (MBG_PC_CYCLES *p)
 
static __mbg_inline void mbg_get_pc_cycles_frequency (MBG_PC_CYCLES_FREQUENCY *p)
 
static __mbg_inline MBG_PC_CYCLES mbg_delta_pc_cycles (const MBG_PC_CYCLES *p1, const MBG_PC_CYCLES *p2)
 

Macro Definition Documentation

◆ _ext

#define _ext   extern

Definition at line 71 of file mbgpccyc.h.

◆ _mbg_swab_mbg_pc_cycles

#define _mbg_swab_mbg_pc_cycles (   _p)    _nop_macro_fnc()

Definition at line 111 of file mbgpccyc.h.

◆ _mbg_swab_mbg_pc_cycles_frequency

#define _mbg_swab_mbg_pc_cycles_frequency (   _p)    _nop_macro_fnc()

Definition at line 114 of file mbgpccyc.h.

◆ MBG_PC_CYCLES_SUPPORTED

#define MBG_PC_CYCLES_SUPPORTED   0

Typedef Documentation

◆ MBG_PC_CYCLES

Generic types to hold PC cycle counter values.

The cycle counter value is usually derived from the PC CPU's TSC or some other timer hardware on the mainboard.

Definition at line 97 of file mbgpccyc.h.

◆ MBG_PC_CYCLES_FREQUENCY

Definition at line 98 of file mbgpccyc.h.

Function Documentation

◆ mbg_delta_pc_cycles()

static __mbg_inline MBG_PC_CYCLES mbg_delta_pc_cycles ( const MBG_PC_CYCLES p1,
const MBG_PC_CYCLES p2 
)
static

◆ mbg_get_pc_cycles()

◆ mbg_get_pc_cycles_frequency()

static __mbg_inline void mbg_get_pc_cycles_frequency ( MBG_PC_CYCLES_FREQUENCY p)
static

Definition at line 250 of file mbgpccyc.h.

Referenced by ioctl_switch(), mbg_get_default_cycles_frequency(), and pcps_probe_device().