Home
last modified time | relevance | path

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

/titanic_41/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.c365 UNM_PCIX_PH_REG(PCIE_CRB_WINDOW_REG(adapter->ahw.pci_func))); in unm_nic_pci_change_crbwindow_128M()
417 adapter->ahw.pci_base0; in unm_nic_pci_get_crb_addr_2M()
434 adapter->ahw.pci_base0; in unm_nic_pci_get_crb_addr_2M()
455 adapter->ahw.pci_base0)); in unm_nic_pci_set_crbwindow_2M()
461 (CRB_WINDOW_2M + adapter->ahw.pci_base0)); in unm_nic_pci_set_crbwindow_2M()
468 adapter->ahw.pci_base0; in unm_nic_pci_set_crbwindow_2M()
481 if (adapter->ahw.pci_len0 == 0) in unm_nic_hw_write_ioctl_128M()
483 addr = (void *) ((uint8_t *)adapter->ahw.pci_base0 + in unm_nic_hw_write_ioctl_128M()
491 addr = (void *) ((uint8_t *)adapter->ahw.pci_base0 + in unm_nic_hw_write_ioctl_128M()
751 if (adapter->ahw.pci_len0 == 0) in unm_nic_hw_read_ioctl_128M()
[all …]
H A Dunm_gem.c153 if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) { in check_hw_init()
197 if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) { in get_flash_mac_addr()
203 int pci_func = adapter->ahw.pci_func; in get_flash_mac_addr()
271 if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) { in unm_initialize_dummy_dma()
305 hwcontext = &adapter->ahw; in unm_pci_cfg_init()
633 sreoff = adapter->ahw.cut_through ? 0 : IP_ALIGNMENT_BYTES; in unm_create_rx_ring()
705 uint8_t revid = adapter->ahw.revision_id; in unm_check_options()
802 if (adapter->ahw.cut_through) { in unm_check_options()
818 if (adapter->ahw.cut_through) { in unm_check_options()
900 adapter->ahw.qdr_sn_window = adapter->ahw.ddr_mn_window = -1; in unm_pci_map_setup()
[all …]
H A Dunm_nic_init.c284 if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) { in pinit_from_rom()
348 if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) { in pinit_from_rom()
387 if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) { in pinit_from_rom()
407 if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) { in pinit_from_rom()
478 if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) { in load_from_flash()
499 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.c253 if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) { in unm_niu_enable_gbe_port()
365 if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) in unm_niu_disable_gbe_port()
384 if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) { in unm_niu_disable_xg_port()
578 if ((adapter->ahw.boardcfg.board_type != in unm_niu_xg_set_promiscuous_mode()
580 (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 = NULL; 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()