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
871c2bcf65
Backport "sequence point" fix for string upper code from glide3x.
2006-12-03 04:49:19 +00:00
guillemj
37d9fc555e
Ooops, forgot to add this file.
...
Backported from glide3x.
2006-12-03 04:47:28 +00:00
guillemj
4372942b61
Remove the shared library on realclean as well.
2006-11-30 09:45:33 +00:00
guillemj
acbd24bb88
Unify library name to be libglide3.
...
Create the shared library with the full major.minor (taking the number from
old sources).
Create a symlink for the shared library for the .so file.
2006-11-30 09:42:50 +00:00
guillemj
a1e9017af6
No autoconf anymore.
2006-11-30 09:21:28 +00:00
guillemj
1ffbd85481
No TEXUS2 option in glide2x.
2006-11-30 09:18:59 +00:00
guillemj
9c38a603a0
Switch to the new "build system", to be in sync with the rest of glide.
...
Backport cpudtect.asm from glide3 for h3.
Add fpu.c to cvg.
2006-11-30 09:16:50 +00:00
guillemj
b11bb573b0
Link against fxmisc/fxos.o and fxmisc/fximg.o to match the old library
...
signature, should be checked if it's really needed.
2006-11-30 09:10:25 +00:00
guillemj
019a1ff4dc
Sync Makefile to the general style used in the other libs.
2006-11-30 09:05:08 +00:00
guillemj
fd08c9c716
Link libraries against libm, needed by pow.
2006-11-12 02:38:43 +00:00
guillemj
1d47a8de8e
Remove the autoconf build system. It was broken and out of sync with the
...
working makefiles.linux.
2006-09-04 23:02:01 +00:00
guillemj
6cc1fe6e7e
Move library soname to GLIDE_SONAME.
2006-09-04 20:55:56 +00:00
guillemj
959334ad71
Remove redundant definition of single_precision_asm and double_precision_asm,
...
to fix the code not building from source.
2006-09-02 03:13:53 +00:00
guillemj
910bd84cf8
Backport glide3 fix for PIC compilation with gcc 4.1 from Hans de Goede.
2006-09-02 03:12:29 +00:00
guillemj
00a387e94f
Fix typo (glide3x -> glide2x).
2006-09-01 19:45:54 +00:00
guillemj
dfd3327037
Fix warnings by moving the assignments from inside the if conditionals
...
to outside.
2006-09-01 19:44:38 +00:00
guillemj
0070c1729d
Make main return an int instead of void.
...
Protect assignment inside the while conditional.
Actually pass strings to the printf code with %s.
2006-09-01 19:43:08 +00:00
guillemj
84cd0d554f
Make tlErrorMessage function return something (true).
2006-09-01 19:40:34 +00:00
guillemj
5a517c8e2f
Remove init96SetupRendering function prototype from inside init96MapBoard
...
function to the beginning of the file.
2006-09-01 19:39:25 +00:00
guillemj
f82d3a3a0a
Remove redundant (and thus making it fail to build) PCI_VENDOR_ID and
...
PCI_DEVICE_ID declarations.
2006-09-01 19:36:46 +00:00
guillemj
87f391fec1
Add missing include <string.h>.
2006-09-01 19:35:12 +00:00
guillemj
1738b62d40
Fix spaces in ChangeLog entry.
2006-09-01 19:22:40 +00:00
dborca
ebbc49b41b
Missing Rush files.
2006-07-24 06:52:23 +00:00
guillemj
91fdbf4feb
Rename HAVE_MTRR to CONFIG_MTRR.
2006-03-03 02:15:27 +00:00
jwrdegoede
1561d5a656
Fix gcc 4.1 new type-punned ptr breaks antialias. warnings
2006-01-16 21:22:46 +00:00
dborca
d2e6e8062f
removed -mcpu=pentium
2005-11-29 22:05:55 +00:00
guillemj
c67e1e2526
Protect against multiple macro definitions.
2005-09-21 22:21:57 +00:00
guillemj
fd64b6ac96
Move imageConvert declaration from inside main to before it.
...
Fixes build failure with gcc 4.0.1.
2005-09-21 22:12:27 +00:00
jwrdegoede
fef69dbf9a
Add -soname to linux linkerflags
2005-08-15 15:21:20 +00:00
jwrdegoede
93f42cc6f8
Last needed 64 bit fixes for h5/h3, complete 64 bit support for cvg
2005-08-13 21:07:04 +00:00
jwrdegoede
a30877fb0f
Add 64 bit todo list
2005-06-26 07:06:10 +00:00