iPXE
igbvf_osdep.h File Reference
#include <stdbool.h>

Go to the source code of this file.

Macros

#define _IGBVF_OSDEP_H_
#define u8   unsigned char
#define dma_addr_t   unsigned long
#define __le16   uint16_t
#define __le32   uint32_t
#define __le64   uint64_t
#define __iomem
#define __devinit
#define ____cacheline_aligned_in_smp
#define msleep(x)
#define ETH_FCS_LEN   4
#define usec_delay(x)
#define msec_delay(x)
#define msec_delay_irq(x)
#define PCI_COMMAND_REGISTER   PCI_COMMAND
#define CMD_MEM_WRT_INVALIDATE   PCI_COMMAND_INVALIDATE
#define ETH_ADDR_LEN   ETH_ALEN
#define DEBUGOUT(S)
#define DEBUGOUT1(S, A...)
#define DEBUGFUNC(F)
#define DEBUGOUT2   DEBUGOUT1
#define DEBUGOUT3   DEBUGOUT2
#define DEBUGOUT7   DEBUGOUT3
#define E1000_WRITE_REG(a, reg, value)
#define E1000_READ_REG(a, reg)
#define E1000_WRITE_REG_ARRAY(a, reg, offset, value)
#define E1000_READ_REG_ARRAY(a, reg, offset)
#define E1000_READ_REG_ARRAY_DWORD   E1000_READ_REG_ARRAY
#define E1000_WRITE_REG_ARRAY_DWORD   E1000_WRITE_REG_ARRAY
#define E1000_WRITE_REG_ARRAY_WORD(a, reg, offset, value)
#define E1000_READ_REG_ARRAY_WORD(a, reg, offset)
#define E1000_WRITE_REG_ARRAY_BYTE(a, reg, offset, value)
#define E1000_READ_REG_ARRAY_BYTE(a, reg, offset)
#define E1000_WRITE_REG_IO(a, reg, offset)
#define E1000_WRITE_FLUSH(a)
#define E1000_WRITE_FLASH_REG(a, reg, value)
#define E1000_WRITE_FLASH_REG16(a, reg, value)
#define E1000_READ_FLASH_REG(a, reg)
#define E1000_READ_FLASH_REG16(a, reg)

Typedefs

typedef int spinlock_t

Functions

 FILE_LICENCE (GPL2_ONLY)

Macro Definition Documentation

◆ _IGBVF_OSDEP_H_

#define _IGBVF_OSDEP_H_

Definition at line 36 of file igbvf_osdep.h.

◆ u8

uint8_t u8   unsigned char

Definition at line 40 of file igbvf_osdep.h.

Referenced by __attribute__(), tkip_tk::__attribute__(), __get_unaligned_le16(), __get_unaligned_le32(), __vxge_hw_device_reg_addr_get(), __vxge_hw_ring_delete(), __vxge_hw_vpath_addr_get(), __vxge_hw_vpath_addr_get(), __vxge_hw_vpath_card_info_get(), aes_unwrap(), aes_wrap(), ar9002_hw_adc_dccal_calibrate(), ar9002_hw_adc_gaincal_calibrate(), ar9002_hw_calibrate(), ar9002_hw_configpcipowersave(), ar9002_hw_iqcalibrate(), ar9002_hw_per_calibration(), ar9003_get_spur_chan_ptr(), ar9003_hw_apply_tuning_caps(), ar9003_hw_cal_pier_get(), ar9003_hw_calibrate(), ar9003_hw_do_getnf(), ar9003_hw_eeprom_get_cck_tgt_pwr(), ar9003_hw_eeprom_get_ht20_tgt_pwr(), ar9003_hw_eeprom_get_ht40_tgt_pwr(), ar9003_hw_eeprom_get_tgt_pwr(), ar9003_hw_get_indirect_edge_power(), ar9003_hw_get_max_edge_power(), ar9003_hw_iqcalibrate(), ar9003_hw_per_calibration(), ar9003_hw_set_chain_masks(), ar9003_hw_set_paprd_txdesc(), ar9003_hw_set_power_per_rate_table(), ar9003_hw_set_target_power_eeprom(), ar9003_hw_spur_mitigate_mrc_cck(), ar9003_hw_spur_mitigate_ofdm(), ar9003_hw_tx_iq_cal_post_proc(), ar9003_hw_tx_iq_cal_run(), ar9003_hw_tx_iqcal_load_avg_2_passes(), ar9003_hw_tx_power_regwrite(), ar9287_eeprom_get_tx_gain_index(), ar9300_check_eeprom_header(), ar9300_comp_cksum(), ar9300_comp_hdr_unpack(), ar9300_compress_decision(), ar9300_eeprom_read_byte(), ar9300_eeprom_read_word(), ar9300_eeprom_restore_flash(), ar9300_eeprom_restore_internal(), ar9300_read_eeprom(), ar9300_read_otp(), ar9300_uncompress_block(), arc4_setkey(), arc4_xor(), ath5k_combine_linear_pcdac_curves(), ath5k_combine_pwr_to_pdadc_curves(), ath5k_create_power_curve(), ath5k_eeprom_convert_pcal_info_2413(), ath5k_eeprom_convert_pcal_info_5111(), ath5k_eeprom_convert_pcal_info_5112(), ath5k_eeprom_detach(), ath5k_eeprom_free_pcal_info(), ath5k_eeprom_init_11a_pcal_freq(), ath5k_eeprom_init_header(), ath5k_eeprom_read_freq_list(), ath5k_eeprom_read_mac(), ath5k_eeprom_read_pcal_info_2413(), ath5k_eeprom_read_pcal_info_5112(), ath5k_eeprom_read_target_rate_pwr_info(), ath5k_fill_pwr_to_pcdac_table(), ath5k_get_chan_pcal_surrounding_piers(), ath5k_get_linear_pcdac_min(), ath5k_get_max_ctl_power(), ath5k_get_pcdac_intercepts(), ath5k_get_rate_pcal_data(), ath5k_hw_attach(), ath5k_hw_chan_has_spur_noise(), ath5k_hw_commit_eeprom_settings(), ath5k_hw_disable_pspoll(), ath5k_hw_enable_pspoll(), ath5k_hw_get_lladdr(), ath5k_hw_ini_mode_registers(), ath5k_hw_reset(), ath5k_hw_rfb_op(), ath5k_hw_rfregs_init(), ath5k_hw_set_associd(), ath5k_hw_set_bssid_mask(), ath5k_hw_set_lladdr(), ath5k_hw_set_power(), ath5k_hw_set_txpower_limit(), ath5k_hw_txpower(), ath5k_hw_write_initvals(), ath5k_probe(), ath5k_setup_channel_powertable(), ath5k_setup_pcdac_table(), ath5k_setup_pwr_to_pdadc_table(), ath5k_setup_rate_powertable(), ath5k_stop(), ath9k_adjust_pdadc_values(), ath9k_cmn_get_curchannel(), ath9k_get_txgain_index(), ath9k_hw_4k_set_addac(), ath9k_hw_4k_set_board_values(), ath9k_hw_4k_set_gain(), ath9k_hw_4k_set_txpower(), ath9k_hw_ar9287_set_board_values(), ath9k_hw_ar9287_set_txpower(), ath9k_hw_ar9300_fill_eeprom(), ath9k_hw_ar9300_set_txpower(), ath9k_hw_calibrate(), ath9k_hw_computetxtime(), ath9k_hw_def_set_addac(), ath9k_hw_def_set_board_values(), ath9k_hw_def_set_gain(), ath9k_hw_def_set_txpower(), ath9k_hw_fbin2freq(), ath9k_hw_fbin2freq(), ath9k_hw_fill_cap_info(), ath9k_hw_fill_vpd_table(), ath9k_hw_get_gain_boundaries_pdadcs(), ath9k_hw_get_legacy_target_powers(), ath9k_hw_get_lower_upper_index(), ath9k_hw_get_target_powers(), ath9k_hw_loadnf(), ath9k_hw_probe(), ath9k_hw_process_rxdesc_edma(), ath9k_hw_set_4k_power_cal_table(), ath9k_hw_set_4k_power_per_rate_table(), ath9k_hw_set_ar9287_power_cal_table(), ath9k_hw_set_ar9287_power_per_rate_table(), ath9k_hw_set_def_power_cal_table(), ath9k_hw_set_def_power_per_rate_table(), ath9k_hw_set_ofdm_nil(), ath9k_hw_setup_statusring(), ath9k_hw_update_nfcal_hist_buffer(), ath9k_olc_get_pdadcs(), ath9k_rx_accept(), ath9k_uses_beacons(), ath_buf_set_rate(), ath_descdma_setup(), ath_pci_extn_synch_enable(), ath_pci_probe(), ath_pci_read_cachesize(), ath_txchainmask_reduction(), atl1e_clean_rx_irq(), atl1e_get_permanent_address(), atl1e_get_rx_page(), atl1e_sw_init(), b44_cam_write(), b44_load_mac_and_phy_addr(), b44_read_eeprom(), bnx2_init_board(), bnx2_set_link(), bnx2_set_mac_addr(), bnxt_alloc_rx_iob(), bnxt_er_task(), bnxt_hwrm_error_recovery_req(), bnxt_hwrm_func_qcaps_req(), bnxt_hwrm_func_qcfg_req(), bnxt_hwrm_port_phy_cfg(), bnxt_hwrm_ring_alloc(), bnxt_hwrm_ring_free(), bnxt_is_pci_vf(), bnxt_rst_er_registers(), bnxt_rx_complete(), bnxt_rx_drop(), bnxt_rx_process(), bnxt_service_cq(), bnxt_service_nq(), bnxt_set_rx_desc(), bnxt_tx(), ccmp_cbc_mac(), ccmp_ctr_xor(), ccmp_decrypt(), ccmp_encrypt(), ccmp_feed_cbc_mac(), ccmp_kie_mic(), cmd_status_str(), crc32_le(), dm9132_id_table(), dm9132_id_table(), dmfe_transmit(), eapol_key_rx(), FILE_LICENCE(), FILE_LICENCE(), genesis_mac_init(), genesis_reset(), get_streams(), get_unaligned_le16(), get_unaligned_le32(), gma_set_addr(), gma_set_addr(), golan_eqe_port_subtype_str(), golan_eqe_type_str(), golan_handle_port_event(), golan_query_vport_context(), golan_query_vport_gid(), golan_query_vport_pkey(), grf5101_write_phy_antenna(), hunt_mcdi_copyin(), hunt_mcdi_copyout(), hunt_mcdi_request_poll(), ifec_scb_cmd(), ifec_scb_cmd(), igbvf_hash_mc_addr_vf(), igbvf_rar_set_vf(), igbvf_rar_set_vf(), igbvf_reset_hw_vf(), igbvf_update_mc_addr_list_vf(), max2820_write_phy_antenna(), mcsidx_to_tgtpwridx(), mii_resolve_flowctrl_fdx(), net80211_alloc(), net80211_process_ie(), net80211_tx_mgmt(), net80211_tx_mgmt(), pbkdf2_sha1(), pbkdf2_sha1_f(), pcnet32_setup_mac_addr(), phy_read(), phy_write(), pn_to_u64(), prf_sha1(), read_att_b(), read_crtc_b(), read_gra_b(), read_seq_b(), rsn_pick_desc(), rtl818x_ioread8(), rtl818x_iowrite8(), rtl818x_set_anaparam(), rtl818x_set_hwaddr(), rtl818x_spi_read_bit(), rtl818x_spi_write_bit(), rtl818x_start(), rtl818x_stop(), rtl818x_write_phy(), rtl8225_read(), rtl8225_rf_init(), rtl8225_rf_set_tx_power(), rtl8225_rf_stop(), rtl8225_write(), rtl8225_write_phy_cck(), rtl8225_write_phy_ofdm(), rtl8225z2_rf_init(), rtl8225z2_rf_set_tx_power(), sa2400_rf_init(), sa2400_write_phy_antenna(), sec80211_detect(), sec80211_detect_ie(), sec80211_find_rsn(), select_media(), send_filter_frame(), short_hwrm_cmd_req(), sis190_get_mac_addr(), sis190_get_mac_addr_from_apc(), sis190_set_rgmii(), sis630e_get_mac_addr(), sis900_probe(), skge_read8(), skge_reset(), skge_write8(), sky2_init(), sky2_mac_init(), sky2_mac_intr(), sky2_read8(), sky2_rx_add(), sky2_set_multicast(), sky2_status_intr(), sky2_write8(), sky2_xmit_frame(), sundance_probe(), sundance_transmit(), tg3_advert_flowctrl_1000T(), tg3_advert_flowctrl_1000X(), tg3_aux_stat_to_speed_duplex(), tg3_resolve_flowctrl_1000X(), tg3_setup_copper_phy(), tg3_setup_fiber_mii_phy(), tg3_setup_fiber_phy(), tg3_setup_flow_control(), tkip_decrypt(), tkip_encrypt(), tkip_init(), tkip_kie_decrypt(), tkip_kie_mic(), tkip_michael(), tkip_mix_1(), tkip_mix_2(), TLan_DioRead8(), TLan_DioWrite8(), TLan_EeReadByte(), TLan_EeReceiveByte(), TLan_EeSendByte(), TLan_FinishReset(), TLan_FinishReset(), TLan_HashFunc(), TLan_MiiReadReg(), tlan_probe(), TLan_ResetAdapter(), TLan_SetMulticastList(), tlan_transmit(), trivial_change_key(), trivial_init(), tulip_probe(), tulip_transmit(), u64_to_pn(), virtio_pci_map_capability(), virtnet_open_modern(), virtnet_probe_modern(), vp_get(), vp_get_isr(), vp_get_status(), vp_set_status(), vpm_add_status(), vpm_get(), vpm_get_isr(), vpm_get_status(), vpm_ioread8(), vpm_iowrite8(), vxge_device_register(), vxge_hw_device_initialize(), vxge_hw_ring_replenish(), vxge_probe(), wait_resp(), wpa_derive_ptk(), wpa_handle_3_of_4(), wpa_make_rsn_ie(), wpa_psk_start(), wpa_start(), write_grf5101(), write_max2820(), write_sa2400(), xm_outaddr(), xm_outhash(), xor8_buf(), and yukon_mac_init().

