| /hal_nxp-latest/mcux/mcux-sdk/drivers/netc/ |
| D | fsl_netc_timer.c | 24 uint32_t *msixTable = (uint32_t *)(uintptr_t)handle->hw.msixTable; in NETC_TimerMSIXSetEntryTable() 28 msixNum = (uint8_t)((handle->hw.base->TMR_CAPR & ENETC_PF_TMR_TMR_CAPR_NUM_MSIX_MASK) >> in NETC_TimerMSIXSetEntryTable() 47 handle->hw.func->PCI_CFC_MSIX_MSG_CTL = ENETC_PCI_TYPE0_PCI_CFC_MSIX_MSG_CTL_MSIX_EN_MASK; in NETC_TimerMSIXSetEntryTable() 52 handle->hw.func->PCI_CFC_MSIX_MSG_CTL = ENETC_PCI_TYPE0_PCI_CFC_MSIX_MSG_CTL_FUNC_MASK_MASK; in NETC_TimerMSIXSetEntryTable() 61 handle->hw.func = TMR_PCI_HDR_TYPE0; in NETC_TimerInitHandle() 62 handle->hw.base = TMR0_BASE; in NETC_TimerInitHandle() 63 handle->hw.global = (ENETC_GLOBAL_Type *)(TMR0_BASE_BASE + NETC_TIMER_GLOBAL_BASE_OFFSET); in NETC_TimerInitHandle() 64 handle->hw.msixTable = (netc_msix_entry_t *)(FSL_FEATURE_NETC_MSIX_TABLE_BASE); in NETC_TimerInitHandle() 78 handle->hw.func->PCI_CFC_PCIE_DEV_CTL |= ENETC_PCI_TYPE0_PCI_CFC_PCIE_DEV_CTL_INIT_FLR_MASK; in NETC_TimerInit() 79 …while ((handle->hw.func->PCI_CFC_PCIE_DEV_CTL & ENETC_PCI_TYPE0_PCI_CFC_PCIE_DEV_CTL_INIT_FLR_MASK… in NETC_TimerInit() [all …]
|
| D | fsl_netc_endpoint.c | 41 NETC_SocGetBaseResource(&handle->hw, si); in EP_GetBaseResource() 191 if (NETC_EnetcHasManagement(handle->hw.base) && (getSiNum(handle->cfg.si) == 0U)) in EP_DescriptorInit() 198 …if (NETC_SIConfigTxBDR(handle->hw.si, ring + idxStart, &bdrConfig->txBdrConfig[ring]) != kStatus_S… in EP_DescriptorInit() 208 … if (NETC_SIConfigRxBDR(handle->hw.si, ring, &bdrConfig->rxBdrConfig[ring]) != kStatus_Success) in EP_DescriptorInit() 228 NETC_SIRxRingEnable(handle->hw.si, ring, true); in EP_DescriptorInit() 259 NETC_SISetRxBDRGroup(handle->hw.si, (uint8_t)epConfig->siConfig.rxBdrGroupNum, in EP_SISetup() 261 NETC_SISetDefaultRxBDRGroup(handle->hw.si, epConfig->siConfig.defaultRxBdrGroup); in EP_SISetup() 264 result = NETC_EnetcConfigureSI(handle->hw.base, si, &epConfig->siConfig); in EP_SISetup() 276 NETC_SIEnableVlanToIpv(handle->hw.si, (bool)epConfig->siConfig.valnToIpvEnable); in EP_SISetup() 286 NETC_SIMapVlanToIpv(handle->hw.si, i, epConfig->siConfig.vlanToIpvMap[i]); in EP_SISetup() [all …]
|
| D | fsl_netc_switch.h | 203 netc_switch_hw_t hw; /*!< Hardware register map resource. */ member 386 NETC_PortSetSpeed(handle->hw.ports[portIdx].port, pSpeed); in SWT_SetPortSpeed() 520 NETC_PortSetParser(handle->hw.ports[portIdx].port, config); in SWT_RxParserConfig() 533 NETC_RxVlanCInit(handle->hw.common, config, true); in SWT_RxVlanCInit() 549 NETC_PortSetVlanClassify(handle->hw.ports[portIdx].port, config); in SWT_RxVlanCConfigPort() 562 NETC_RxQosCInit(handle->hw.common, &config->profiles[0], false); in SWT_RxQosCInit() 563 NETC_RxQosCInit(handle->hw.common, &config->profiles[1], true); in SWT_RxQosCInit() 579 return NETC_PortSetQosClassify(handle->hw.ports[portIdx].port, config); in SWT_RxQosCConfigPort() 593 NETC_IPFInit(handle->hw.common, config); in SWT_RxIPFInit() 608 NETC_PortSetIPF(handle->hw.ports[portIdx].port, config); in SWT_RxIPFConfigPort() [all …]
|
| D | fsl_netc_endpoint.h | 316 … netc_enetc_hw_t hw; /*!< Hardware register map resource. */ member 421 NETC_PortSetSpeed(handle->hw.portGroup.port, pSpeed); in EP_SetPortSpeed() 477 NETC_PortSetParser(handle->hw.portGroup.port, config); in EP_RxParserConfig() 496 NETC_RxVlanCInit(handle->hw.common, config, false); in EP_RxVlanCInit() 508 NETC_PortSetVlanClassify(handle->hw.portGroup.port, config); in EP_RxVlanCConfigPort() 539 return (handle->hw.common->IPFTCAPR & NETC_SW_ENETC_IPFTCAPR_NUM_WORDS_MASK) - in EP_RxIPFGetTableRemainWordNum() 540 (handle->hw.common->IPFTMOR & NETC_SW_ENETC_IPFTMOR_NUM_WORDS_MASK); in EP_RxIPFGetTableRemainWordNum() 604 NETC_PSFPKcProfileInit(handle->hw.common, &config->kcRule[0], false); in EP_RxPSFPInit() 605 NETC_PortSetISI(handle->hw.portGroup.port, &config->isiPortConfig); in EP_RxPSFPInit() 619 return (handle->hw.common->HTMCAPR & NETC_SW_ENETC_HTMCAPR_NUM_WORDS_MASK) - in EP_RxPSFPGetISITableRemainEntryNum() [all …]
|
| D | fsl_netc_switch.c | 35 handle->hw.func = s_netcPciBases[NETC_SWT_PCIE_FUNC_OFFSET + (uint32_t)sw]; in SWT_GetBaseResource() 36 handle->hw.base = s_netcSWBases[sw]; in SWT_GetBaseResource() 37 handle->hw.common = (NETC_SW_ENETC_Type *)((uintptr_t)handle->hw.base); in SWT_GetBaseResource() 38 …handle->hw.global = (ENETC_GLOBAL_Type *)((uintptr_t)handle->hw.base + NETC_SWT_GLOBAL_BASE_OFFSET… in SWT_GetBaseResource() 41 handle->hw.ports[i].port = in SWT_GetBaseResource() 42 … (NETC_PORT_Type *)((uintptr_t)handle->hw.base + (i + 1U) * NETC_SWT_PORT_GROUP_BASE_OFFSET); in SWT_GetBaseResource() 43 … handle->hw.ports[i].eth = (NETC_ETH_LINK_Type *)((uintptr_t)handle->hw.ports[i].port + 0x1000U); in SWT_GetBaseResource() 45 handle->hw.msixTable = (netc_msix_entry_t *)((uint32_t)FSL_FEATURE_NETC_MSIX_TABLE_BASE + in SWT_GetBaseResource() 61 uint32_t *msixTable = (uint32_t *)(uintptr_t)handle->hw.msixTable; in SWT_MSIXSetEntryTable() 66 …(uint8_t)(((handle->hw.base->SCAPR0 & NETC_SW_SCAPR0_NUM_MSIX_MASK) >> NETC_SW_SCAPR0_NUM_MSIX_SHI… in SWT_MSIXSetEntryTable() [all …]
|
| D | fsl_netc_msg.c | 57 ENETC_SI_Type *base = handle->hw.si; in EP_RxL2MFQueryEMTableEntry() 111 ENETC_SI_Type *base = handle->hw.si; in EP_RxL2MFQueryAddEMTableEntry() 199 ENETC_SI_Type *base = handle->hw.si; in EP_RxL2MFQueryDeleteEMTableEntry() 253 NETC_ENETC_Type *base = handle->hw.base; in EP_RxL2MFSetHashTable() 292 NETC_ENETC_Type *enetc = handle->hw.base; in EP_RxL2MFFlush() 293 ENETC_SI_Type *base = handle->hw.si; in EP_RxL2MFFlush() 354 …ret = NETC_CmdBDSendCommand((netc_cbdr_hw_t *)(uintptr_t)&handle->hw.si->SICBDRMR, &handle->cmdBdR… in EP_RxL2MFFlush() 386 NETC_ENETC_Type *base = handle->hw.base; in EP_RxL2MFSetPromisc() 427 NETC_ENETC_Type *base = handle->hw.base; in EP_PsiHandleMacFilter() 507 ENETC_SI_Type *base = handle->hw.si; in EP_RxL2VFQueryEMTableEntry() [all …]
|
| D | fsl_netc_timer.h | 96 netc_timer_hw_t hw; /*!< Hardware register map resource. */ member 370 handle->hw.base->TMR_TEVENT = flags; in NETC_TimerClearInterruptStatus()
|
| /hal_nxp-latest/mcux/mcux-sdk/drivers/netc/socs/imx95/ |
| D | fsl_netc_soc.c | 21 void NETC_SocGetBaseResource(netc_enetc_hw_t *hw, netc_hw_si_idx_t si) in NETC_SocGetBaseResource() argument 27 hw->si = s_enetcSiBases[siIdx]; in NETC_SocGetBaseResource() 28 hw->base = s_netcEnetcBases[instance]; in NETC_SocGetBaseResource() 29 hw->common = (NETC_SW_ENETC_Type *)((uintptr_t)hw->base + 0x1000U); in NETC_SocGetBaseResource() 30 hw->portGroup.port = (NETC_PORT_Type *)((uintptr_t)hw->base + 0x4000U); in NETC_SocGetBaseResource() 31 hw->portGroup.eth = (NETC_ETH_LINK_Type *)((uintptr_t)hw->base + 0x5000U); in NETC_SocGetBaseResource() 32 hw->global = (ENETC_GLOBAL_Type *)((uintptr_t)hw->base + 0x10000U); in NETC_SocGetBaseResource() 35 hw->func.pf = s_netcBases[1U + siIdx]; in NETC_SocGetBaseResource() 36 hw->msixTable = (netc_msix_entry_t *)((uintptr_t)hw->si + 0x30000U); in NETC_SocGetBaseResource() 40 hw->func.vf = s_netcVfBases[siIdx - 3U]; in NETC_SocGetBaseResource() [all …]
|
| D | fsl_netc_soc.h | 54 void NETC_SocGetBaseResource(netc_enetc_hw_t *hw, netc_hw_si_idx_t si); 71 status_t NETC_SocPreInitVsi(netc_enetc_hw_t *hw, netc_hw_si_idx_t si);
|
| /hal_nxp-latest/mcux/mcux-sdk/drivers/netc/socs/imx943/ |
| D | fsl_netc_soc.c | 21 void NETC_SocGetBaseResource(netc_enetc_hw_t *hw, netc_hw_si_idx_t si) in NETC_SocGetBaseResource() argument 27 hw->si = s_enetcSiBases[siIdx]; in NETC_SocGetBaseResource() 28 hw->base = s_netcEnetcBases[instance]; in NETC_SocGetBaseResource() 29 hw->common = (NETC_SW_ENETC_Type *)((uintptr_t)hw->base + 0x1000U); in NETC_SocGetBaseResource() 30 hw->portGroup.port = (NETC_PORT_Type *)((uintptr_t)hw->base + 0x4000U); in NETC_SocGetBaseResource() 31 hw->portGroup.eth = (NETC_ETH_LINK_Type *)((uintptr_t)hw->base + 0x5000U); in NETC_SocGetBaseResource() 32 hw->global = (ENETC_GLOBAL_Type *)((uintptr_t)hw->base + 0x10000U); in NETC_SocGetBaseResource() 35 hw->func.pf = s_netcBases[1 + siIdx]; in NETC_SocGetBaseResource() 36 hw->msixTable = (netc_msix_entry_t *)((uintptr_t)hw->si + 0x30000U); in NETC_SocGetBaseResource() 40 hw->func.vf = s_netcVfBases[siIdx - 3]; in NETC_SocGetBaseResource() [all …]
|
| D | fsl_netc_soc.h | 53 void NETC_SocGetBaseResource(netc_enetc_hw_t *hw, netc_hw_si_idx_t si); 70 status_t NETC_SocPreInitVsi(netc_enetc_hw_t *hw, netc_hw_si_idx_t si);
|
| /hal_nxp-latest/mcux/mcux-sdk/drivers/netc/socs/imxrt1180/ |
| D | fsl_netc_soc.c | 136 void NETC_SocGetBaseResource(netc_enetc_hw_t *hw, netc_hw_si_idx_t si) in NETC_SocGetBaseResource() argument 142 hw->base = s_netcEnetcBases[instance]; in NETC_SocGetBaseResource() 143 hw->common = (NETC_SW_ENETC_Type *)((uintptr_t)hw->base); in NETC_SocGetBaseResource() 144 … hw->portGroup.port = (NETC_PORT_Type *)((uintptr_t)hw->base + NETC_ENETC_PORT_GROUP_BASE_OFFSET); in NETC_SocGetBaseResource() 145 hw->portGroup.eth = (NETC_ETH_LINK_Type *)((uintptr_t)hw->portGroup.port + 0x1000U); in NETC_SocGetBaseResource() 146 hw->global = (ENETC_GLOBAL_Type *)((uintptr_t)hw->base + NETC_ENETC_GLOBAL_BASE_OFFSET); in NETC_SocGetBaseResource() 149 hw->func.pf = s_netcBases[NETC_ENETC_PCIE_FUNC_OFFSET + instance]; in NETC_SocGetBaseResource() 150 hw->si = (ENETC_SI_Type *)((uintptr_t)hw->base - 0x10000U); in NETC_SocGetBaseResource() 151 hw->msixTable = in NETC_SocGetBaseResource() 156 hw->func.vf = NETC_VF1_PCI_HDR_TYPE0; in NETC_SocGetBaseResource() [all …]
|
| D | fsl_netc_soc.h | 155 void NETC_SocGetBaseResource(netc_enetc_hw_t *hw, netc_hw_si_idx_t si); 184 status_t NETC_SocPreInitVsi(netc_enetc_hw_t *hw, netc_hw_si_idx_t si);
|
| /hal_nxp-latest/mcux/mcux-sdk/platform/drivers/netc/socs/imxrt1180/ |
| D | fsl_netc_soc.c | 136 void NETC_SocGetBaseResource(netc_enetc_hw_t *hw, netc_hw_si_idx_t si) in NETC_SocGetBaseResource() argument 142 hw->base = s_netcEnetcBases[instance]; in NETC_SocGetBaseResource() 143 hw->common = (NETC_SW_ENETC_Type *)((uintptr_t)hw->base); in NETC_SocGetBaseResource() 144 … hw->portGroup.port = (NETC_PORT_Type *)((uintptr_t)hw->base + NETC_ENETC_PORT_GROUP_BASE_OFFSET); in NETC_SocGetBaseResource() 145 hw->portGroup.eth = (NETC_ETH_LINK_Type *)((uintptr_t)hw->portGroup.port + 0x1000U); in NETC_SocGetBaseResource() 146 hw->global = (ENETC_GLOBAL_Type *)((uintptr_t)hw->base + NETC_ENETC_GLOBAL_BASE_OFFSET); in NETC_SocGetBaseResource() 149 hw->func.pf = s_netcBases[NETC_ENETC_PCIE_FUNC_OFFSET + instance]; in NETC_SocGetBaseResource() 150 hw->si = (ENETC_SI_Type *)((uintptr_t)hw->base - 0x10000U); in NETC_SocGetBaseResource() 151 hw->msixTable = in NETC_SocGetBaseResource() 156 hw->func.vf = NETC_VF1_PCI_HDR_TYPE0; in NETC_SocGetBaseResource() [all …]
|
| D | fsl_netc_soc.h | 155 void NETC_SocGetBaseResource(netc_enetc_hw_t *hw, netc_hw_si_idx_t si); 184 status_t NETC_SocPreInitVsi(netc_enetc_hw_t *hw, netc_hw_si_idx_t si);
|