Lines Matching refs:uint32_t
126 #define PCI_ECAP_ID(hdr) ((uint32_t)((hdr) & 0xFFFFU))
127 #define PCI_ECAP_NEXT(hdr) ((uint32_t)(((hdr) >> 20U) & 0xFFCU))
236 uint32_t bits;
238 uint32_t indicator :1; /* BITs[0], mapped to I/O space if read as 1 */
239 uint32_t reserved :1; /* BITs[1], reserved and must be "0" per spec. */
240 uint32_t reserved2 : 30;
243 uint32_t indicator :1; /* BITs[0], mapped to memory space if read as 0 */
244 …uint32_t mem_type :2; /* BITs[1:2], 32-bit address if read as 00b, 64-bit address as 01…
245 …uint32_t prefetchable :1; /* BITs[3], set to 1b if the data is prefetchable and set to 0b o…
246 uint32_t reserved2 : 28;
259 uint32_t capoff;
260 uint32_t caplen;
262 uint32_t table_offset;
263 uint32_t table_count;
268 uint32_t capoff;
269 uint32_t caplen;
270 uint32_t pre_pos;
278 uint32_t phy_bar; /* the origional raw data read from physical BAR */
279 uint32_t size_mask; /* read value of physical BAR after write 0xffffffff */
288 uint32_t drhd_index;
294 uint32_t nr_bars; /* 6 for normal device, 2 for bridge, 1 for cardbus */
300 uint32_t msi_capoff;
301 uint32_t pcie_capoff;
313 uint32_t (*pci_read_cfg)(union pci_bdf bdf, uint32_t offset, uint32_t bytes);
314 void (*pci_write_cfg)(union pci_bdf bdf, uint32_t offset, uint32_t bytes, uint32_t val);
327 static inline uint32_t pci_bar_offset(uint32_t idx) in pci_bar_offset()
332 static inline uint32_t pci_bar_index(uint32_t offset) in pci_bar_index()
337 static inline bool is_bar_offset(uint32_t nr_bars, uint32_t offset) in is_bar_offset()
366 struct pci_pdev *pci_init_pdev(union pci_bdf pbdf, uint32_t drhd_index);
367 uint32_t pci_pdev_read_cfg(union pci_bdf bdf, uint32_t offset, uint32_t bytes);
368 void pci_pdev_write_cfg(union pci_bdf bdf, uint32_t offset, uint32_t bytes, uint32_t val);
372 uint32_t get_hv_owned_pdev_num(void);
390 uint32_t pci_lookup_drhd_for_pbdf(uint16_t pbdf);
392 static inline bool is_pci_vendor_valid(uint32_t vendor_id) in is_pci_vendor_valid()
403 static inline bool pci_is_valid_access_offset(uint32_t offset, uint32_t bytes) in pci_is_valid_access_offset()
408 static inline bool pci_is_valid_access_byte(uint32_t bytes) in pci_is_valid_access_byte()
413 static inline bool pci_is_valid_access(uint32_t offset, uint32_t bytes) in pci_is_valid_access()