PCI_CONF_HDR_SIZE
for (uint32_t i = PCI_CAP_PTR_OFF / 4; i < PCI_CONF_HDR_SIZE / 4; i++) {
PCI_CONF_HDR_SIZE - PCI_CAP_PTR_OFF);
maxoff = PCI_CONF_HDR_SIZE;
while ((cap_id_loc) && (cap_id_loc < PCI_CONF_HDR_SIZE)) {
maxoff = PCI_CONF_HDR_SIZE;
maxoff = PCI_CONF_HDR_SIZE;
regbuf = (uint32_t *)kmem_zalloc((size_t)PCI_CONF_HDR_SIZE,
kmem_free(regbuf, (size_t)PCI_CONF_HDR_SIZE);
if ((offset >= PCI_CONF_HDR_SIZE) ||
(len > PCI_CONF_HDR_SIZE) ||
(offset + len > PCI_CONF_HDR_SIZE))
static uint64_t max_cfg_size = PCI_CONF_HDR_SIZE;
#define PCIE_CFG_SPACE_SIZE (PCI_CONF_HDR_SIZE << 4)
regs[0].pci_size_low = assigned[0].pci_size_low = PCI_CONF_HDR_SIZE;
regs[1].pci_size_low = assigned[1].pci_size_low = PCI_CONF_HDR_SIZE;
if (reg_begin > PCI_CONF_HDR_SIZE)
reg_sz = reg_sz ? MIN(reg_sz, PCI_CONF_HDR_SIZE) :
PCI_CONF_HDR_SIZE;
if ((offset >= PCI_CONF_HDR_SIZE) ||
(len > PCI_CONF_HDR_SIZE) ||
(offset + len > PCI_CONF_HDR_SIZE)) {
PCI_CONF_HDR_SIZE, &db_csr_attr, &dbp->conf_handle))
if (reg_begin > PCI_CONF_HDR_SIZE)
sz = sz ? MIN(sz, PCI_CONF_HDR_SIZE) : PCI_CONF_HDR_SIZE;
PCI_CONF_HDR_SIZE, &attr, &pci_p->pci_ac[1]) != DDI_SUCCESS) {
PCI_CONF_HDR_SIZE, &attr, &pci_p->pci_ac[2]) != DDI_SUCCESS) {
#define PCIE_CFG_SPACE_SIZE (PCI_CONF_HDR_SIZE << 4)
PCI_CONF_HDR_SIZE, &attr, &pcmu_p->pcmu_ac[1]) != DDI_SUCCESS) {
if (reg_begin > PCI_CONF_HDR_SIZE) {
sz = sz ? MIN(sz, PCI_CONF_HDR_SIZE) : PCI_CONF_HDR_SIZE;
#define PCIE_CFG_SPACE_SIZE (PCI_CONF_HDR_SIZE << 4)