@@ -436,7 +436,7 @@ static int dw_pcie_config_ecam_iatu(struct dw_pcie_rp *pp)
436436 * remaining buses need type 1 iATU configuration.
437437 */
438438 atu .index = 0 ;
439- atu .type = PCIE_ATU_TYPE_CFG0 ;
439+ atu .type = PCIE_TLP_TYPE_CFG0_RDWR ;
440440 atu .parent_bus_addr = pp -> cfg0_base + SZ_1M ;
441441 /* 1MiB is to cover 1 (bus) * 32 (devices) * 8 (functions) */
442442 atu .size = SZ_1M ;
@@ -452,7 +452,7 @@ static int dw_pcie_config_ecam_iatu(struct dw_pcie_rp *pp)
452452
453453 /* Configure remaining buses in type 1 iATU configuration */
454454 atu .index = 1 ;
455- atu .type = PCIE_ATU_TYPE_CFG1 ;
455+ atu .type = PCIE_TLP_TYPE_CFG1_RDWR ;
456456 atu .parent_bus_addr = pp -> cfg0_base + SZ_2M ;
457457 atu .size = (SZ_1M * bus_range_max ) - SZ_2M ;
458458 atu .ctrl2 = PCIE_ATU_CFG_SHIFT_MODE_ENABLE ;
@@ -749,9 +749,9 @@ static void __iomem *dw_pcie_other_conf_map_bus(struct pci_bus *bus,
749749 PCIE_ATU_FUNC (PCI_FUNC (devfn ));
750750
751751 if (pci_is_root_bus (bus -> parent ))
752- type = PCIE_ATU_TYPE_CFG0 ;
752+ type = PCIE_TLP_TYPE_CFG0_RDWR ;
753753 else
754- type = PCIE_ATU_TYPE_CFG1 ;
754+ type = PCIE_TLP_TYPE_CFG1_RDWR ;
755755
756756 atu .type = type ;
757757 atu .parent_bus_addr = pp -> cfg0_base - pci -> parent_bus_offset ;
@@ -778,7 +778,7 @@ static int dw_pcie_rd_other_conf(struct pci_bus *bus, unsigned int devfn,
778778 return ret ;
779779
780780 if (pp -> cfg0_io_shared ) {
781- atu .type = PCIE_ATU_TYPE_IO ;
781+ atu .type = PCIE_TLP_TYPE_IO_RDWR ;
782782 atu .parent_bus_addr = pp -> io_base - pci -> parent_bus_offset ;
783783 atu .pci_addr = pp -> io_bus_addr ;
784784 atu .size = pp -> io_size ;
@@ -804,7 +804,7 @@ static int dw_pcie_wr_other_conf(struct pci_bus *bus, unsigned int devfn,
804804 return ret ;
805805
806806 if (pp -> cfg0_io_shared ) {
807- atu .type = PCIE_ATU_TYPE_IO ;
807+ atu .type = PCIE_TLP_TYPE_IO_RDWR ;
808808 atu .parent_bus_addr = pp -> io_base - pci -> parent_bus_offset ;
809809 atu .pci_addr = pp -> io_bus_addr ;
810810 atu .size = pp -> io_size ;
@@ -912,7 +912,7 @@ static int dw_pcie_iatu_setup(struct dw_pcie_rp *pp)
912912 if (resource_type (entry -> res ) != IORESOURCE_MEM )
913913 continue ;
914914
915- atu .type = PCIE_ATU_TYPE_MEM ;
915+ atu .type = PCIE_TLP_TYPE_MEM_RDWR ;
916916 atu .parent_bus_addr = entry -> res -> start - pci -> parent_bus_offset ;
917917 atu .pci_addr = entry -> res -> start - entry -> offset ;
918918
@@ -955,7 +955,7 @@ static int dw_pcie_iatu_setup(struct dw_pcie_rp *pp)
955955 if (pp -> io_size ) {
956956 if (ob_iatu_index < pci -> num_ob_windows ) {
957957 atu .index = ob_iatu_index ;
958- atu .type = PCIE_ATU_TYPE_IO ;
958+ atu .type = PCIE_TLP_TYPE_IO_RDWR ;
959959 atu .parent_bus_addr = pp -> io_base - pci -> parent_bus_offset ;
960960 atu .pci_addr = pp -> io_bus_addr ;
961961 atu .size = pp -> io_size ;
@@ -1017,7 +1017,7 @@ static int dw_pcie_iatu_setup(struct dw_pcie_rp *pp)
10171017
10181018 window_size = MIN (pci -> region_limit + 1 , res_size );
10191019 ret = dw_pcie_prog_inbound_atu (pci , ib_iatu_index ,
1020- PCIE_ATU_TYPE_MEM , res_start ,
1020+ PCIE_TLP_TYPE_MEM_RDWR , res_start ,
10211021 res_start - entry -> offset , window_size );
10221022 if (ret ) {
10231023 dev_err (pci -> dev , "Failed to set DMA range %pr\n" ,
@@ -1198,7 +1198,7 @@ static int dw_pcie_pme_turn_off(struct dw_pcie *pci)
11981198
11991199 atu .code = PCIE_MSG_CODE_PME_TURN_OFF ;
12001200 atu .routing = PCIE_MSG_TYPE_R_BC ;
1201- atu .type = PCIE_ATU_TYPE_MSG ;
1201+ atu .type = PCIE_TLP_TYPE_MSG ;
12021202 atu .size = resource_size (pci -> pp .msg_res );
12031203 atu .index = pci -> pp .msg_atu_index ;
12041204
0 commit comments