VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/xorg-server-1.0.1/tda9885.h

Last change on this file was 51223, checked in by vboxsync, 11 years ago

Additions/x11/x11include: added header files for X.Org Server 1.0 and 1.1.

  • Property svn:eol-style set to native
File size: 1.8 KB
Line 
1#ifndef __TDA9885_H__
2#define __TDA9885_H__
3
4#include "xf86i2c.h"
5
6typedef struct {
7 I2CDevRec d;
8
9 /* write-only parameters */
10 /* B DATA */
11 CARD8 sound_trap;
12 CARD8 auto_mute_fm;
13 CARD8 carrier_mode;
14 CARD8 modulation;
15 CARD8 forced_mute_audio;
16 CARD8 port1;
17 CARD8 port2;
18 /* C DATA */
19 CARD8 top_adjustment;
20 CARD8 deemphasis;
21 CARD8 audio_gain;
22 /* E DATA */
23 CARD8 standard_sound_carrier;
24 CARD8 standard_video_if;
25 CARD8 minimum_gain;
26 CARD8 gating;
27 CARD8 vif_agc;
28 /* read-only values */
29
30 CARD8 after_reset;
31 CARD8 afc_status;
32 CARD8 vif_level;
33 CARD8 afc_win;
34 CARD8 fm_carrier;
35 } TDA9885Rec, *TDA9885Ptr;
36
37#define TDA9885_ADDR_1 0x86
38#define TDA9885_ADDR_2 0x84
39#define TDA9885_ADDR_3 0x96
40#define TDA9885_ADDR_4 0x94
41
42TDA9885Ptr Detect_tda9885(I2CBusPtr b, I2CSlaveAddr addr);
43Bool tda9885_init(TDA9885Ptr t);
44void tda9885_setparameters(TDA9885Ptr t);
45void tda9885_getstatus(TDA9885Ptr t);
46void tda9885_dumpstatus(TDA9885Ptr t);
47
48#define TDA9885SymbolsList \
49 "Detect_tda9885", \
50 "tda9885_init", \
51 "tda9885_setaudio", \
52 "tda9885_mute"
53
54#ifdef XFree86LOADER
55
56#define xf86_Detect_tda9885 ((TDA9885Ptr (*)(I2CBusPtr, I2CSlaveAddr))LoaderSymbol("Detect_tda9885"))
57#define xf86_tda9885_init ((Bool (*)(TDA9885Ptr))LoaderSymbol("tda9885_init"))
58#define xf86_tda9885_setparameters ((void (*)(TDA9885Ptr))LoaderSymbol("tda9885_setparameters"))
59#define xf86_tda9885_getstatus ((void (*)(TDA9885Ptr))LoaderSymbol("tda9885_getstatus"))
60#define xf86_tda9885_dumpstatus ((void (*)(TDA9885Ptr))LoaderSymbol("tda9885_dumpstatus"))
61
62#else
63
64#define xf86_Detect_tda9885 Detect_tda9885
65#define xf86_tda9885_init tda9885_init
66#define xf86_tda9885_setparameters tda9885_setparameters
67#define xf86_tda9885_getstatus tda9885_getstatus
68#define xf86_tda9885_dumpstatus tda9885_dumpstatus
69
70#endif
71
72#endif
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette