Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151052202
D23565.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D23565.id.diff
View Options
Index: head/sys/dev/ntb/ntb_hw/ntb_hw_amd.h
===================================================================
--- head/sys/dev/ntb/ntb_hw/ntb_hw_amd.h
+++ head/sys/dev/ntb/ntb_hw/ntb_hw_amd.h
@@ -51,6 +51,9 @@
#define NTB_HW_AMD_DEVICE_ID1 0x145B
#define NTB_HW_AMD_DEVICE_ID2 0x148B
+#define NTB_HW_HYGON_VENDOR_ID 0x19D4
+#define NTB_HW_HYGON_DEVICE_ID1 0x145B
+
#define NTB_DEF_PEER_CNT 1
#define NTB_DEF_PEER_IDX 0
Index: head/sys/dev/ntb/ntb_hw/ntb_hw_amd.c
===================================================================
--- head/sys/dev/ntb/ntb_hw/ntb_hw_amd.c
+++ head/sys/dev/ntb/ntb_hw/ntb_hw_amd.c
@@ -101,6 +101,16 @@
.msix_vector_count = 24,
.quirks = 0,
.desc = "AMD Non-Transparent Bridge"},
+
+ { .vendor_id = NTB_HW_HYGON_VENDOR_ID,
+ .device_id = NTB_HW_HYGON_DEVICE_ID1,
+ .mw_count = 3,
+ .bar_start_idx = 1,
+ .spad_count = 16,
+ .db_count = 16,
+ .msix_vector_count = 24,
+ .quirks = QUIRK_MW0_32BIT,
+ .desc = "Hygon Non-Transparent Bridge"},
};
static const struct pci_device_table amd_ntb_devs[] = {
@@ -109,7 +119,10 @@
PCI_DESCR("AMD Non-Transparent Bridge") },
{ PCI_DEV(NTB_HW_AMD_VENDOR_ID, NTB_HW_AMD_DEVICE_ID2),
.driver_data = (uintptr_t)&amd_ntb_hw_info_list[1],
- PCI_DESCR("AMD Non-Transparent Bridge") }
+ PCI_DESCR("AMD Non-Transparent Bridge") },
+ { PCI_DEV(NTB_HW_HYGON_VENDOR_ID, NTB_HW_HYGON_DEVICE_ID1),
+ .driver_data = (uintptr_t)&amd_ntb_hw_info_list[0],
+ PCI_DESCR("Hygon Non-Transparent Bridge") }
};
static unsigned g_amd_ntb_hw_debug_level;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Apr 6, 4:23 PM (16 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30984384
Default Alt Text
D23565.id.diff (1 KB)
Attached To
Mode
D23565: ntb: Add Hygon Dhyana support
Attached
Detach File
Event Timeline
Log In to Comment