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

« back to all changes in this revision

Viewing changes to hw/kdrive/smi/smistub.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: smistub.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
/* $XFree86: xc/programs/Xserver/hw/kdrive/smi/smistub.c,v 1.4 2002/10/08 21:25:35 keithp Exp $ */
 
26
 
 
27
#ifdef HAVE_CONFIG_H
 
28
#include <kdrive-config.h>
 
29
#endif
 
30
#include "smi.h"
 
31
#include "klinux.h"
 
32
 
 
33
void
 
34
InitCard (char *name)
 
35
{
 
36
    KdCardAttr  attr;
 
37
 
 
38
    if (LinuxFindPci (0x126f, 0x0720, 0, &attr))
 
39
        KdCardInfoAdd (&smiFuncs, &attr, 0);
 
40
}
 
41
 
 
42
void
 
43
InitOutput (ScreenInfo *pScreenInfo, int argc, char **argv)
 
44
{
 
45
    KdInitOutput (pScreenInfo, argc, argv);
 
46
}
 
47
 
 
48
void
 
49
InitInput (int argc, char **argv)
 
50
{
 
51
    KdInitInput (&LinuxMouseFuncs, &LinuxKeyboardFuncs);
 
52
}
 
53
 
 
54
void
 
55
ddxUseMsg (void)
 
56
{
 
57
    KdUseMsg();
 
58
    subUseMsg();
 
59
}
 
60
 
 
61
int
 
62
ddxProcessArgument (int argc, char **argv, int i)
 
63
{
 
64
    int ret;
 
65
    
 
66
    if (!(ret = subProcessArgument (argc, argv, i)))
 
67
        ret = KdProcessArgument(argc, argv, i);
 
68
    return ret;
 
69
}