summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2003-12-08 00:50:59 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2003-12-08 00:50:59 +0000
commit9dbcd2cc53686f898ede728f1d5ec5102805ba44 (patch)
tree8cdf6a8dc4b6f0bbc64f5b7dfe2ef8edff8ae1ce
parent- Fix build in post if_xname world (diff)
Don't falsely tell the kernel that this driver supports the nForce onboard
Ethernet's PCI Device ID's. Obtained from: http://www.onthenet.com.au/~q/nvnet/nvidia-agp.diff
Notes
Notes: svn path=/head/; revision=95304
-rw-r--r--x11/nvidia-driver/files/patch-nvidia_pci.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/x11/nvidia-driver/files/patch-nvidia_pci.c b/x11/nvidia-driver/files/patch-nvidia_pci.c
new file mode 100644
index 000000000000..b2e92abdf256
--- /dev/null
+++ b/x11/nvidia-driver/files/patch-nvidia_pci.c
@@ -0,0 +1,21 @@
+--- src/nvidia_pci.c.orig Thu May 29 02:51:52 2003
++++ src/nvidia_pci.c Fri Oct 3 01:19:55 2003
+@@ -33,6 +33,18 @@
+ if (vendor != NVIDIA_VENDORID || device < 0x0020)
+ return ENXIO;
+
++ /* Exclude nForce MCP devices from detection */
++ if (device >= 0x01A4 && device <= 0x01ef)
++ return ENXIO;
++
++ /* Exclude nForce2 MCP2 devices from detection */
++ if (device >= 0x0060 && device <= 0x006e)
++ return ENXIO;
++
++ /* Exclude nForce3 MCP3 devices from detection */
++ if (device >= 0x00d4 && device <= 0x00da)
++ return ENXIO;
++
+ if (rm_get_device_name(device, NV_DEVICE_NAME_LENGTH, name)
+ != RM_OK) {
+ strcpy(name, "Unknown");