1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-03 09:00:21 +00:00

Add support for four more nfsmb controllers, shipping on at least the

ASUS Atom ION boards.

PR:		kern/142571
Submitted by:	oliver
Approved by:	ed (mentor)
MFC after:	1 week
This commit is contained in:
Gavin Atkinson 2010-01-24 14:57:54 +00:00
parent 89c3567d32
commit ef74982dc0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=202931

View File

@ -65,6 +65,10 @@ static int nfsmb_debug = 0;
#define NFSMB_DEVICEID_NF4_55_SMB 0x0368
#define NFSMB_DEVICEID_NF4_61_SMB 0x03eb
#define NFSMB_DEVICEID_NF4_65_SMB 0x0446
#define NFSMB_DEVICEID_NF4_67_SMB 0x0542
#define NFSMB_DEVICEID_NF4_73_SMB 0x07d8
#define NFSMB_DEVICEID_NF4_78S_SMB 0x0752
#define NFSMB_DEVICEID_NF4_79_SMB 0x0aa2
/* PCI Configuration space registers */
#define NF2PCI_SMBASE_1 PCIR_BAR(4)
@ -158,6 +162,10 @@ nfsmb_probe(device_t dev)
case NFSMB_DEVICEID_NF4_55_SMB:
case NFSMB_DEVICEID_NF4_61_SMB:
case NFSMB_DEVICEID_NF4_65_SMB:
case NFSMB_DEVICEID_NF4_67_SMB:
case NFSMB_DEVICEID_NF4_73_SMB:
case NFSMB_DEVICEID_NF4_78S_SMB:
case NFSMB_DEVICEID_NF4_79_SMB:
device_set_desc(dev, "nForce2/3/4 MCP SMBus Controller");
return (BUS_PROBE_DEFAULT);
}
@ -245,6 +253,10 @@ nfsmb_attach(device_t dev)
case NFSMB_DEVICEID_NF4_55_SMB:
case NFSMB_DEVICEID_NF4_61_SMB:
case NFSMB_DEVICEID_NF4_65_SMB:
case NFSMB_DEVICEID_NF4_67_SMB:
case NFSMB_DEVICEID_NF4_73_SMB:
case NFSMB_DEVICEID_NF4_78S_SMB:
case NFSMB_DEVICEID_NF4_79_SMB:
/* Trying to add secondary device as slave */
nfsmb_sc->subdev = device_add_child(dev, "nfsmb", -1);
if (!nfsmb_sc->subdev) {