xserver/hw/xfree86/i2c/tda9885.h
Paulo Cesar Pereira de Andrade 87a7fb7438 Rework code using return value of LoaderSymbol as a function pointer.
The patch removes all macros in the format
  define xf86_sym  ((type (*)(argument-list))LoaderSymbol("sym"))
creates a new macro in the format
  define xf86_sym  sym
and ensures "sym" is a "visible" symbol.
  The patch doesn't add or remove features, and is source and binary
compatible with previous shared objects (with the difference that it
requires the dlloader).
  These symbols are a special case, as, due to the fact that LoaderSymbol
was being used to reference them, they are not easily found by "automated"
tools that check for missing symbols. And now it also have the benefit
that the compiler/loader "knows what is going on".
2008-11-27 00:12:59 -02:00

59 lines
1.4 KiB
C

#ifndef __TDA9885_H__
#define __TDA9885_H__
#include "xf86i2c.h"
typedef struct {
I2CDevRec d;
/* write-only parameters */
/* B DATA */
CARD8 sound_trap;
CARD8 auto_mute_fm;
CARD8 carrier_mode;
CARD8 modulation;
CARD8 forced_mute_audio;
CARD8 port1;
CARD8 port2;
/* C DATA */
CARD8 top_adjustment;
CARD8 deemphasis;
CARD8 audio_gain;
/* E DATA */
CARD8 standard_sound_carrier;
CARD8 standard_video_if;
CARD8 minimum_gain;
CARD8 gating;
CARD8 vif_agc;
/* read-only values */
CARD8 after_reset;
CARD8 afc_status;
CARD8 vif_level;
CARD8 afc_win;
CARD8 fm_carrier;
} TDA9885Rec, *TDA9885Ptr;
#define TDA9885_ADDR_1 0x86
#define TDA9885_ADDR_2 0x84
#define TDA9885_ADDR_3 0x96
#define TDA9885_ADDR_4 0x94
#define xf86_Detect_tda9885 Detect_tda9885
extern TDA9885Ptr Detect_tda9885(I2CBusPtr b, I2CSlaveAddr addr);
#define xf86_tda9885_init tda9885_init
extern Bool tda9885_init(TDA9885Ptr t);
#define xf86_tda9885_setparameters tda9885_setparameters
extern void tda9885_setparameters(TDA9885Ptr t);
#define xf86_tda9885_getstatus tda9885_getstatus
extern void tda9885_getstatus(TDA9885Ptr t);
#define xf86_tda9885_dumpstatus tda9885_dumpstatus
extern void tda9885_dumpstatus(TDA9885Ptr t);
#define TDA9885SymbolsList \
"Detect_tda9885", \
"tda9885_init", \
"tda9885_setaudio", \
"tda9885_mute"
#endif