|
iPXE
|
IBM BladeCenter Open Fabric Manager (BOFM) tests. More...
#include <stdint.h>#include <stdio.h>#include <string.h>#include <byteswap.h>#include <ipxe/init.h>#include <ipxe/pci.h>#include <ipxe/ethernet.h>#include <ipxe/bofm.h>Go to the source code of this file.
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| void | bofm_test (struct pci_device *pci) |
| Perform BOFM test. More... | |
| static int | bofm_dummy_harvest (struct bofm_device *bofm, unsigned int mport, uint8_t *mac) |
| Harvest dummy Ethernet MAC. More... | |
| static int | bofm_dummy_update (struct bofm_device *bofm __unused, unsigned int mport, const uint8_t *mac) |
| Update Ethernet MAC for BOFM. More... | |
| static int | bofm_dummy_probe (struct pci_device *pci) |
| Probe dummy BOFM device. More... | |
| static void | bofm_dummy_remove (struct pci_device *pci) |
| Remove dummy BOFM device. More... | |
| static void | bofm_test_init (void) |
| Perform BOFM test at initialisation time. More... | |
| struct init_fn bofm_test_init_fn | __init_fn (INIT_NORMAL) |
| BOFM test initialisation function. More... | |
Variables | |
| struct { | |
| struct bofm_global_header header | |
| struct bofm_section_header en_header | |
| struct bofm_en en | |
| struct bofm_section_header done | |
| } | bofmtab_harvest |
| Harvest test table. More... | |
| struct { | |
| struct bofm_global_header header | |
| struct bofm_section_header en_header | |
| struct bofm_en en | |
| struct bofm_section_header done | |
| } | bofmtab_update |
| Update test table. More... | |
| static struct bofm_operations | bofm_dummy_operations |
| Dummy BOFM operations. More... | |
| static struct bofm_device | bofm_dummy |
| Dummy BOFM device. More... | |
| static struct pci_device_id | bofm_dummy_ids [1] |
| Dummy BOFM driver PCI IDs. More... | |
| struct pci_driver bofm_dummy_driver | __bofm_test_driver |
| Dummy BOFM driver. More... | |
IBM BladeCenter Open Fabric Manager (BOFM) tests.
Definition in file bofm_test.c.
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
| void bofm_test | ( | struct pci_device * | pci | ) |
Perform BOFM test.
| pci | PCI device |
Definition at line 105 of file bofm_test.c.
References bofm(), BOFM_EN_CSM_SUCCESS, BOFM_EN_HVST, bofmtab_harvest, bofmtab_update, pci_device::busdevfn, DBG_HDA, eth_ntoa(), PCI_ARGS, PCI_FMT, and printf().
Referenced by bofm_test_init().
|
static |
Harvest dummy Ethernet MAC.
| bofm | BOFM device |
| mport | Multi-port index |
| mac | MAC to fill in |
| rc | Return status code |
Definition at line 147 of file bofm_test.c.
References __attribute__, bofm(), cpu_to_be16, device, eth_ntoa(), mac, memcpy(), printf(), and vendor.
|
static |
Update Ethernet MAC for BOFM.
| bofm | BOFM device |
| mport | Multi-port index |
| mac | MAC to fill in |
| rc | Return status code |
Definition at line 174 of file bofm_test.c.
References eth_ntoa(), mac, and printf().
|
static |
Probe dummy BOFM device.
| pci | PCI device |
| id | PCI ID |
| rc | Return status code |
Definition at line 198 of file bofm_test.c.
References bofm_dummy, bofm_register(), pci_device::busdevfn, bofm_device::pci, printf(), and rc.
|
static |
Remove dummy BOFM device.
| pci | PCI device |
Definition at line 218 of file bofm_test.c.
References bofm_dummy, bofm_unregister(), pci_device::busdevfn, and bofm_device::pci.
|
static |
Perform BOFM test at initialisation time.
Definition at line 246 of file bofm_test.c.
References bofm_dummy, bofm_dummy_ids, bofm_dummy_operations, bofm_init(), bofm_test(), busdevfn, pci_device_id::device, pci_device::device, memset(), PCI_ARGS, PCI_FMT, pci_init(), pci_read_config(), printf(), rc, strerror(), pci_device_id::vendor, and pci_device::vendor.
| struct init_fn bofm_test_init_fn __init_fn | ( | INIT_NORMAL | ) |
BOFM test initialisation function.
| struct bofm_global_header header |
Definition at line 43 of file bofm_test.c.
| struct bofm_section_header en_header |
Definition at line 44 of file bofm_test.c.
| struct bofm_en en |
Definition at line 45 of file bofm_test.c.
| struct bofm_section_header done |
Definition at line 46 of file bofm_test.c.
Referenced by aoecmd_rx(), arp_rx(), ath5k_eeprom_read_modes(), ath5k_get_chan_pcal_surrounding_piers(), ath5k_get_rate_pcal_data(), ath5k_hw_gainf_calibrate(), ath5k_hw_rf511x_calibrate(), ath5k_hw_rf_gainf_adjust(), ath5k_hw_update_tx_triglevel(), ath5k_init(), bnxt_service_cq(), bnxt_service_nq(), dhcp_tx(), dhcpv6_rx(), dm96xx_intr_complete(), dns_xfer_deliver(), execv(), fc_els_rx(), fc_ns_query(), fc_ns_query_deliver(), fc_xchg_rx(), fc_xchg_tx(), fcoe_deliver(), fcoe_fip_rx(), fcoe_rx(), fcpcmd_recv_rddata(), fcpcmd_recv_rsp(), fcpcmd_recv_xfer_rdy(), gve_poll_rx(), heap_alloc_block(), hub_complete(), icmpv6_rx(), ipv4_add_miniroutes(), isapnpbus_probe(), iscsi_socket_deliver(), nfs_deliver(), nfs_mount_deliver(), nfs_pm_deliver(), parse_uri(), peerblk_raw_close(), peerblk_retrieval_close(), readline_history(), rtl818x_handle_rx(), sec80211_detect_ie(), sky2_tx_complete(), smscusb_intr_complete(), stp_rx(), tftp_rx(), tftp_rx_data(), tftp_rx_oack(), tg3_phy_autoneg_cfg(), tls_cipherstream_deliver(), tls_plainstream_deliver(), udp_rx(), undinet_poll(), undinet_transmit(), and xferbuf_deliver().
| struct { ... } bofmtab_harvest |
Harvest test table.
Referenced by bofm_test().
| struct { ... } bofmtab_update |
Update test table.
Referenced by bofm_test().
|
static |
Dummy BOFM operations.
Definition at line 183 of file bofm_test.c.
Referenced by bofm_test_init().
|
static |
Dummy BOFM device.
Definition at line 189 of file bofm_test.c.
Referenced by bofm_dummy_probe(), bofm_dummy_remove(), and bofm_test_init().
|
static |
Dummy BOFM driver PCI IDs.
Definition at line 229 of file bofm_test.c.
Referenced by bofm_test_init().
| struct pci_driver bofm_dummy_driver __bofm_test_driver |
Dummy BOFM driver.
Definition at line 234 of file bofm_test.c.
1.8.15