Commit Graph

74 Commits

Author SHA1 Message Date
8d7d0b0ab9 fix 2.6.24 device creation (and hopefully later kernels) 2026-03-24 20:36:39 +01:00
759ac19aff implement device_class to auto create /dev/3dfx 2026-03-20 20:42:31 +01:00
df592b464f add execution bit to rules file for debian packaging 2026-03-20 20:12:55 +01:00
6717a618ac integration 2026-03-20 19:48:08 +01:00
8a704cd926 fix target 2026-03-20 19:10:32 +01:00
d0735d0b99 implement simple debian module package creation 2026-03-20 18:35:39 +01:00
guillemj
944b60eac8 Clarify that the driver works on kernels >= 2.x 2011-07-03 02:11:38 +00:00
guillemj
9ab3c4634c Handle Linux 3.x versions 2011-07-03 02:06:12 +00:00
guillemj
d37f7b7a70 Add changelog entry 2011-07-03 02:04:51 +00:00
guillemj
348d63fc2b Do not print “make help” commands, only their output 2011-07-03 02:01:25 +00:00
guillemj
cfdb4dcafe Bump version to '2011.05.27' 2011-05-27 06:27:40 +00:00
guillemj
51b434999b Use .unlocked_ioctl file operations member when .ioctl is not present 2011-05-27 05:11:10 +00:00
guillemj
d0db8256e4 Use new paths for generated header files with Linux >= 2.6.33
On Linux >= 2.6.33, use <generated/autoconf.h> instead of
<linux/autoconf.h>. Include it after <linux/version.h>.
Use generated/utsrelease.h as VERSION_HEADER if present instead of
linux/utsrelease.h or linux/version.h.
2011-05-27 05:06:11 +00:00
guillemj
f4f0afe53d Do not use negative exit numbers 2011-05-27 05:00:47 +00:00
guillemj
b10938edc0 Do not use negative exit numbers
This is a bashism which might not work on POSIX shells.
2011-05-27 04:55:50 +00:00
guillemj
0a7f20cf1f Bump version to '2008.06.24' 2008-06-24 04:42:25 +00:00
guillemj
154718fe78 Remove KERNEL_MIN_VER macro and replace all users with its contents 2008-06-24 04:35:29 +00:00
guillemj
858e6f7e15 Use pci_dev_put to release the refcount for the Intel 82441FX device 2008-06-24 04:24:22 +00:00
guillemj
ec48aba80f Terminate id_table_3dfx list with an empty element 2008-06-22 07:52:30 +00:00
guillemj
2832abfc79 Use pci_get_device instead of deprecated pci_find_device
Add compatibility code for Linux < 2.5.73.
2008-06-22 07:43:39 +00:00
guillemj
2952168561 Ignore unregister_chrdev's return value as it actually returns void now 2008-06-22 06:53:40 +00:00
guillemj
7bbce2ccdb Fix typo. 2007-02-06 05:04:20 +00:00
guillemj
57a15b8aab * 3dfx_driver.c (MODULE_VERSION): Bump to '2007.02.06'. 2007-02-06 04:55:09 +00:00
guillemj
1f3ee6bb30 Fix warnings when not checking pci_register_driver return codes.
* 3dfx_driver.c (findCards): Return int instead of void , and normalize
	error code to be always negative, otherwise return numCards.
	(init_module): Check for findCards return code, print a warning and
	exit the module on error.
	(init_3dfx): Likewise.
2007-02-06 04:50:34 +00:00
guillemj
6fccc2cbdb * 3dfx_driver.c (HAVE_DEVFS): Define to 1 if
LINUX_VERSION_CODE >= 2.3.46 and LINUX_VERSION_CODE <= 2.6.17 or
	if DEVFS_SUPPORT is defined, define to 0 otherwise.
	(devfs_handle): Only use if HAVE_DEVFS.
	(init_module): Only use devfs_mk_cdev or devfs_register if HAVE_DEVFS.
	(cleanup_module): Only use devfs_remove or devfs_unregister if
	HAVE_DEVFS.
2007-02-06 04:32:58 +00:00
guillemj
d919a05407 * Makefile (CFLAGS): Use '-march' instead of the deprecated '-mcpu'. 2007-02-06 04:15:01 +00:00
guillemj
b06c63abed * kinfo.c: Removed.
* kver.c: New file.
	* Makefile: Include kver.mak.
	(KVERS): Move this variable to 'kver.mak', which is a generated file.
	(VERSION_HEADER): New variable to cope with UTS_RELEASE being moved
	from 'linux/version.h' to 'linux/utsrelease.h' in 2.6.18.
	(kver, kver.mak): New targets.
	(KBUILD): New variable.
	(KVER_MAJOR, KVER_MINOR, BUILD_TYPE, MODULE_TDFX): Likewise, moved
	from the generated file 'config'.
	(config, kinfo, kinfo.h): Remove targets.
	(modules, intstall, clean): Do not depend on config target.
	(modules, intstall): Depend on sanity target .
2007-02-06 04:10:21 +00:00
guillemj
8f254569e5 * Makefile (.PHONY): Add clean_kbuild. Rename modules-legacy,
modules-kbuild, install-legacy, install-kbuild and clean-legacy to
	modules_legacy, modules_kbuild, install_legacy, install_kbuild
	and clean_legacy.
2007-02-06 03:37:28 +00:00
guillemj
42a995335e Fix typo. 2007-01-31 01:05:41 +00:00
guillemj
e0fdb356a3 * 3dfx_device.c (cardInfo_t): Make dev be 'struct pci_dev *' even for
kernels < 2.6.0.
	(findCardType): Assign to cards[n].dev the dev variable instead of
	devfn. Fix macro to use devfn instead.
2007-01-31 01:02:21 +00:00
guillemj
e4d0ae4ff1 * 3dfx_device.c (my_remap_page_range): Define as remap_pfn_range for
linux 2.6.10 or higher.
2006-12-03 08:16:01 +00:00
guillemj
22a95077f9 Use the "new" kernel level exception handling for memory accesses
introduced in linux 2.1.8, which obsoletes verify_aread.

	* 3dfx_device.c (doQueryFetch): Remove verify_area and check for
	copy_to_user return values.
	(doPIORead): Likewise.
	(doQueryUpdate): Remove verify_area and check for copy_from_user
	return values.
	(doQuery): Likewise.
	(doPIOWrite): Likewise.
	(doPIO): Likewise.
	(verify_area) [DEBUG]: Remove function.
	(a_last_dummy_function) [DEBUG]: Likewise.
2006-12-03 07:51:02 +00:00
guillemj
8c2fdd661a * 3dfx_device.c (doQueryFetch): Assign desc->device to i, and use it
when referencing cards.
2006-12-03 07:34:28 +00:00
guillemj
3a78ad5818 Remove first forgotten argument from pci_write_config_*. 2006-12-03 07:30:26 +00:00
guillemj
b92f14b42c * 3dfx_device.c (setmtrr_3dfx): Make it static.
(resetmtrr_3dfx): Likewise.
2006-12-03 07:13:34 +00:00
guillemj
3afa27274d Bah, fix typo VMA_OFFSET_ALIGNED -> VM_OFFSET_ALIGNED. 2006-12-03 07:10:47 +00:00
guillemj
97b9d60875 * 3dfx_device.c (id_table_3dfx): Move newar the corresponding ifdef
for older kernels.
	(findCards): Likewise.
	(driver_3dfx): Forward declare.
2006-12-03 07:09:57 +00:00
guillemj
054807b1dd Rename functions obsoleted in linux 2.1.93.
* 3dfx_device.c (pcibios_read_config_byte): Rename to ...
	(pci_read_config_byte): ... this and remove first argument.
	(pcibios_read_config_word): Rename to ...
	(pci_read_config_word): ... this and remove first argument.
	(pcibios_read_config_dword): Rename to ...
	(pci_read_config_dword): ... this and remove first argument.
	(pcibios_write_config_dword): Rename to ...
	(pci_write_config_dword): ... this and remove first argument.
2006-12-03 06:50:14 +00:00
guillemj
526262f4a6 * 3dfx_device.c (VMA_OFFSET_ALIGNED): New macro.
(mmap_3dfx): Use VMA_OFFSET_ALIGNED, instead of checking for specific
	kernel versions and changing behaviour.
2006-12-03 05:48:58 +00:00
guillemj
0ee0b2add4 Indentation fixes. 2006-12-03 05:42:50 +00:00
guillemj
1738b62d40 Fix spaces in ChangeLog entry. 2006-09-01 19:22:40 +00:00
guillemj
91fdbf4feb Rename HAVE_MTRR to CONFIG_MTRR. 2006-03-03 02:15:27 +00:00
guillemj
7e265ee0e5 Add GPL notice. 2005-04-23 22:18:15 +00:00
guillemj
8bc22af8d8 3dfx_device.c: Add Macronix MX86251 Voodoo Rush support.
Thanks to Ozkan Sezer <sezeroz@gmail.com>.
2005-04-23 22:16:30 +00:00
guillemj
fe7ea78d17 3dfx_device.c (setmtrr_3dfx): Add missing break on default case.
Thanks to Ozkan Sezer <sezeroz@gmail.com>.
2005-04-23 22:13:06 +00:00
guillemj
a5eca811b3 * 3dfx_device.c: Fix comment format. Remove obsolete compiler flags
info.
2005-04-23 21:45:05 +00:00
guillemj
92f8d35750 Move ChangeLog entries to a separate file. 2005-04-23 21:29:11 +00:00
guillemj
05750ad397 Move KVERS and MODULES_DIR to the outern Makefile so they get a value when
no config file exist.
2004-08-21 07:16:26 +00:00
guillemj
1a752ef706 Document new build system. 2004-08-21 05:57:46 +00:00
guillemj
e049e53976 New build system for Linux kernels using kbuild (2.6+) and the legacy ones. 2004-08-21 05:44:39 +00:00