/*
* SBUS bus-specific declarations
*
* Copyright (C) 2000 Jakub Jelinek (jakub@redhat.com)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* JAKUB JELINEK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#ifndef _XF86_SBUSBUS_H
#define _XF86_SBUSBUS_H
#include "xf86str.h"
typedef struct sbus_prom_node {
int node;
/* Because of misdesigned openpromio */
typedef struct sbus_device {
int devId;
int fbNum;
int fd;
char *descr;
char *device;
extern struct sbus_devtable {
int devId;
int fbType;
char *promName;
char *descr;
} sbusDeviceTable[];
void xf86SbusProbe(void);
extern sbusDevicePtr *xf86SbusInfo;
int **foundEntities);
unsigned long size);
extern int promRootNode;
int promGetSibling(int node);
int promGetChild(int node);
int promGetBool(const char *prop);
int sparcPromInit(void);
void sparcPromClose(void);
void sparcPromAssignNodes(void);
int sparcPromPathname2Node(const char *pathName);
#endif /* _XF86_SBUSBUS_H */