Home
last modified time | relevance | path

Searched refs:ahw (Results 1 – 9 of 9) sorted by relevance

/illumos-gate/usr/src/uts/common/io/ntxn/
H A Dunm_nic_isr.c58 u32 val, linkup, qg_linksup = adapter->ahw.linkup; in unm_nic_isr_other()
65 adapter->ahw.linkup = linkup; in unm_nic_isr_other()
81 switch (adapter->ahw.board_type) { in unm_nic_handle_phy_intr()
83 if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) { in unm_nic_handle_phy_intr()
92 if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) { in unm_nic_handle_phy_intr()
95 val1 = XG_LINK_STATE_P3(adapter->ahw.pci_func, val); in unm_nic_handle_phy_intr()
106 if (adapter->ahw.linkup && (val1 != linkupval)) { in unm_nic_handle_phy_intr()
111 adapter->ahw.linkup = 0; in unm_nic_handle_phy_intr()
112 } else if ((adapter->ahw.linkup == 0) && (val1 == linkupval)) { in unm_nic_handle_phy_intr()
117 adapter->ahw.linkup = 1; in unm_nic_handle_phy_intr()
[all …]
H A Dunm_nic_hw.c370 UNM_PCIX_PH_REG(PCIE_CRB_WINDOW_REG(adapter->ahw.pci_func))); in unm_nic_pci_change_crbwindow_128M()
422 adapter->ahw.pci_base0; in unm_nic_pci_get_crb_addr_2M()
439 adapter->ahw.pci_base0; in unm_nic_pci_get_crb_addr_2M()
460 adapter->ahw.pci_base0)); in unm_nic_pci_set_crbwindow_2M()
466 (CRB_WINDOW_2M + adapter->ahw.pci_base0)); in unm_nic_pci_set_crbwindow_2M()
473 adapter->ahw.pci_base0; in unm_nic_pci_set_crbwindow_2M()
486 if (adapter->ahw.pci_len0 == 0) in unm_nic_hw_write_ioctl_128M()
488 addr = (void *) ((uint8_t *)adapter->ahw.pci_base0 + in unm_nic_hw_write_ioctl_128M()
496 addr = (void *) ((uint8_t *)adapter->ahw.pci_base0 + in unm_nic_hw_write_ioctl_128M()
755 if (adapter->ahw.pci_len0 == 0) in unm_nic_hw_read_ioctl_128M()
[all …]
H A Dunm_gem.c158 if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) { in check_hw_init()
202 if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) { in get_flash_mac_addr()
208 int pci_func = adapter->ahw.pci_func; in get_flash_mac_addr()
276 if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) { in unm_initialize_dummy_dma()
310 hwcontext = &adapter->ahw; in unm_pci_cfg_init()
638 sreoff = adapter->ahw.cut_through ? 0 : IP_ALIGNMENT_BYTES; in unm_create_rx_ring()
710 uint8_t revid = adapter->ahw.revision_id; in unm_check_options()
807 if (adapter->ahw.cut_through) { in unm_check_options()
823 if (adapter->ahw.cut_through) { in unm_check_options()
905 adapter->ahw.qdr_sn_window = adapter->ahw.ddr_mn_window = -1; in unm_pci_map_setup()
[all …]
H A Dunm_nic_init.c288 if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) { in pinit_from_rom()
352 if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) { in pinit_from_rom()
391 if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) { in pinit_from_rom()
411 if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) { in pinit_from_rom()
482 if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) { in load_from_flash()
503 if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) { in load_from_flash()
H A Dunm_nic.h110 (void *)((unsigned long)adapter->ahw.db_base + (off))
458 hardware_context ahw; member
591 ((adapter)->ahw.pci_base0 + off)
593 ((adapter)->ahw.pci_base1 + off - SECOND_PAGE_GROUP_START)
595 ((adapter)->ahw.pci_base2 + off - THIRD_PAGE_GROUP_START)
598 ((((off) < ((adapter)->ahw.first_page_group_end)) && \
599 ((off) >= ((adapter)->ahw.first_page_group_start))) ? \
600 ((adapter)->ahw.pci_base0 + (off)) : \
603 ((adapter)->ahw.pci_base1 + \
607 ((adapter)->ahw.pci_base2 + (off) - \
H A Dunm_nic_ctx.c231 adapter->ahw.pci_func, in nx_fw_cmd_set_mtu()
332 adapter->ahw.pci_func, in nx_fw_cmd_create_rx_ctx()
380 adapter->ahw.pci_func, in nx_fw_cmd_destroy_rx_ctx()
447 HOST_TO_LE_64(adapter->ahw.cmdDesc_physAddr); in nx_fw_cmd_create_tx_ctx()
453 adapter->ahw.pci_func, in nx_fw_cmd_create_tx_ctx()
488 adapter->ahw.pci_func, in nx_fw_cmd_destroy_tx_ctx()
579 hardware_context *hw = &adapter->ahw; in netxen_init_old_ctx()
H A Dniu.c250 if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) { in unm_niu_enable_gbe_port()
362 if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) in unm_niu_disable_gbe_port()
381 if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) { in unm_niu_disable_xg_port()
575 if ((adapter->ahw.boardcfg.board_type != in unm_niu_xg_set_promiscuous_mode()
577 (adapter->ahw.boardcfg.board_type != in unm_niu_xg_set_promiscuous_mode()
H A Dunm_nic_main.c243 if (adapter->ahw.revision_id >= NX_P3_B1) { in unm_nic_clear_int()
250 } else if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) { in unm_nic_clear_int()
288 msi_tgt_status[adapter->ahw.pci_func], &temp); in unm_nic_clear_int()
330 if (adapter->ahw.cmdDescHead != NULL) { in unm_free_hw_resources()
331 unm_pci_free_consistent(&adapter->ahw.cmd_desc_dma_handle, in unm_free_hw_resources()
332 &adapter->ahw.cmd_desc_acc_handle); in unm_free_hw_resources()
333 adapter->ahw.cmdDesc_physAddr = 0; in unm_free_hw_resources()
334 adapter->ahw.cmdDescHead = NULL; in unm_free_hw_resources()
486 hardware_context *hw = &adapter->ahw; in unm_nic_hw_resources()
776 hw = &adapter->ahw; in unm_send_copy()
[all …]
H A Dunm_ndd.c199 if (adapter->ahw.board_type == UNM_NIC_XGBE) in unm_param_register()
248 if (adapter->ahw.board_type == UNM_NIC_XGBE) { in unm_param_register()