VirtualBox

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

最後變更 在這個檔案是 51223,由 vboxsync 提交於 11 年 前

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

  • 屬性 svn:eol-style 設為 native
檔案大小: 1.1 KB
 
1#ifndef __I2C_DEF_H__
2#define __I2C_DEF_H__
3
4/* the following are a workaround for possible loader bug..
5 WATCH function types ! */
6#if XFree86LOADER
7
8#define CreateI2CBusRec ((pointer (*)(void))LoaderSymbol("xf86CreateI2CBusRec"))
9#define DestroyI2CBusRec ((pointer (*)(I2CBusPtr, Bool, Bool))LoaderSymbol("xf86DestroyI2CBusRec"))
10#define I2CBusInit ((Bool (*)(pointer))LoaderSymbol("xf86I2CBusInit"))
11#define I2C_WriteRead ((Bool (*)(I2CDevPtr, I2CByte *, int, I2CByte *, int))LoaderSymbol("xf86I2CWriteRead"))
12#define CreateI2CDevRec ((pointer (*)(void))LoaderSymbol("xf86CreateI2CDevRec"))
13#define I2CDevInit ((Bool (*)(I2CDevPtr))LoaderSymbol("xf86I2CDevInit"))
14#define I2CProbeAddress ((Bool (*)(I2CBusPtr,I2CSlaveAddr))LoaderSymbol("xf86I2CProbeAddress"))
15
16#else
17
18#define CreateI2CBusRec xf86CreateI2CBusRec
19#define DestroyI2CBusRec xf86DestroyI2CBusRec
20#define I2CBusInit xf86I2CBusInit
21#define I2C_WriteRead xf86I2CWriteRead
22#define CreateI2CDevRec xf86CreateI2CDevRec
23#define I2CDevInit xf86I2CDevInit
24#define I2CProbeAddress xf86I2CProbeAddress
25
26#endif
27
28
29#endif
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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