#include <netdevice.h>
Data Fields | |
| struct refcnt | refcnt |
| Reference counter. | |
| struct list_head | list |
| List of network devices. | |
| struct list_head | open_list |
| List of open network devices. | |
| char | name [8] |
| Name of this network device. | |
| struct device * | dev |
| Underlying hardware device. | |
| struct net_device_operations * | op |
| Network device operations. | |
| struct ll_protocol * | ll_protocol |
| Link-layer protocol. | |
| uint8_t | hw_addr [MAX_HW_ADDR_LEN] |
| Hardware address. | |
| uint8_t | ll_addr [MAX_LL_ADDR_LEN] |
| Link-layer address. | |
| const uint8_t * | ll_broadcast |
| Link-layer broadcast address. | |
| unsigned int | state |
| Current device state. | |
| int | link_rc |
| Link status code. | |
| size_t | max_pkt_len |
| Maximum packet length. | |
| struct list_head | tx_queue |
| TX packet queue. | |
| struct list_head | rx_queue |
| RX packet queue. | |
| struct net_device_stats | tx_stats |
| TX statistics. | |
| struct net_device_stats | rx_stats |
| RX statistics. | |
| struct generic_settings | settings |
| Configuration settings applicable to this device. | |
| void * | priv |
| Driver private data. | |
This structure represents a piece of networking hardware. It has properties such as a link-layer address and methods for transmitting and receiving raw packets.
Note that this structure must represent a generic network device, not just an Ethernet device.
Definition at line 262 of file netdevice.h.
struct refcnt net_device::refcnt [read] |
Reference counter.
Definition at line 264 of file netdevice.h.
Referenced by alloc_netdev(), falcon_probe_spi(), net80211_alloc(), phantom_probe(), and rtl_init_eeprom().
struct list_head net_device::list [read] |
List of network devices.
Definition at line 266 of file netdevice.h.
Referenced by find_netdev(), find_netdev_by_location(), register_netdev(), and unregister_netdev().
struct list_head net_device::open_list [read] |
List of open network devices.
Definition at line 268 of file netdevice.h.
Referenced by last_opened_netdev(), netdev_close(), and netdev_open().
| char net_device::name[8] |
Name of this network device.
Definition at line 270 of file netdevice.h.
Referenced by __gm_phy_read(), __vxge_hw_vpath_alarm_process(), add_ipv4_miniroute(), atl1e_check_link(), atl1e_clean_rx_irq(), atl1e_probe(), atl1e_setup_ring_resources(), bcom_check_link(), bcom_phy_intr(), del_ipv4_miniroute(), dhcp(), dhcp_exec(), efi_snp_driver_start(), efi_snp_initialize(), efi_snp_netdev(), efi_snp_reset(), find_netdev(), genesis_mac_init(), gm_phy_read(), gm_phy_write(), iflinkwait(), ifopen(), ifstat(), ipv4_tx(), iwlist(), mii_check_media(), parse_settings_name(), pxebs(), pxebs_exec(), pxenv_start_undi(), pxenv_undi_open(), pxenv_undi_reset_adapter(), register_netdev(), route(), rtl818x_init_hw(), rtl818x_init_rx_ring(), rtl818x_init_tx_ring(), rtl818x_start(), skge_down(), skge_link_down(), skge_link_up(), skge_show_addr(), skge_up(), skge_xmit_frame(), sky2_autoneg_done(), sky2_down(), sky2_hw_error(), sky2_le_error(), sky2_link_down(), sky2_link_up(), sky2_mac_intr(), sky2_phy_intr(), sky2_receive(), sky2_rx_stop(), sky2_show_addr(), sky2_tx_complete(), sky2_up(), sky2_xmit_frame(), vxge_close(), vxge_hw_device_begin_irq(), vxge_hw_vpath_poll_rx(), vxge_open(), vxge_open_vpaths(), vxge_xmit(), vxge_xmit_compl(), xm_check_link(), xm_phy_read(), and yukon_phy_intr().
struct device* net_device::dev [read] |
Underlying hardware device.
Definition at line 272 of file netdevice.h.
Referenced by a3c90x_probe(), ath5k_probe(), atl1e_init_netdev(), b44_probe(), bcom_check_link(), e1000_probe(), e1000e_probe(), efab_probe(), find_netdev_by_location(), genesis_mac_init(), ibft_fill_nic(), ifec_pci_probe(), ifstat(), igb_probe(), ipoib_probe(), legacy_probe(), mtnic_disable(), mtnic_probe(), myri10ge_net_irq(), myri10ge_net_open(), myri10ge_pci_probe(), natsemi_probe(), netdev_fetch(), phantom_probe(), pnic_probe(), pxenv_undi_get_information(), pxenv_undi_get_nic_type(), register_netdev(), rtl8169_probe(), rtl818x_probe(), rtl_disable_clock_request(), rtl_probe(), rtl_tx_performance_tweak(), sis190_init_board(), sis190_phy_task(), sis190_probe(), sis190_remove(), skge_devinit(), skge_phyirq(), skge_probe(), sky2_hw_error(), sky2_init_netdev(), sky2_le_error(), sky2_mac_intr(), sky2_phy_intr(), sky2_probe(), sky2_status_intr(), sky2_tx_complete(), undinet_probe(), vxge_device_register(), xm_link_down(), and xm_link_timer().
struct net_device_operations* net_device::op [read] |
Network device operations.
Definition at line 275 of file netdevice.h.
Referenced by netdev_close(), netdev_init(), netdev_irq(), netdev_nullify(), netdev_open(), netdev_poll(), and netdev_tx().
struct ll_protocol* net_device::ll_protocol [read] |
Link-layer protocol.
Definition at line 278 of file netdevice.h.
Referenced by add_ndp_entry(), alloc_etherdev(), alloc_ipoibdev(), arp_resolve(), arp_rx(), dhcp_chaddr(), dhcp_create_packet(), dhcp_create_request(), dhcp_xid(), efi_snp_driver_start(), efi_snp_mcast_ip_to_mac(), efi_snp_receive(), efi_snp_receive_filters(), efi_snp_set_mode(), efi_snp_station_address(), efi_snp_transmit(), ibft_fill_nic(), icmp6_send_solicit(), ipv4_ll_addr(), legacy_probe(), ndp_resolve(), net80211_alloc(), net_step(), net_tx(), netdev_addr(), netdev_fetch(), netdev_store(), pxe_dump_mcast_list(), pxenv_undi_get_information(), pxenv_undi_get_mcast_address(), pxenv_undi_isr(), pxenv_undi_set_station_address(), pxenv_undi_transmit(), and register_netdev().
| uint8_t net_device::hw_addr[MAX_HW_ADDR_LEN] |
Hardware address.
This is an address which is an intrinsic property of the hardware, e.g. an address held in EEPROM.
Note that the hardware address may not be the same length as the link-layer address.
Definition at line 287 of file netdevice.h.
Referenced by a3c90x_probe(), atl1e_probe(), b44_load_mac_and_phy_addr(), dhcp_chaddr(), e1000_probe(), e1000e_probe(), efab_probe(), efi_snp_set_mode(), ifec_pci_probe(), igb_probe(), ipoib_probe(), legacy_probe(), mtnic_probe(), myri10ge_pci_probe(), natsemi_probe(), net80211_register(), phantom_probe(), pnic_probe(), pxenv_undi_get_information(), register_netdev(), rtl8169_probe(), rtl_probe(), sis190_get_mac_addr_from_apc(), sis190_get_mac_addr_from_eeprom(), skge_devinit(), sky2_init_netdev(), undinet_probe(), and vxge_device_register().
| uint8_t net_device::ll_addr[MAX_LL_ADDR_LEN] |
Link-layer address.
This is the current link-layer address assigned to the device. It can be changed at runtime.
Definition at line 293 of file netdevice.h.
Referenced by a3c90x_hw_start(), abft_fill_data(), arp_resolve(), arp_rx(), ath5k_start(), atl1e_probe(), atl1e_up(), b44_probe(), b44_set_mac_addr(), dhcp_chaddr(), dhcp_create_request(), dhcp_xid(), e1000_probe(), e1000e_probe(), efi_snp_driver_start(), efi_snp_set_mode(), efi_snp_station_address(), gdbudp_recv(), gdbudp_send(), genesis_mac_init(), ibft_fill_nic(), icmp6_send_solicit(), ifec_net_open(), igb_probe(), ipoib_close(), ipoib_link_state_changed(), ipoib_open(), myri10ge_net_open(), natsemi_open(), net80211_tx_mgmt(), net_tx(), netdev_addr(), netdev_fetch(), netdev_store(), phantom_close(), phantom_open(), pxenv_undi_get_information(), pxenv_undi_set_station_address(), pxenv_undi_transmit(), register_netdev(), rtl818x_start(), rtl_open(), sis190_init_rxfilter(), sky2_mac_init(), undinet_open(), wpa_check_pmkid(), wpa_derive_ptk(), and yukon_mac_init().
| const uint8_t* net_device::ll_broadcast |
Link-layer broadcast address.
Definition at line 295 of file netdevice.h.
Referenced by alloc_etherdev(), alloc_ipoibdev(), aoe_attach(), arp_resolve(), efi_snp_set_mode(), ipoib_probe(), ipv4_ll_addr(), net80211_alloc(), phantom_close(), phantom_open(), and pxenv_undi_transmit().
| unsigned int net_device::state |
Current device state.
This is the bitwise-OR of zero or more NETDEV_XXX constants.
Definition at line 301 of file netdevice.h.
Referenced by netdev_close(), netdev_irq(), and netdev_open().
Link status code.
Zero indicates that the link is up; any other value indicates the error preventing link-up.
Definition at line 307 of file netdevice.h.
Referenced by alloc_netdev(), iflinkwait(), ifstat(), and netdev_link_down().
Maximum packet length.
This length includes any link-layer headers.
Definition at line 312 of file netdevice.h.
Referenced by alloc_etherdev(), alloc_ipoibdev(), efi_snp_set_mode(), and net80211_alloc().
struct list_head net_device::tx_queue [read] |
TX packet queue.
Definition at line 314 of file netdevice.h.
Referenced by alloc_netdev(), efi_snp_get_status(), netdev_tx(), netdev_tx_complete_next_err(), netdev_tx_flush(), and pxenv_undi_isr().
struct list_head net_device::rx_queue [read] |
RX packet queue.
Definition at line 316 of file netdevice.h.
Referenced by alloc_netdev(), efi_snp_poll(), netdev_rx(), and netdev_rx_dequeue().
struct net_device_stats net_device::tx_stats [read] |
TX statistics.
Definition at line 318 of file netdevice.h.
Referenced by efi_snp_statistics(), ifstat(), netdev_tx_complete_err(), pxenv_undi_clear_statistics(), and pxenv_undi_get_statistics().
struct net_device_stats net_device::rx_stats [read] |
RX statistics.
Definition at line 320 of file netdevice.h.
Referenced by efi_snp_statistics(), ifstat(), netdev_rx(), netdev_rx_err(), pxenv_undi_clear_statistics(), and pxenv_undi_get_statistics().
struct generic_settings net_device::settings [read] |
Configuration settings applicable to this device.
Definition at line 323 of file netdevice.h.
Referenced by dhcp_create_request().
| void* net_device::priv |
Driver private data.
Definition at line 326 of file netdevice.h.
Referenced by alloc_netdev(), ifec_check_ru_status(), ifec_get_rx_desc(), ifec_init_eeprom(), ifec_link_check(), ifec_mdio_read(), ifec_mdio_setup(), ifec_mdio_write(), ifec_net_close(), ifec_net_irq(), ifec_net_open(), ifec_net_poll(), ifec_net_transmit(), ifec_pci_probe(), ifec_refill_rx_ring(), ifec_reprime_ru(), ifec_reset(), ifec_rx_process(), ifec_rx_setup(), ifec_scb_cmd(), ifec_scb_cmd_wait(), ifec_tx_process(), ifec_tx_setup(), ifec_tx_wake(), ipoib_close(), ipoib_link_state_changed(), ipoib_open(), ipoib_poll(), ipoib_probe(), ipoib_pull(), ipoib_transmit(), legacy_irq(), legacy_poll(), legacy_probe(), legacy_remove(), legacy_transmit(), natsemi_close(), natsemi_irq(), natsemi_open(), natsemi_poll(), natsemi_probe(), natsemi_reset(), natsemi_transmit(), net80211_alloc(), net80211_get(), net80211_ll_pull(), net80211_ll_push(), net80211_netdev_close(), net80211_netdev_irq(), net80211_netdev_open(), net80211_netdev_poll(), net80211_netdev_transmit(), pnic_irq(), pnic_poll(), pnic_probe(), pnic_remove(), pnic_transmit(), rtl_close(), rtl_init_eeprom(), rtl_irq(), rtl_open(), rtl_poll(), rtl_probe(), rtl_remove(), rtl_reset(), rtl_transmit(), sis190_remove(), undinet_close(), undinet_irq(), undinet_open(), undinet_poll(), undinet_probe(), and undinet_remove().
1.5.7.1