/* $XFree86: xc/programs/Xserver/hw/xfree86/common/xf86Bus.h,v 1.21 2002/11/25 14:04:56 eich Exp $ */
/*
* Copyright (c) 1997 by The XFree86 Project, Inc.
*/
/*
* This file contains definitions of the bus-related data structures/types.
* Everything contained here is private to xf86Bus.c. In particular the
* video drivers must not include this file.
*/
#ifndef _XF86_BUS_H
#define _XF86_BUS_H
#include "xf86pciBus.h"
#ifdef __sparc__
#include "xf86sbusBus.h"
#endif
typedef struct racInfo {
typedef struct {
int chipset;
int entityProp;
int lastScrnFlag;
int numInstances;
/* asynchronous event handling */
#ifdef async
typedef struct _AsyncQRec {
#endif
struct x_BusAccRec;
typedef struct x_BusAccRec {
/* Bus-specific fields */
union {
struct {
int bus;
int primary_bus;
} pci;
} busdep;
/* state change notification callback */
typedef struct _stateChange {
extern EntityPtr *xf86Entities;
extern int xf86NumEntities;
extern xf86AccessRec AccessNULL;
extern BusRec primaryBus;
extern BusAccPtr xf86BusAccInfo;
int xf86AllocateEntity(void);
#endif /* _XF86_BUS_H */