◆ dma_addr_t

#define dma_addr_t   unsigned long

Definition at line 41 of file igbvf_osdep.h.

◆ __le16

#define __le16   uint16_t

Definition at line 42 of file igbvf_osdep.h.

◆ __le32

#define __le32   uint32_t

Definition at line 43 of file igbvf_osdep.h.

◆ __le64

#define __le64   uint64_t

Definition at line 44 of file igbvf_osdep.h.

◆ __iomem

◆ __devinit

#define __devinit

Definition at line 47 of file igbvf_osdep.h.

Referenced by igbvf_sw_init().

◆ ____cacheline_aligned_in_smp

#define ____cacheline_aligned_in_smp

Definition at line 48 of file igbvf_osdep.h.

◆ msleep

#define msleep ( x)
Value:
static unsigned int x
Definition pixbuf.h:63
void mdelay(unsigned long msecs)
Delay for a fixed number of milliseconds.
Definition timer.c:79

Definition at line 50 of file igbvf_osdep.h.

Referenced by igbvf_configure_rx().

◆ ETH_FCS_LEN

#define ETH_FCS_LEN   4

Definition at line 52 of file igbvf_osdep.h.

◆ usec_delay

#define usec_delay ( x)
Value:
void udelay(unsigned long usecs)
Delay for a fixed number of microseconds.
Definition timer.c:61

