amdtemp(4), amdsmn(4): Attach to Ryzen 3 (Zen 2) hostbridges
PR: 239607 Reported by: "drclaw" <drclaw AT gmail.com>
This commit is contained in:
parent
8b1531eca8
commit
85dbddbe14
@ -59,6 +59,7 @@ __FBSDID("$FreeBSD$");
|
||||
#define PCI_DEVICE_ID_AMD_15H_M60H_ROOT 0x1576
|
||||
#define PCI_DEVICE_ID_AMD_17H_ROOT 0x1450
|
||||
#define PCI_DEVICE_ID_AMD_17H_M10H_ROOT 0x15d0
|
||||
#define PCI_DEVICE_ID_AMD_17H_M30H_ROOT 0x1480
|
||||
|
||||
struct pciid;
|
||||
struct amdsmn_softc {
|
||||
@ -90,6 +91,12 @@ static const struct pciid {
|
||||
.amdsmn_addr_reg = F17H_SMN_ADDR_REG,
|
||||
.amdsmn_data_reg = F17H_SMN_DATA_REG,
|
||||
},
|
||||
{
|
||||
.amdsmn_vendorid = CPU_VENDOR_AMD,
|
||||
.amdsmn_deviceid = PCI_DEVICE_ID_AMD_17H_M30H_ROOT,
|
||||
.amdsmn_addr_reg = F17H_SMN_ADDR_REG,
|
||||
.amdsmn_data_reg = F17H_SMN_DATA_REG,
|
||||
},
|
||||
};
|
||||
|
||||
/*
|
||||
|
@ -96,6 +96,7 @@ struct amdtemp_softc {
|
||||
#define DEVICEID_AMD_MISC16_M30H 0x1583
|
||||
#define DEVICEID_AMD_HOSTB17H_ROOT 0x1450
|
||||
#define DEVICEID_AMD_HOSTB17H_M10H_ROOT 0x15d0
|
||||
#define DEVICEID_AMD_HOSTB17H_M30H_ROOT 0x1480
|
||||
|
||||
static const struct amdtemp_product {
|
||||
uint16_t amdtemp_vendorid;
|
||||
@ -118,6 +119,7 @@ static const struct amdtemp_product {
|
||||
{ VENDORID_AMD, DEVICEID_AMD_MISC16_M30H, true },
|
||||
{ VENDORID_AMD, DEVICEID_AMD_HOSTB17H_ROOT, false },
|
||||
{ VENDORID_AMD, DEVICEID_AMD_HOSTB17H_M10H_ROOT, false },
|
||||
{ VENDORID_AMD, DEVICEID_AMD_HOSTB17H_M30H_ROOT, false },
|
||||
};
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user