Lines Matching +full:ats +full:- +full:supported

1 /*-
2 * SPDX-License-Identifier: BSD-3-Clause
16 * 3. Neither the name of the author nor the names of any co-contributors
55 cap = read_config(fd, &p->pc_sel, ptr + PCIR_POWER_CAP, 2);
56 status = read_config(fd, &p->pc_sel, ptr + PCIR_POWER_STATUS, 2);
69 status = read_config(fd, &p->pc_sel, ptr + AGP_STATUS, 4);
70 command = read_config(fd, &p->pc_sel, ptr + AGP_CAPID, 4);
131 ctrl = read_config(fd, &p->pc_sel, ptr + PCIR_MSI_CTRL, 2);
150 status = read_config(fd, &p->pc_sel, ptr + PCIXR_STATUS, 4);
151 printf("PCI-X ");
153 printf("64-bit ");
154 if ((p->pc_hdr & PCIM_HDRTYPE) == 1)
156 if ((p->pc_hdr & PCIM_HDRTYPE) != 1 || (status & (PCIXM_STATUS_133CAP |
172 if ((p->pc_hdr & PCIM_HDRTYPE) == 1)
226 command = read_config(fd, &p->pc_sel, ptr + PCIR_HT_COMMAND, 2);
260 reg = read_config(fd, &p->pc_sel,
264 reg = read_config(fd, &p->pc_sel,
285 printf("function-level extension");
304 length = read_config(fd, &p->pc_sel, ptr + PCIR_VENDOR_LENGTH, 1);
306 if (p->pc_vendor == 0x8086) {
310 version = read_config(fd, &p->pc_sel, ptr + PCIR_VENDOR_DATA,
319 fvec = read_config(fd, &p->pc_sel, ptr +
326 fvec = read_config(fd, &p->pc_sel, ptr +
333 printf("%s SATA RAID-5", comma ? "," : "");
341 printf("%s 6 PCI-e x1 slots", comma ? "," : "");
344 printf("%s 4 PCI-e x1 slots", comma ? "," : "");
348 printf("%s SATA RAID-0/1/10", comma ? "," : "");
362 debug_port = read_config(fd, &p->pc_sel, ptr + PCIR_DEBUG_PORT, 2);
373 id = read_config(fd, &p->pc_sel, ptr + PCIR_SUBVENDCAP_ID, 4);
434 cap_h = read_config(fd, &p->pc_sel, ptr + PCIR_AMDIOMMU_CAP_HEADER, 4);
443 base_low = read_config(fd, &p->pc_sel, ptr + PCIR_AMDIOMMU_BASE_LOW,
445 base_high = read_config(fd, &p->pc_sel, ptr + PCIR_AMDIOMMU_BASE_HIGH,
465 range = read_config(fd, &p->pc_sel, ptr + PCIR_AMDIOMMU_RANGE, 4);
474 misc0 = read_config(fd, &p->pc_sel, ptr + PCIR_AMDIOMMU_MISC0, 4);
480 misc1 = read_config(fd, &p->pc_sel,
582 flags = read_config(fd, &p->pc_sel, ptr + PCIER_FLAGS, 2);
584 printf("PCI-Express %u ", version);
619 cap = read_config(fd, &p->pc_sel, ptr + PCIER_DEVICE_CAP, 4);
620 ctl = read_config(fd, &p->pc_sel, ptr + PCIER_DEVICE_CTL, 2);
631 cap = read_config(fd, &p->pc_sel, ptr + PCIER_DEVICE_CAP2, 4);
633 ctl = read_config(fd, &p->pc_sel,
641 cap = read_config(fd, &p->pc_sel, ptr + PCIER_LINK_CAP, 4);
642 sta = read_config(fd, &p->pc_sel, ptr + PCIER_LINK_STA, 2);
654 ctl = read_config(fd, &p->pc_sel, ptr + PCIER_LINK_CTL, 2);
659 ctl = read_config(fd, &p->pc_sel, ptr + PCIER_LINK_CTL, 2);
665 cap = read_config(fd, &p->pc_sel, ptr + PCIER_SLOT_CAP, 4);
666 sta = read_config(fd, &p->pc_sel, ptr + PCIER_SLOT_STA, 2);
667 ctl = read_config(fd, &p->pc_sel, ptr + PCIER_SLOT_CTL, 2);
695 ctrl = read_config(fd, &p->pc_sel, ptr + PCIR_MSIX_CTRL, 2);
698 val = read_config(fd, &p->pc_sel, ptr + PCIR_MSIX_TABLE, 4);
702 val = read_config(fd, &p->pc_sel, ptr + PCIR_MSIX_PBA, 4);
706 printf("MSI-X supports %d message%s%s\n", msgnum,
719 printf("SATA Index-Data Pair");
727 cap = read_config(fd, &p->pc_sel, ptr + PCIR_PCIAF_CAP, 1);
744 return (barstr[bei - PCIM_EA_BEI_BAR_0]);
746 return (vfbarstr[bei - PCIM_EA_BEI_VF_BAR_0]);
767 return "Non-Prefetchable Memory";
775 return "VF Non-Prefetchable Memory";
777 return "Bridge Non-Prefetchable Memory";
807 num_ent = read_config(fd, &p->pc_sel, ptr + PCIR_EA_NUM_ENT, 2);
816 if ((p->pc_hdr & PCIM_HDRTYPE) == PCIM_HDRTYPE_BRIDGE) {
817 val = read_config(fd, &p->pc_sel, ptr, 4);
829 val = read_config(fd, &p->pc_sel, ptr, 4);
834 dw[b] = read_config(fd, &p->pc_sel, ptr, 4);
861 (flags & PCIM_EA_WRITABLE ? "Writable" : "Read-only"),
876 sta = read_config(fd, &p->pc_sel, PCIR_STATUS, 2);
882 switch (p->pc_hdr & PCIM_HDRTYPE) {
896 ptr = read_config(fd, &p->pc_sel, ptr, 1);
898 cap = read_config(fd, &p->pc_sel, ptr + PCICAP_ID, 1);
952 ptr = read_config(fd, &p->pc_sel, ptr + PCICAP_NEXTPTR, 1);
982 sta = read_config(fd, &p->pc_sel, ptr + PCIR_AER_UC_STATUS, 4);
983 mask = read_config(fd, &p->pc_sel, ptr + PCIR_AER_UC_SEVERITY, 4);
985 printf(" %d non-fatal", bitcount32(sta & ~mask));
986 sta = read_config(fd, &p->pc_sel, ptr + PCIR_AER_COR_STATUS, 4);
1000 cap1 = read_config(fd, &p->pc_sel, ptr + PCIR_VC_CAP1, 4);
1003 printf(" lowpri VC0-VC%d",
1018 low = read_config(fd, &p->pc_sel, ptr + PCIR_SERIAL_LOW, 4);
1019 high = read_config(fd, &p->pc_sel, ptr + PCIR_SERIAL_HIGH, 4);
1030 val = read_config(fd, &p->pc_sel, ptr, 4);
1032 hdr = read_config(fd, &p->pc_sel, ptr + PCIR_VSEC_HEADER, 4);
1037 len = nextptr - ptr;
1045 val = read_config(fd, &p->pc_sel, ptr + i, 4);
1067 val = read_config(fd, &p->pc_sel, ptr + 8, 4);
1086 printf("SR-IOV %d ", ver);
1088 iov_ctl = read_config(fd, &p->pc_sel, ptr + PCIR_SRIOV_CTL, 2);
1094 total_vfs = read_config(fd, &p->pc_sel, ptr + PCIR_SRIOV_TOTAL_VFS, 2);
1095 num_vfs = read_config(fd, &p->pc_sel, ptr + PCIR_SRIOV_NUM_VFS, 2);
1097 printf("%d VFs configured out of %d supported\n", num_vfs, total_vfs);
1099 vf_offset = read_config(fd, &p->pc_sel, ptr + PCIR_SRIOV_VF_OFF, 2);
1100 vf_stride = read_config(fd, &p->pc_sel, ptr + PCIR_SRIOV_VF_STRIDE, 2);
1105 vf_did = read_config(fd, &p->pc_sel, ptr + PCIR_SRIOV_VF_DID, 2);
1108 page_caps = read_config(fd, &p->pc_sel, ptr + PCIR_SRIOV_PAGE_CAP, 4);
1109 page_size = read_config(fd, &p->pc_sel, ptr + PCIR_SRIOV_PAGE_SIZE, 4);
1114 page_shift = ffs(page_caps) - 1;
1159 acs_cap = read_config(fd, &p->pc_sel, ptr + PCIR_ACS_CAP, 2);
1160 acs_ctl = read_config(fd, &p->pc_sel, ptr + PCIR_ACS_CTL, 2);
1208 { PCIZ_ATS, "ATS" },
1225 { PCIZ_M_PCIE, "PCIe over M-PHY" },
1228 { PCIZ_DVSEC, "Designated Vendor-Specific" },
1250 ecap = read_config(fd, &p->pc_sel, ptr, 4);
1290 ecap = read_config(fd, &p->pc_sel, ptr, 4);
1302 sta = read_config(fd, &p->pc_sel, PCIR_STATUS, 2);
1306 switch (p->pc_hdr & PCIM_HDRTYPE) {
1318 ptr = read_config(fd, &p->pc_sel, ptr, 1);
1320 cap = read_config(fd, &p->pc_sel, ptr + PCICAP_ID, 1);
1323 ptr = read_config(fd, &p->pc_sel, ptr + PCICAP_NEXTPTR, 1);
1336 ecap = read_config(fd, &p->pc_sel, ptr, 4);
1345 ecap = read_config(fd, &p->pc_sel, ptr, 4);