Definition at line 56 of file igbvf_osdep.h.

Referenced by igbvf_poll_for_ack(), igbvf_poll_for_msg(), and igbvf_reset_hw_vf().

◆ msec_delay

#define msec_delay ( x)
Value:

Definition at line 57 of file igbvf_osdep.h.

Referenced by igbvf_reset_hw_vf().

◆ msec_delay_irq

#define msec_delay_irq ( x)
Value:

Definition at line 58 of file igbvf_osdep.h.

◆ PCI_COMMAND_REGISTER

#define PCI_COMMAND_REGISTER   PCI_COMMAND

Definition at line 60 of file igbvf_osdep.h.

◆ CMD_MEM_WRT_INVALIDATE

#define CMD_MEM_WRT_INVALIDATE   PCI_COMMAND_INVALIDATE

Definition at line 61 of file igbvf_osdep.h.

◆ ETH_ADDR_LEN

#define ETH_ADDR_LEN   ETH_ALEN

Definition at line 62 of file igbvf_osdep.h.

◆ DEBUGOUT

#define DEBUGOUT ( S)
Value:
if (0) { printf(S); }
int printf(const char *fmt,...)
Write a formatted string to the console.
Definition vsprintf.c:465
static u16 S(u16 v)
Perform S-box mapping on a 16-bit value.
Definition wpa_tkip.c:138

