|
89 | 89 | #define IPROC_PCIE_REG_INVALID 0xffff |
90 | 90 |
|
91 | 91 | /** |
92 | | - * iProc PCIe outbound mapping controller specific parameters |
93 | | - * |
| 92 | + * struct iproc_pcie_ob_map - iProc PCIe outbound mapping controller-specific |
| 93 | + * parameters |
94 | 94 | * @window_sizes: list of supported outbound mapping window sizes in MB |
95 | 95 | * @nr_sizes: number of supported outbound mapping window sizes |
96 | 96 | */ |
@@ -136,22 +136,20 @@ static const struct iproc_pcie_ob_map paxb_v2_ob_map[] = { |
136 | 136 | }; |
137 | 137 |
|
138 | 138 | /** |
139 | | - * iProc PCIe inbound mapping type |
| 139 | + * enum iproc_pcie_ib_map_type - iProc PCIe inbound mapping type |
| 140 | + * @IPROC_PCIE_IB_MAP_MEM: DDR memory |
| 141 | + * @IPROC_PCIE_IB_MAP_IO: device I/O memory |
| 142 | + * @IPROC_PCIE_IB_MAP_INVALID: invalid or unused |
140 | 143 | */ |
141 | 144 | enum iproc_pcie_ib_map_type { |
142 | | - /* for DDR memory */ |
143 | 145 | IPROC_PCIE_IB_MAP_MEM = 0, |
144 | | - |
145 | | - /* for device I/O memory */ |
146 | 146 | IPROC_PCIE_IB_MAP_IO, |
147 | | - |
148 | | - /* invalid or unused */ |
149 | 147 | IPROC_PCIE_IB_MAP_INVALID |
150 | 148 | }; |
151 | 149 |
|
152 | 150 | /** |
153 | | - * iProc PCIe inbound mapping controller specific parameters |
154 | | - * |
| 151 | + * struct iproc_pcie_ib_map - iProc PCIe inbound mapping controller-specific |
| 152 | + * parameters |
155 | 153 | * @type: inbound mapping region type |
156 | 154 | * @size_unit: inbound mapping region size unit, could be SZ_1K, SZ_1M, or |
157 | 155 | * SZ_1G |
@@ -437,7 +435,7 @@ static inline void iproc_pcie_write_reg(struct iproc_pcie *pcie, |
437 | 435 | writel(val, pcie->base + offset); |
438 | 436 | } |
439 | 437 |
|
440 | | -/** |
| 438 | +/* |
441 | 439 | * APB error forwarding can be disabled during access of configuration |
442 | 440 | * registers of the endpoint device, to prevent unsupported requests |
443 | 441 | * (typically seen during enumeration with multi-function devices) from |
@@ -619,7 +617,7 @@ static int iproc_pcie_config_read(struct pci_bus *bus, unsigned int devfn, |
619 | 617 | return PCIBIOS_SUCCESSFUL; |
620 | 618 | } |
621 | 619 |
|
622 | | -/** |
| 620 | +/* |
623 | 621 | * Note access to the configuration registers are protected at the higher layer |
624 | 622 | * by 'pci_lock' in drivers/pci/access.c |
625 | 623 | */ |
@@ -897,7 +895,7 @@ static inline int iproc_pcie_ob_write(struct iproc_pcie *pcie, int window_idx, |
897 | 895 | return 0; |
898 | 896 | } |
899 | 897 |
|
900 | | -/** |
| 898 | +/* |
901 | 899 | * Some iProc SoCs require the SW to configure the outbound address mapping |
902 | 900 | * |
903 | 901 | * Outbound address translation: |
|
0 commit comments