timer.h File Reference

gPXE timer API More...

#include <gpxe/api.h>
#include <config/timer.h>
#include <gpxe/efi/efi_timer.h>
#include <bits/timer.h>

Go to the source code of this file.

Defines

#define TIMER_INLINE(_subsys, _api_func)   SINGLE_API_INLINE ( TIMER_PREFIX_ ## _subsys, _api_func )
 Calculate static inline timer API function name.
#define PROVIDE_TIMER(_subsys, _api_func, _func)   PROVIDE_SINGLE_API ( TIMER_PREFIX_ ## _subsys, _api_func, _func )
 Provide a timer API implementation.
#define PROVIDE_TIMER_INLINE(_subsys, _api_func)   PROVIDE_SINGLE_API_INLINE ( TIMER_PREFIX_ ## _subsys, _api_func )
 Provide a static inline timer API implementation.
#define TICKS_PER_SEC   ( ticks_per_sec() )
 Number of ticks per second.

Functions

 FILE_LICENCE (GPL2_OR_LATER)
void udelay (unsigned long usecs)
 Delay for a fixed number of microseconds.
unsigned long currticks (void)
 Get current system time in ticks.
unsigned long ticks_per_sec (void)
 Get number of ticks per second.


Detailed Description

gPXE timer API

The timer API provides udelay() for fixed delays, and currticks() for a monotonically increasing tick counter.

Definition in file timer.h.


Define Documentation