Definition at line 65 of file igbvf_osdep.h.

Referenced by igbvf_get_link_up_info_vf(), and igbvf_reset_hw_vf().

◆ DEBUGOUT1

#define DEBUGOUT1 ( S,
A... )
Value:
if (0) { printf(S, A); }

Definition at line 66 of file igbvf_osdep.h.

Referenced by igbvf_update_mc_addr_list_vf().

◆ DEBUGFUNC

◆ DEBUGOUT2

#define DEBUGOUT2   DEBUGOUT1

Definition at line 69 of file igbvf_osdep.h.

◆ DEBUGOUT3

#define DEBUGOUT3   DEBUGOUT2

Definition at line 70 of file igbvf_osdep.h.

◆ DEBUGOUT7

#define DEBUGOUT7   DEBUGOUT3

Definition at line 71 of file igbvf_osdep.h.

◆ E1000_WRITE_REG

#define E1000_WRITE_REG ( a,
reg,
value )
Value:
do { \
writel((value), ((a)->hw_addr + reg)); } while (0)
pseudo_bit_t value[0x00020]
Definition arbel.h:2
static unsigned int unsigned int reg
Definition myson.h:162

Definition at line 73 of file igbvf_osdep.h.

73#define E1000_WRITE_REG(a, reg, value) do { \
74 writel((value), ((a)->hw_addr + reg)); } while (0)

Referenced by igbvf_obtain_mbx_lock_vf(), igbvf_read_mbx_vf(), igbvf_reset_hw_vf(), and igbvf_write_mbx_vf().

◆ E1000_READ_REG

#define E1000_READ_REG ( a,
reg )
Value:
(readl((a)->hw_addr + reg))
#define readl
Definition w89c840.c:157

Definition at line 76 of file igbvf_osdep.h.

Referenced by igbvf_check_for_link_vf(), igbvf_get_link_up_info_vf(), igbvf_read_v2p_mailbox(), and igbvf_reset_hw_vf().

◆ E1000_WRITE_REG_ARRAY

#define E1000_WRITE_REG_ARRAY ( a,
reg,
offset,
value )
Value:
do { \
writel((value), ((a)->hw_addr + reg + ((offset) << 2))); } while (0)
uint16_t offset
Offset to command line.
Definition bzimage.h:3

Definition at line 78 of file igbvf_osdep.h.

78#define E1000_WRITE_REG_ARRAY(a, reg, offset, value) do { \
79 writel((value), ((a)->hw_addr + reg + ((offset) << 2))); } while (0)

Referenced by igbvf_write_mbx_vf().

◆ E1000_READ_REG_ARRAY

#define E1000_READ_REG_ARRAY ( a,
reg,
offset )
Value:
( \
readl((a)->hw_addr + reg + ((offset) << 2)))

Definition at line 81 of file igbvf_osdep.h.

81#define E1000_READ_REG_ARRAY(a, reg, offset) ( \
82 readl((a)->hw_addr + reg + ((offset) << 2)))

Referenced by igbvf_read_mbx_vf().

◆ E1000_READ_REG_ARRAY_DWORD

#define E1000_READ_REG_ARRAY_DWORD   E1000_READ_REG_ARRAY

Definition at line 84 of file igbvf_osdep.h.

◆ E1000_WRITE_REG_ARRAY_DWORD

#define E1000_WRITE_REG_ARRAY_DWORD   E1000_WRITE_REG_ARRAY

