diff options
Diffstat (limited to 'hw/xfree86/i2c')
-rw-r--r-- | hw/xfree86/i2c/Makefile.am | 2 | ||||
-rw-r--r-- | hw/xfree86/i2c/bt829.h | 18 | ||||
-rw-r--r-- | hw/xfree86/i2c/fi1236.h | 13 | ||||
-rw-r--r-- | hw/xfree86/i2c/i2c_def.h | 15 | ||||
-rw-r--r-- | hw/xfree86/i2c/msp3430.h | 12 | ||||
-rw-r--r-- | hw/xfree86/i2c/tda8425.h | 11 | ||||
-rw-r--r-- | hw/xfree86/i2c/tda9850.h | 13 | ||||
-rw-r--r-- | hw/xfree86/i2c/tda9885.h | 12 | ||||
-rw-r--r-- | hw/xfree86/i2c/uda1380.h | 15 |
9 files changed, 1 insertions, 110 deletions
diff --git a/hw/xfree86/i2c/Makefile.am b/hw/xfree86/i2c/Makefile.am index 6e36f0cc8..cbf4f6571 100644 --- a/hw/xfree86/i2c/Makefile.am +++ b/hw/xfree86/i2c/Makefile.am @@ -15,7 +15,7 @@ libi2c_la_SOURCES = xf86i2c.c xf86i2cmodule.c INCLUDES = $(XORG_INCS) -AM_CFLAGS = $(XORG_CFLAGS) @SERVER_DEFINES@ @MODULE_DEFINES@ @LOADER_DEFINES@ +AM_CFLAGS = $(XORG_CFLAGS) sdk_HEADERS = xf86i2c.h bt829.h fi1236.h msp3430.h tda8425.h tda9850.h tda9885.h uda1380.h i2c_def.h diff --git a/hw/xfree86/i2c/bt829.h b/hw/xfree86/i2c/bt829.h index 2c7c00d34..bca9d37de 100644 --- a/hw/xfree86/i2c/bt829.h +++ b/hw/xfree86/i2c/bt829.h @@ -82,8 +82,6 @@ int bt829_SetCC(BT829Ptr bt); "bt829_SetOUT_EN", \ "bt829_SetP_IO" -#ifdef XFree86LOADER - #define xf86_bt829_Detect ((BT829Ptr (*)(I2CBusPtr, I2CSlaveAddr))LoaderSymbol("bt829_Detect")) #define xf86_bt829_ATIInit ((int (*)(BT829Ptr))LoaderSymbol("bt829_ATIInit")) #define xf86_bt829_SetFormat ((int (*)(BT829Ptr, CARD8))LoaderSymbol("bt829_SetFormat")) @@ -96,20 +94,4 @@ int bt829_SetCC(BT829Ptr bt); #define xf86_bt829_SetOUT_EN ((void (*)(BT829Ptr, Bool))LoaderSymbol("bt829_SetOUT_EN")) #define xf86_bt829_SetP_IO ((void (*)(BT829Ptr, CARD8))LoaderSymbol("bt829_SetP_IO")) -#else - -#define xf86_bt829_Detect bt829_Detect -#define xf86_bt829_ATIInit bt829_ATIInit -#define xf86_bt829_SetFormat bt829_SetFormat -#define xf86_bt829_SetMux bt829_SetMux -#define xf86_bt829_SetCaptSize bt829_SetCaptSize -#define xf86_bt829_SetBrightness bt829_SetBrightness -#define xf86_bt829_SetContrast bt829_SetContrast -#define xf86_bt829_SetSaturation bt829_SetSaturation -#define xf86_bt829_SetTint bt829_SetTint -#define xf86_bt829_SetOUT_EN bt829_SetOUT_EN -#define xf86_bt829_SetP_IO bt829_SetP_IO - -#endif - #endif diff --git a/hw/xfree86/i2c/fi1236.h b/hw/xfree86/i2c/fi1236.h index 7c1d07024..eda1c781c 100644 --- a/hw/xfree86/i2c/fi1236.h +++ b/hw/xfree86/i2c/fi1236.h @@ -100,8 +100,6 @@ void fi1236_dump_status(FI1236Ptr f); "FI1236_set_tuner_type", \ "TUNER_set_frequency" -#ifdef XFree86LOADER - #define xf86_Detect_FI1236 ((FI1236Ptr (*)(I2CBusPtr, I2CSlaveAddr))LoaderSymbol("Detect_FI1236")) #define xf86_FI1236_set_tuner_type ((void (*)(FI1236Ptr, int))LoaderSymbol("FI1236_set_tuner_type")) #define xf86_TUNER_set_frequency ((void (*)(FI1236Ptr, CARD32))LoaderSymbol("TUNER_set_frequency")) @@ -109,15 +107,4 @@ void fi1236_dump_status(FI1236Ptr f); #define xf86_TUNER_get_afc_hint ((int (*)(FI1236Ptr))LoaderSymbol("TUNER_get_afc_hint")) #define xf86_fi1236_dump_status ((void (*)(FI1236Ptr))LoaderSymbol("fi1236_dump_status")) -#else - -#define xf86_Detect_FI1236 Detect_FI1236 -#define xf86_FI1236_set_tuner_type FI1236_set_tuner_type -#define xf86_TUNER_set_frequency TUNER_set_frequency -#define xf86_FI1236_AFC FI1236_AFC -#define xf86_TUNER_get_afc_hint TUNER_get_afc_hint -#define xf86_fi1236_dump_status fi1236_dump_status - -#endif - #endif diff --git a/hw/xfree86/i2c/i2c_def.h b/hw/xfree86/i2c/i2c_def.h index 84b9c5d91..6e119e478 100644 --- a/hw/xfree86/i2c/i2c_def.h +++ b/hw/xfree86/i2c/i2c_def.h @@ -3,8 +3,6 @@ /* the following are a workaround for possible loader bug.. WATCH function types ! */ -#if XFree86LOADER - #define CreateI2CBusRec ((pointer (*)(void))LoaderSymbol("xf86CreateI2CBusRec")) #define DestroyI2CBusRec ((pointer (*)(I2CBusPtr, Bool, Bool))LoaderSymbol("xf86DestroyI2CBusRec")) #define I2CBusInit ((Bool (*)(pointer))LoaderSymbol("xf86I2CBusInit")) @@ -13,17 +11,4 @@ #define I2CDevInit ((Bool (*)(I2CDevPtr))LoaderSymbol("xf86I2CDevInit")) #define I2CProbeAddress ((Bool (*)(I2CBusPtr,I2CSlaveAddr))LoaderSymbol("xf86I2CProbeAddress")) -#else - -#define CreateI2CBusRec xf86CreateI2CBusRec -#define DestroyI2CBusRec xf86DestroyI2CBusRec -#define I2CBusInit xf86I2CBusInit -#define I2C_WriteRead xf86I2CWriteRead -#define CreateI2CDevRec xf86CreateI2CDevRec -#define I2CDevInit xf86I2CDevInit -#define I2CProbeAddress xf86I2CProbeAddress - -#endif - - #endif diff --git a/hw/xfree86/i2c/msp3430.h b/hw/xfree86/i2c/msp3430.h index 8726bacf5..1cb9b869d 100644 --- a/hw/xfree86/i2c/msp3430.h +++ b/hw/xfree86/i2c/msp3430.h @@ -105,22 +105,10 @@ void MSP3430SetSAP (MSP3430Ptr m, int mode); "MSP3430SetVolume", \ "MSP3430SetSAP" -#ifdef XFree86LOADER - #define xf86_DetectMSP3430 ((MSP3430Ptr (*)(I2CBusPtr, I2CSlaveAddr))LoaderSymbol("DetectMSP3430")) #define xf86_ResetMSP3430 ((void (*)(MSP3430Ptr))LoaderSymbol("ResetMSP3430")) #define xf86_MSP3430SetVolume ((void (*)(MSP3430Ptr, CARD8))LoaderSymbol("MSP3430SetVolume")) #define xf86_MSP3430SetSAP ((void (*)(MSP3430Ptr, int))LoaderSymbol("MSP3430SetSAP")) #define xf86_InitMSP3430 ((void (*)(MSP3430Ptr))LoaderSymbol("InitMSP3430")) -#else - -#define xf86_DetectMSP3430 DetectMSP3430 -#define xf86_ResetMSP3430 ResetMSP3430 -#define xf86_MSP3430SetVolume MSP3430SetVolume -#define xf86_MSP3430SetSAP MSP3430SetSAP -#define xf86_InitMSP3430 InitMSP3430 - -#endif - #endif diff --git a/hw/xfree86/i2c/tda8425.h b/hw/xfree86/i2c/tda8425.h index ec1908ba9..4abb4175f 100644 --- a/hw/xfree86/i2c/tda8425.h +++ b/hw/xfree86/i2c/tda8425.h @@ -34,20 +34,9 @@ void tda8425_mute(TDA8425Ptr t, Bool mute); "tda8425_setaudio", \ "tda8425_mute" -#ifdef XFree86LOADER - #define xf86_Detect_tda8425 ((TDA8425Ptr (*)(I2CBusPtr, I2CSlaveAddr,Bool))LoaderSymbol("Detect_tda8425")) #define xf86_tda8425_init ((Bool (*)(TDA8425Ptr))LoaderSymbol("tda8425_init")) #define xf86_tda8425_setaudio ((void (*)(TDA8425Ptr))LoaderSymbol("tda8425_setaudio")) #define xf86_tda8425_mute ((void (*)(TDA8425Ptr, Bool))LoaderSymbol("tda8425_mute")) -#else - -#define xf86_Detect_tda8425 Detect_tda8425 -#define xf86_tda8425_init tda8425_init -#define xf86_tda8425_setaudio tda8425_setaudio -#define xf86_tda8425_mute tda8425_mute - -#endif - #endif diff --git a/hw/xfree86/i2c/tda9850.h b/hw/xfree86/i2c/tda9850.h index 2c8ddcc6e..d5dec36fe 100644 --- a/hw/xfree86/i2c/tda9850.h +++ b/hw/xfree86/i2c/tda9850.h @@ -29,8 +29,6 @@ CARD16 tda9850_getstatus(TDA9850Ptr t); "tda9850_mute", \ "tda9850_sap_mute" -#ifdef XFree86LOADER - #define xf86_Detect_tda9850 ((TDA9850Ptr (*)(I2CBusPtr, I2CSlaveAddr))LoaderSymbol("Detect_tda9850")) #define xf86_tda9850_init ((Bool (*)(TDA9850Ptr))LoaderSymbol("tda9850_init")) #define xf86_tda9850_setaudio ((void (*)(TDA9850Ptr))LoaderSymbol("tda9850_setaudio")) @@ -38,15 +36,4 @@ CARD16 tda9850_getstatus(TDA9850Ptr t); #define xf86_tda9850_sap_mute ((void (*)(TDA9850Ptr, Bool))LoaderSymbol("tda9850_sap_mute")) #define xf86_tda9850_getstatus ((CARD16 (*)(TDA9850Ptr))LoaderSymbol("tda9850_getstatus")) -#else - -#define xf86_Detect_tda9850 Detect_tda9850 -#define xf86_tda9850_init tda9850_init -#define xf86_tda9850_setaudio tda9850_setaudio -#define xf86_tda9850_mute tda9850_mute -#define xf86_tda9850_sap_mute tda9850_sap_mute -#define xf86_tda9850_getstatus tda9850_getstatus - -#endif - #endif diff --git a/hw/xfree86/i2c/tda9885.h b/hw/xfree86/i2c/tda9885.h index a63b34764..46ae9fc0d 100644 --- a/hw/xfree86/i2c/tda9885.h +++ b/hw/xfree86/i2c/tda9885.h @@ -51,22 +51,10 @@ void tda9885_dumpstatus(TDA9885Ptr t); "tda9885_setaudio", \ "tda9885_mute" -#ifdef XFree86LOADER - #define xf86_Detect_tda9885 ((TDA9885Ptr (*)(I2CBusPtr, I2CSlaveAddr))LoaderSymbol("Detect_tda9885")) #define xf86_tda9885_init ((Bool (*)(TDA9885Ptr))LoaderSymbol("tda9885_init")) #define xf86_tda9885_setparameters ((void (*)(TDA9885Ptr))LoaderSymbol("tda9885_setparameters")) #define xf86_tda9885_getstatus ((void (*)(TDA9885Ptr))LoaderSymbol("tda9885_getstatus")) #define xf86_tda9885_dumpstatus ((void (*)(TDA9885Ptr))LoaderSymbol("tda9885_dumpstatus")) -#else - -#define xf86_Detect_tda9885 Detect_tda9885 -#define xf86_tda9885_init tda9885_init -#define xf86_tda9885_setparameters tda9885_setparameters -#define xf86_tda9885_getstatus tda9885_getstatus -#define xf86_tda9885_dumpstatus tda9885_dumpstatus - -#endif - #endif diff --git a/hw/xfree86/i2c/uda1380.h b/hw/xfree86/i2c/uda1380.h index acf96c556..95ad92b92 100644 --- a/hw/xfree86/i2c/uda1380.h +++ b/hw/xfree86/i2c/uda1380.h @@ -66,8 +66,6 @@ void uda1380_dumpstatus(UDA1380Ptr t); "uda1380_getstatus", \ "uda1380_dumpstatus" -#ifdef XFree86LOADER - #define xf86_Detect_uda1380 ((UDA1380Ptr (*)(I2CBusPtr, I2CSlaveAddr))LoaderSymbol("Detect_uda1380")) #define xf86_uda1380_init ((Bool (*)(UDA1380Ptr))LoaderSymbol("uda1380_init")) #define xf86_uda1380_shutdown ((void (*)(UDA1380Ptr))LoaderSymbol("uda1380_shutdown")) @@ -77,17 +75,4 @@ void uda1380_dumpstatus(UDA1380Ptr t); #define xf86_uda1380_getstatus ((void (*)(UDA1380Ptr))LoaderSymbol("uda1380_getstatus")) #define xf86_uda1380_dumpstatus ((void (*)(UDA1380Ptr))LoaderSymbol("uda1380_dumpstatus")) -#else - -#define xf86_Detect_uda1380 Detect_uda1380 -#define xf86_uda1380_init uda1380_init -#define xf86_uda1380_shutdown uda1380_shutdown -#define xf86_uda1380_setvolume uda1380_setvolume -#define xf86_uda1380_mute uda1380_mute -#define xf86_uda1380_setparameters uda1380_setparameters -#define xf86_uda1380_getstatus uda1380_getstatus -#define xf86_uda1380_dumpstatus uda1380_dumpstatus - -#endif - #endif |