VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/xorg-server-1.3.0.0/xf86sbusBus.h@ 32915

Last change on this file since 32915 was 25078, checked in by vboxsync, 15 years ago

Additions/x11/x11include: exported and set eol-style on new headers

  • Property svn:eol-style set to native
File size: 3.3 KB
Line 
1/*
2 * SBUS bus-specific declarations
3 *
4 * Copyright (C) 2000 Jakub Jelinek ([email protected])
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights
9 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 * copies of the Software, and to permit persons to whom the Software is
11 * furnished to do so, subject to the following conditions:
12 *
13 * The above copyright notice and this permission notice shall be included in
14 * all copies or substantial portions of the Software.
15 *
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19 * JAKUB JELINEK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
20 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 */
23
24#ifndef _XF86_SBUSBUS_H
25#define _XF86_SBUSBUS_H
26
27#include "xf86str.h"
28
29#define SBUS_DEVICE_BW2 0x0001
30#define SBUS_DEVICE_CG2 0x0002
31#define SBUS_DEVICE_CG3 0x0003
32#define SBUS_DEVICE_CG4 0x0004
33#define SBUS_DEVICE_CG6 0x0005
34#define SBUS_DEVICE_CG8 0x0006
35#define SBUS_DEVICE_CG12 0x0007
36#define SBUS_DEVICE_CG14 0x0008
37#define SBUS_DEVICE_LEO 0x0009
38#define SBUS_DEVICE_TCX 0x000a
39#define SBUS_DEVICE_FFB 0x000b
40#define SBUS_DEVICE_GT 0x000c
41#define SBUS_DEVICE_MGX 0x000d
42
43typedef struct sbus_prom_node {
44 int node;
45 /* Because of misdesigned openpromio */
46 int cookie[2];
47} sbusPromNode, *sbusPromNodePtr;
48
49typedef struct sbus_device {
50 int devId;
51 int fbNum;
52 int fd;
53 int width, height;
54 sbusPromNode node;
55 char *descr;
56 char *device;
57} sbusDevice, *sbusDevicePtr;
58
59extern struct sbus_devtable {
60 int devId;
61 int fbType;
62 char *promName;
63 char *descr;
64} sbusDeviceTable[];
65
66void xf86SbusProbe(void);
67extern sbusDevicePtr *xf86SbusInfo;
68
69int xf86MatchSbusInstances(const char *driverName, int sbusDevId,
70 GDevPtr *devList, int numDevs, DriverPtr drvp,
71 int **foundEntities);
72sbusDevicePtr xf86GetSbusInfoForEntity(int entityIndex);
73int xf86GetEntityForSbusInfo(sbusDevicePtr psdp);
74void xf86SbusUseBuiltinMode(ScrnInfoPtr pScrn, sbusDevicePtr psdp);
75pointer xf86MapSbusMem(sbusDevicePtr psdp, unsigned long offset,
76 unsigned long size);
77void xf86UnmapSbusMem(sbusDevicePtr psdp, pointer addr, unsigned long size);
78void xf86SbusHideOsHwCursor(sbusDevicePtr psdp);
79void xf86SbusSetOsHwCursorCmap(sbusDevicePtr psdp, int bg, int fg);
80Bool xf86SbusHandleColormaps(ScreenPtr pScreen, sbusDevicePtr psdp);
81
82extern int promRootNode;
83
84int promGetSibling(int node);
85int promGetChild(int node);
86char * promGetProperty(const char *prop, int *lenp);
87int promGetBool(const char *prop);
88
89int sparcPromInit(void);
90void sparcPromClose(void);
91char * sparcPromGetProperty(sbusPromNodePtr pnode, const char *prop, int *lenp);
92int sparcPromGetBool(sbusPromNodePtr pnode, const char *prop);
93void sparcPromAssignNodes(void);
94char * sparcPromNode2Pathname(sbusPromNodePtr pnode);
95int sparcPromPathname2Node(const char *pathName);
96
97#endif /* _XF86_SBUSBUS_H */
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