#define TIMER_INLINE ( _subsys,
_api_func   )     SINGLE_API_INLINE ( TIMER_PREFIX_ ## _subsys, _api_func )

Calculate static inline timer API function name.

Parameters:
_prefix Subsystem prefix
_api_func API function
Return values:
_subsys_func Subsystem API function

Definition at line 24 of file timer.h.

#define PROVIDE_TIMER ( _subsys,
_api_func,
_func   )     PROVIDE_SINGLE_API ( TIMER_PREFIX_ ## _subsys, _api_func, _func )

Provide a timer API implementation.

Parameters:
_prefix Subsystem prefix
_api_func API function
_func Implementing function

Definition at line 34 of file timer.h.

#define PROVIDE_TIMER_INLINE ( _subsys,
_api_func   )     PROVIDE_SINGLE_API_INLINE ( TIMER_PREFIX_ ## _subsys, _api_func )

Provide a static inline timer API implementation.

Parameters:
_prefix Subsystem prefix
_api_func API function

Definition at line 43 of file timer.h.

#define TICKS_PER_SEC   ( ticks_per_sec() )


Function Documentation

FILE_LICENCE ( GPL2_OR_LATER   ) 

void udelay ( unsigned long  usecs  ) 

Delay for a fixed number of microseconds.

Parameters:
usecs Number of microseconds for which to delay

Referenced by __e1000e_read_kmrn_reg(), __e1000e_write_kmrn_reg(), __gm_phy_read(), __vxge_hw_device_register_poll(), __xm_phy_read(), a3c90x_internal_WaitForEeprom(), amd8111e_read_phy(), ath5k_hw_eeprom_read(), ath5k_hw_nic_reset(), ath5k_hw_nic_wakeup(), ath5k_hw_reset(), ath5k_hw_rf5110_calibrate(), ath5k_hw_stop_rx_dma(), ath5k_hw_stop_tx_dma(), ath5k_hw_wake(), atl1e_read_phy_reg(), atl1e_write_phy_reg(), b44_phy_reset(), b44_wait_bit(), bflush(), bnx2_init_chip(), bnx2_read_phy(), bnx2_reset_chip(), bnx2_reset_phy(), bnx2_setup_copper_phy(), bnx2_setup_serdes_phy(), bnx2_write_phy(), deactivate_t509_device(), dmfe_disable(), dmfe_init_dm910x(), e1000e_acquire_nvm(), e1000e_check_for_serdes_link(), e1000e_check_for_serdes_link_82571(), e1000e_configure_k1_ich8lan(), e1000e_disable_pcie_master(), e1000e_flash_cycle_ich8lan(), e1000e_flash_cycle_init_ich8lan(), e1000e_get_hw_semaphore(), e1000e_get_hw_semaphore_82571(), e1000e_get_phy_id(), e1000e_get_phy_id_82571(), e1000e_lan_init_done_ich8lan(), e1000e_lower_eec_clk(), e1000e_phy_has_link_generic(), e1000e_phy_hw_reset_generic(), e1000e_phy_sw_reset(), e1000e_poll_eerd_eewr_done(), e1000e_raise_eec_clk(), e1000e_read_flash_data_ich8lan(), e1000e_read_kmrn_reg_80003es2lan(), e1000e_read_phy_reg_gg82563_80003es2lan(), e1000e_read_phy_reg_mdic(), e1000e_ready_nvm_eeprom(), e1000e_reload_nvm(), e1000e_reset_hw_82571(), e1000e_retry_write_flash_byte_ich8lan(), e1000e_shift_out_eec_bits(), e1000e_standby_nvm(), e1000e_update_nvm_checksum_ich8lan(), e1000e_write_flash_data_ich8lan(), e1000e_write_kmrn_reg_80003es2lan(), e1000e_write_phy_reg_gg82563_80003es2lan(), e1000e_write_phy_reg_mdic(), eepro_transmit(), eeprom_rdy(), eisa_device_enabled(), enable_mii_autopoll(), falcon_gmii_wait(), falcon_mdio_read(), falcon_mdio_write(), falcon_reset_xaui(), falcon_reset_xmac(), falcon_setup_nic(), falcon_spi_wait(), falcon_tenxpress_check_c11(), falcon_txc_logic_reset(), forcedeth_reset(), genesis_mac_init(), gm_phy_write(), hfa384x_docmd_wait(), hfa384x_prepare_bap(), hfa384x_wait_for_event(), i2c_delay(), ifec_mdio_read(), ifec_mdio_write(), ifec_reset(), ifec_scb_cmd_wait(), isapnp_delay(), linda_ib_epb_request(), linda_ib_epb_wait(), linda_init_ib_serdes(), linda_link_state_check(), mac_get_cam(), mac_set_cam(), mdelay(), mdio_read(), mdio_write(), mentormac_init(), mentormac_reset(), mii_rw(), myri10ge_command(), natsemi_reset(), net80211_probe_step(), pci_set_power_state(), phy_read_1bit(), phy_write_1bit(), rdtsc_ticks_per_sec(), read_srom_word(), reg_delay(), rhine_probe1(), rtl818x_probe(), rtl818x_spi_write_bit(), rtl8225_read(), rtl8225_write(), rtl_csi_read(), rtl_csi_write(), rtl_ephy_read(), rtl_ephy_write(), safe_disable_mii_autopoll(), sfe4001_init(), sis190_get_mac_addr_from_apc(), sis190_mii_probe_88e1111_fixup(), sis190_phy_task(), sis96x_get_mac_addr(), smc_read_phy_register(), smc_write_phy_register(), spi_bit_delay(), spi_wait(), stop_rx(), stop_tx(), sundance_probe(), t509_enable(), t509_id_read_eeprom(), t509_poll(), t515_poll(), t595_disable(), t595_poll(), t595_reset(), t5x9_disable(), tg3_abort_hw(), tg3_bmcr_reset(), tg3_chip_reset(), tg3_get_invariants(), tg3_init_5401phy_dsp(), tg3_nvram_read(), tg3_nvram_read_using_eeprom(), tg3_readphy(), tg3_restart_fw(), tg3_setup_copper_phy(), tg3_setup_fiber_phy(), tg3_setup_hw(), tg3_stop_block(), tg3_stop_fw(), tg3_writephy(), TLan_FinishReset(), TLan_PhyFinishAutoNeg(), tlan_probe(), TLan_ResetAdapter(), tw32_carefully(), txrx_reset(), update_cr6(), usleep(), velocity_mii_write(), velocity_soft_reset(), virtnet_transmit(), vxsetlink(), and xm_phy_write().

unsigned long currticks ( void   ) 

unsigned long ticks_per_sec ( void   ) 

Get number of ticks per second.

Return values:
ticks_per_sec Number of ticks per second

Referenced by ath5k_poll(), efi_ticks_per_sec(), net80211_probe_start(), net80211_probe_step(), net80211_rx_frag(), sleep_exec(), and time_exec().


Generated on Tue Apr 6 20:01:14 2010 for gPXE by  doxygen 1.5.7.1