/*
*/
/*
* Common misc module interfaces of DRM under Solaris
*/
/*
* I915 DRM Driver for Solaris
*
* This driver provides the hardware 3D acceleration support for Intel
* DRI (Direct Rendering Infrastructure). DRM (Direct Rendering Manager) here
* means the kernel device driver in DRI.
*
* I915 driver is a device dependent driver only, it depends on a misc module
* named drm for generic DRM operations.
*
* This driver also calls into gfx and agpmaster misc modules respectively for
* generic graphics operations and AGP master device support.
*/
#ifndef _SYS_DRM_SUNMOD_H_
#define _SYS_DRM_SUNMOD_H_
#ifdef __cplusplus
extern "C" {
#endif
#include <sys/visual_io.h>
#ifdef __x86
#endif /* x86 */
#include <sys/ddi_impldefs.h>
#ifdef __x86
#include <gfx_private.h>
#endif /* x86 */
#include "drmP.h"
/*
* dev_t of this driver looks consists of:
*
* major number with NBITSMAJOR bits
* instance node number with NBITSINST bits
* minor node number with NBITSMINOR - NBITSINST bits
*
* Each instance has at most 2^(NBITSMINOR - NBITSINST) minor nodes, the first
* three are:
* 0: gfx<instance number>, graphics common node
* 1: agpmaster<instance number>, agpmaster node
* 2: drm<instance number>, drm node
*/
#define GFX_MINOR 0
/*
* Number of bits occupied by instance number in dev_t, currently maximum 8
* instances are supported.
*/
/* Number of bits occupied in dev_t by minor node */
/*
* DRM use a "cloning" minor node mechanism to release lock on every close(2),
* thus there will be a minor node for every open(2) operation. Here we give
* the maximum DRM cloning minor node number.
*/
/* graphics name for the common graphics minor node */
/*
* softstate for DRM module
*/
typedef struct drm_instance_state {
#ifdef __x86
#else
#endif /* x86 */
struct drm_inst_state_list {
};
#ifdef __cplusplus
}
#endif
#endif /* _SYS_DRM_SUNMOD_H_ */