Lines Matching defs:h
37 int pci_xcap_locate(ddi_acc_handle_t h, uint16_t id, uint16_t *base_p);
38 int pci_lcap_locate(ddi_acc_handle_t h, uint8_t id, uint16_t *base_p);
39 int pci_htcap_locate(ddi_acc_handle_t h, uint16_t reg_mask, uint16_t reg_val,
74 #define PCI_CAP_LOCATE(h, id, base_p) ((id) & PCI_CAP_XCFG_FLAG ? \
75 pci_xcap_locate(h, (uint16_t)((id) & PCI_CAP_XID_MASK), base_p) : \
76 pci_lcap_locate(h, (uint8_t)((id) & PCI_CAP_ID_MASK), base_p))
78 #define PCI_CAP_GET8(h, i, b, o) ((uint8_t) \
79 pci_cap_get(h, PCI_CAP_CFGSZ_8, i, b, o))
80 #define PCI_CAP_GET16(h, i, b, o) ((uint16_t) \
81 pci_cap_get(h, PCI_CAP_CFGSZ_16, i, b, o))
82 #define PCI_CAP_GET32(h, i, b, o) ((uint32_t) \
83 pci_cap_get(h, PCI_CAP_CFGSZ_32, i, b, o))
85 #define PCI_CAP_PUT8(h, i, b, o, d) ((uint8_t) \
86 pci_cap_put(h, PCI_CAP_CFGSZ_8, i, b, o, d))
87 #define PCI_CAP_PUT16(h, i, b, o, d) ((uint16_t) \
88 pci_cap_put(h, PCI_CAP_CFGSZ_16, i, b, o, d))
89 #define PCI_CAP_PUT32(h, i, b, o, d) ((uint32_t) \
90 pci_cap_put(h, PCI_CAP_CFGSZ_32, i, b, o, d))
92 #define PCI_XCAP_GET8(h, i, b, o) ((uint8_t) \
93 pci_cap_get(h, PCI_CAP_CFGSZ_8, PCI_CAP_XCFG_SPC(i), b, o))
94 #define PCI_XCAP_GET16(h, i, b, o) ((uint16_t) \
95 pci_cap_get(h, PCI_CAP_CFGSZ_16, PCI_CAP_XCFG_SPC(i), b, o))
96 #define PCI_XCAP_GET32(h, i, b, o) ((uint32_t) \
97 pci_cap_get(h, PCI_CAP_CFGSZ_32, PCI_CAP_XCFG_SPC(i), b, o))
99 #define PCI_XCAP_PUT8(h, i, b, o, d) ((uint8_t) \
100 pci_cap_put(h, PCI_CAP_CFGSZ_8, PCI_CAP_XCFG_SPC(i), b, o, d))
101 #define PCI_XCAP_PUT16(h, i, b, o, d) ((uint16_t) \
102 pci_cap_put(h, PCI_CAP_CFGSZ_16, PCI_CAP_XCFG_SPC(i), b, o, d))
103 #define PCI_XCAP_PUT32(h, i, b, o, d) ((uint32_t) \
104 pci_cap_put(h, PCI_CAP_CFGSZ_32, PCI_CAP_XCFG_SPC(i), b, o, d))
107 extern int pci_cap_probe(ddi_acc_handle_t h, uint16_t index,
110 extern uint32_t pci_cap_get(ddi_acc_handle_t h, pci_cap_config_size_t size,
113 extern int pci_cap_put(ddi_acc_handle_t h, pci_cap_config_size_t size,
116 extern int pci_cap_read(ddi_acc_handle_t h, uint32_t id, uint16_t base,