~ubuntu-branches/ubuntu/intrepid/xserver-xgl/intrepid

« back to all changes in this revision

Viewing changes to hw/kdrive/trio/s3stub.c

  • Committer: Bazaar Package Importer
  • Author(s): Matthew Garrett
  • Date: 2006-02-13 14:21:43 UTC
  • Revision ID: james.westby@ubuntu.com-20060213142143-mad6z9xzem7hzxz9
Tags: upstream-7.0.0
ImportĀ upstreamĀ versionĀ 7.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Id: s3stub.c,v 1.1 1999/11/02 08:19:15 keithp Exp $
 
3
 *
 
4
 * Copyright 1999 SuSE, Inc.
 
5
 *
 
6
 * Permission to use, copy, modify, distribute, and sell this software and its
 
7
 * documentation for any purpose is hereby granted without fee, provided that
 
8
 * the above copyright notice appear in all copies and that both that
 
9
 * copyright notice and this permission notice appear in supporting
 
10
 * documentation, and that the name of SuSE not be used in advertising or
 
11
 * publicity pertaining to distribution of the software without specific,
 
12
 * written prior permission.  SuSE makes no representations about the
 
13
 * suitability of this software for any purpose.  It is provided "as is"
 
14
 * without express or implied warranty.
 
15
 *
 
16
 * SuSE DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
 
17
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL SuSE
 
18
 * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 
19
 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
 
20
 * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN 
 
21
 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
22
 *
 
23
 * Author:  Keith Packard, SuSE, Inc.
 
24
 */
 
25
/* $RCSId: xc/programs/Xserver/hw/kdrive/trio/s3stub.c,v 1.3 2000/02/23 20:30:13 dawes Exp $ */
 
26
 
 
27
#ifdef HAVE_CONFIG_H
 
28
#include <kdrive-config.h>
 
29
#endif
 
30
#include "s3.h"
 
31
 
 
32
void
 
33
InitCard (char *name)
 
34
{
 
35
    KdCardAttr  attr;
 
36
    CARD32      count;
 
37
 
 
38
    count = 0;
 
39
    while (LinuxFindPci (0x5333, 0x8904, count, &attr))
 
40
    {
 
41
        KdCardInfoAdd (&s3Funcs, &attr, 0);
 
42
        count++;
 
43
    }
 
44
}
 
45
 
 
46
void
 
47
InitOutput (ScreenInfo *pScreenInfo, int argc, char **argv)
 
48
{
 
49
    KdInitOutput (pScreenInfo, argc, argv);
 
50
}
 
51
 
 
52
void
 
53
InitInput (int argc, char **argv)
 
54
{
 
55
    KdInitInput (&LinuxMouseFuncs, &LinuxKeyboardFuncs);
 
56
}
 
57
 
 
58
void
 
59
ddxUseMsg (void)
 
60
{
 
61
    KdUseMsg();
 
62
}
 
63
 
 
64
int
 
65
ddxProcessArgument (int argc, char **argv, int i)
 
66
{
 
67
    return KdProcessArgument (argc, argv, i);
 
68
}