~ubuntu-branches/ubuntu/trusty/xserver-xorg-video-mach64-lts-xenial/trusty-proposed

« back to all changes in this revision

Viewing changes to src/atii2c.h

  • Committer: Package Import Robot
  • Author(s): Timo Aaltonen
  • Date: 2016-05-03 14:02:37 UTC
  • Revision ID: package-import@ubuntu.com-20160503140237-y946gbjc7p6fg9fn
Tags: upstream-6.9.5
ImportĀ upstreamĀ versionĀ 6.9.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright 2003 through 2004 by Marc Aurele La France (TSI @ UQV), tsi@xfree86.org
 
3
 *
 
4
 * Permission to use, copy, modify, distribute, and sell this software and its
 
5
 * documentation for any purpose is hereby granted without fee, provided that
 
6
 * the above copyright notice appear in all copies and that both that copyright
 
7
 * notice and this permission notice appear in supporting documentation, and
 
8
 * that the name of Marc Aurele La France not be used in advertising or
 
9
 * publicity pertaining to distribution of the software without specific,
 
10
 * written prior permission.  Marc Aurele La France makes no representations
 
11
 * about the suitability of this software for any purpose.  It is provided
 
12
 * "as-is" without express or implied warranty.
 
13
 *
 
14
 * MARC AURELE LA FRANCE DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
 
15
 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.  IN NO
 
16
 * EVENT SHALL MARC AURELE LA FRANCE BE LIABLE FOR ANY SPECIAL, INDIRECT OR
 
17
 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
 
18
 * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
 
19
 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 
20
 * PERFORMANCE OF THIS SOFTWARE.
 
21
 */
 
22
 
 
23
#ifndef ___ATII2C_H___
 
24
#define ___ATII2C_H___ 1
 
25
 
 
26
#include "atipriv.h"
 
27
 
 
28
#include "xf86str.h"
 
29
 
 
30
#include "xf86i2c.h"
 
31
 
 
32
typedef struct _ATII2CRec ATII2CRec, *ATII2CPtr;
 
33
 
 
34
struct _ATII2CRec
 
35
{
 
36
    ATIPtr pATI;
 
37
    void   (*I2CSetBits) (ATII2CPtr, ATIPtr, CARD32);
 
38
    CARD32 (*I2CGetBits) (ATIPtr);
 
39
    CARD32 SCLDir, SCLGet, SCLSet;
 
40
    CARD32 SDADir, SDAGet, SDASet;
 
41
    CARD32 I2CCur;
 
42
};
 
43
 
 
44
extern void      ATII2CPreInit(ScrnInfoPtr, ATIPtr);
 
45
extern I2CBusPtr ATICreateI2CBusRec(int, ATIPtr, char *);
 
46
extern void      ATII2CFreeScreen(int);
 
47
 
 
48
#endif /* ___ATII2C_H___ */