Hi Rene! Thank you four your fixes! I will apply your patches - except for the indentation changes to AtomBIOS. CD_Common_Types.h is supplied by ATI. It's likely that we will get a later version of AtomBIOS at some time in the future. Since we have no control over how it is developed internally I would like to keep the patches for it minimal. The mininal patch would be to add your OS to the line that already gets patched:
-#elif defined (linux) || defined (__NetBSD__) +#elif defined (linux) || defined (__NetBSD__) || defined (__FreeBSD__)
Cheers, Egbert. Rene Ladan writes:
Hi,
here are some patches to make the driver and conntest compile on FreeBSD.
I can't run conntest yet because libpci doesn't work properly here :(
Regards, Rene -- GPG fingerprint = E738 5471 D185 7013 0EE0 4FC8 3C1D 6F83 12E1 84F6 (subkeys.pgp.net)
"It won't fit on the line." -- me, 2001
--- CD_Common_Types.h.orig 2007-09-22 22:24:55.000000000 +0200 +++ CD_Common_Types.h 2007-09-22 22:30:51.000000000 +0200 @@ -35,10 +35,10 @@ NEG:17.09.2002 Initiated. --*/ #ifndef _COMMON_TYPES_H_ - #define _COMMON_TYPES_H_ +#define _COMMON_TYPES_H_
- #ifndef LINUX - #if _MSC_EXTENSIONS +#ifndef LINUX +#if _MSC_EXTENSIONS
// // use Microsoft* C complier dependent interger width types @@ -47,18 +47,18 @@ // typedef __int64 int64_t; typedef unsigned __int32 uint32_t; typedef __int32 int32_t; -#elif defined (linux) || defined (__NetBSD__) +#elif defined (linux) || defined (__NetBSD__) || defined (__FreeBSD__) typedef unsigned int uint32_t; typedef int int32_t; - #else +#else typedef unsigned long uint32_t; typedef signed long int32_t; - #endif +#endif typedef unsigned char uint8_t; typedef signed char int8_t; typedef unsigned short uint16_t; typedef signed short int16_t; - #endif +#endif #ifndef UEFI_BUILD typedef signed int intn_t; typedef unsigned int uintn_t; @@ -128,15 +128,15 @@
//#define FAR __far #ifndef TRUE - #define TRUE ((BOOLEAN) 1 == 1) +#define TRUE ((BOOLEAN) 1 == 1) #endif
#ifndef FALSE - #define FALSE ((BOOLEAN) 0 == 1) +#define FALSE ((BOOLEAN) 0 == 1) #endif
#ifndef NULL - #define NULL ((VOID *) 0) +#define NULL ((VOID *) 0) #endif
//typedef UINTN CD_STATUS; --- Makefile.orig 2007-09-22 22:32:28.000000000 +0200 +++ Makefile 2007-09-22 22:32:29.000000000 +0200 @@ -1,5 +1,5 @@ rhd_conntest: rhd_conntest.c - gcc -Wall -o rhd_conntest rhd_conntest.c -lpci -lz + gcc -Wall -o rhd_conntest rhd_conntest.c -lpci -lz -L/usr/local/lib -I/usr/local/include
all: rhd_conntest
--- rhd_conntest.c.orig 2007-09-22 22:32:52.000000000 +0200 +++ rhd_conntest.c 2007-09-22 22:37:14.000000000 +0200 @@ -29,7 +29,9 @@ */
#include
+#if !defined (__FreeBSD__) #include +#endif #include #include #include @@ -41,6 +43,11 @@ #define FALSE 0 #define TRUE 1 +#if defined (__FreeBSD__) +#define PCI_SUBSYSTEM_VENDOR_ID 0x2c +#define PCI_SUBSYSTEM_ID 0x2e +#endif + /* Some register names */ enum { /* DAC A */ -- To unsubscribe, e-mail: radeonhd+unsubscribe@opensuse.org For additional commands, e-mail: radeonhd+help@opensuse.org