Definition at line 85 of file igbvf_osdep.h.

◆ E1000_WRITE_REG_ARRAY_WORD

#define E1000_WRITE_REG_ARRAY_WORD ( a,
reg,
offset,
value )
Value:
( \
writew((value), ((a)->hw_addr + reg + ((offset) << 1))))

Definition at line 87 of file igbvf_osdep.h.

87#define E1000_WRITE_REG_ARRAY_WORD(a, reg, offset, value) ( \
88 writew((value), ((a)->hw_addr + reg + ((offset) << 1))))

◆ E1000_READ_REG_ARRAY_WORD

#define E1000_READ_REG_ARRAY_WORD ( a,
reg,
offset )
Value:
( \
readw((a)->hw_addr + reg + ((offset) << 1)))

Definition at line 90 of file igbvf_osdep.h.

90#define E1000_READ_REG_ARRAY_WORD(a, reg, offset) ( \
91 readw((a)->hw_addr + reg + ((offset) << 1)))

◆ E1000_WRITE_REG_ARRAY_BYTE

#define E1000_WRITE_REG_ARRAY_BYTE ( a,
reg,
offset,
value )
Value:
( \
writeb((value), ((a)->hw_addr + reg + (offset))))

Definition at line 93 of file igbvf_osdep.h.

93#define E1000_WRITE_REG_ARRAY_BYTE(a, reg, offset, value) ( \
94 writeb((value), ((a)->hw_addr + reg + (offset))))

◆ E1000_READ_REG_ARRAY_BYTE

#define E1000_READ_REG_ARRAY_BYTE ( a,
reg,
offset )
Value:
( \
readb((a)->hw_addr + reg + (offset)))

Definition at line 96 of file igbvf_osdep.h.

96#define E1000_READ_REG_ARRAY_BYTE(a, reg, offset) ( \
97 readb((a)->hw_addr + reg + (offset)))

◆ E1000_WRITE_REG_IO

#define E1000_WRITE_REG_IO ( a,
reg,
offset )
Value:
do { \
outl(reg, ((a)->io_base)); \
outl(offset, ((a)->io_base + 4)); } while(0)

Definition at line 99 of file igbvf_osdep.h.

99#define E1000_WRITE_REG_IO(a, reg, offset) do { \
100 outl(reg, ((a)->io_base)); \
101 outl(offset, ((a)->io_base + 4)); } while(0)

◆ E1000_WRITE_FLUSH

#define E1000_WRITE_FLUSH ( a)
Value:
#define E1000_READ_REG(a, reg)
Definition igbvf_osdep.h:76
#define E1000_STATUS
Definition igbvf_regs.h:36

Definition at line 103 of file igbvf_osdep.h.

◆ E1000_WRITE_FLASH_REG

#define E1000_WRITE_FLASH_REG ( a,
reg,
value )
Value:
( \
writel((value), ((a)->flash_address + reg)))

Definition at line 105 of file igbvf_osdep.h.

105#define E1000_WRITE_FLASH_REG(a, reg, value) ( \
106 writel((value), ((a)->flash_address + reg)))

◆ E1000_WRITE_FLASH_REG16

#define E1000_WRITE_FLASH_REG16 ( a,
reg,
value )
Value:
( \
writew((value), ((a)->flash_address + reg)))

Definition at line 108 of file igbvf_osdep.h.

108#define E1000_WRITE_FLASH_REG16(a, reg, value) ( \
109 writew((value), ((a)->flash_address + reg)))

◆ E1000_READ_FLASH_REG

#define E1000_READ_FLASH_REG ( a,
reg )
Value:
(readl((a)->flash_address + reg))

Definition at line 111 of file igbvf_osdep.h.

◆ E1000_READ_FLASH_REG16

#define E1000_READ_FLASH_REG16 ( a,
reg )
Value:
(readw((a)->flash_address + reg))
#define readw
Definition w89c840.c:156

Definition at line 113 of file igbvf_osdep.h.

Typedef Documentation

◆ spinlock_t

typedef int spinlock_t

Definition at line 54 of file igbvf_osdep.h.

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_ONLY )