summaryrefslogtreecommitdiff
path: root/linux-core/drm_stub.c
AgeCommit message (Expand)Author
2006-07-24switch drm to use Linux mutexes instead of semaphore.Dave Airlie
2006-07-10Change drm Map handles to be arbitrary 32-bit hash tokens in the rangeThomas Hellstrom
2006-02-18always enable and set master on pci deviceDave Airlie
2006-02-18major realigment of DRM CVS with kernel code, makes integration much easierDave Airlie
2006-01-02use drm_cards_limit instead of cards_limitDave Airlie
2005-08-05Rename the driver hooks in the DRM to something a little moreEric Anholt
2005-07-03Simplify the sysfs codeJon Smirl
2005-07-03Add sysfs attribute dri_library_name on Linux. code in share-core/via_drv.cJon Smirl
2005-06-28Given that BenH says using the sysdev approach for DRM is bogus, I'll yankAlan Hourihane
2005-06-23Fix drm_memory_debug.c to compile, doesn't seem to be working Clean upJon Smirl
2005-06-22Get the power management hooks into the right place so that everything getsJon Smirl
2005-06-04misc cleanup patch from Adrian BunkDave Airlie
2005-05-28Actually check for drm_fb_loaded before trying to initialize the sysdevAlan Hourihane
2005-05-28Re-implement the power management.Alan Hourihane
2005-05-16Added device_is_agp callback to drm_driver. This function is called by theIan Romanick
2005-03-25fix up AGP multi-head support for kernel 2.6.12Dave Airlie
2005-03-25For 2.6.12 and 2.6.11.x:Dave Airlie
2005-02-07change DRIVER_ to CORE_ makes things look nicer, also change it so theDave Airlie
2004-10-29Switch SPIN_LOCK_UNLOCKED to spin_lock_init()Jon Smirl
2004-10-29Add include of moduleparam.hJon Smirl
2004-10-23Prepare to eliminate inter_module_get("agp")Jon Smirl
2004-10-20Switch linux-core from using dev->pdev->driver->name toJon Smirl
2004-10-18Update Doxygen configuration & comments.Jose Fonseca
2004-10-15Switch linux-core over to 2.6 parameter model to enable debug useJon Smirl
2004-10-12Breakout heads into their own data structures.Jon Smirl
2004-10-10Rename fn_tbl to driver. Core driver now uses pci_driver name whichJon Smirl
2004-10-05enable the device in the right order, remove __devinit from drm_intJon Smirl
2004-09-30Lindent of core build. Drivers checked for no binary diffs. A few filesJon Smirl
2004-09-30Move things around to reduce public symbols and even out files. Switch toJon Smirl
2004-09-30Make fops per driver instead of global, remove default flush, poll, readJon Smirl
2004-09-27First check in for DRM that splits core from personality modulesJon Smirl
2004-09-23Remove 2.6 code that allow DRM major device number to be shared. We can addJon Smirl
2004-09-231) switches from class_sysfs to drm sysfs implementation to allowJon Smirl
2004-09-22Remove hotplug reset support from DRM driver. This will be handled by theJon Smirl
2004-09-16Let's try adding the dyn-minor patch again. This patch will reuse minorJon Smirl
2004-09-15Back dyn-minor patch out for now. fops handling is broken on some cardsJon Smirl
2004-09-15Don't use module_param if it isn't defined in older kernels.Jon Smirl
2004-09-15Dynamic device minor support. Minor device numbers will be reused if theJon Smirl
2004-08-27__NO_VERSION__ hasn't been needed since 2.3 days ditch it...Dave Airlie
2004-08-15Fix warning about unused ddev variableJon Smirl
2004-08-15Add dev to DRIVER_CTX_DTOR( dev, pos->handle) so that sis driver willJon Smirl
2004-08-11minor patch from Jon Smirl : sets up some things for later useDave Airlie
2004-08-10Patch from Jon Smirl to add attribute field to the pciids, and use this forDave Airlie
2004-08-042.4 hotplug compatDave Airlie
2004-08-03fix for drm in /proc - from Jon SmirlDave Airlie
2004-07-31Add a hotplug event to DRM. Parameters match the ones from the general PCIJon Smirl
2004-07-25sync up with current 2.6 kernel bk tree - mostly __user annotationsDave Airlie
2004-07-25if the driver has already register don't do another intermodule registerDave Airlie
2004-07-22another logic error returns 0 or greater for successDave Airlie
2004-07-21add some more debugging fix ++ and --Dave Airlie
an class="hl opt">*modes; } drmModeRes, *drmModeResPtr; typedef struct drm_mode_fb_cmd drmModeFB, *drmModeFBPtr; typedef struct _drmModeCrtc { unsigned int buffer_id; /**< FB id to connect to 0 = disconnect*/ uint32_t x, y; /**< Position on the frameuffer */ uint32_t width, height; uint32_t mode; /**< Current mode used */ int count_outputs; uint32_t outputs; /**< Outputs that are connected */ int count_possibles; uint32_t possibles; /**< Outputs that can be connected */ int gamma_size; /**< Number of gamma stops */ } drmModeCrtc, *drmModeCrtcPtr; typedef enum { DRM_MODE_CONNECTED = 1, DRM_MODE_DISCONNECTED = 2, DRM_MODE_UNKNOWNCONNECTION = 3 } drmModeConnection; typedef enum { DRM_MODE_SUBPIXEL_UNKNOWN = 1, DRM_MODE_SUBPIXEL_HORIZONTAL_RGB = 2, DRM_MODE_SUBPIXEL_HORIZONTAL_BGR = 3, DRM_MODE_SUBPIXEL_VERTICAL_RGB = 4, DRM_MODE_SUBPIXEL_VERTICAL_BGR = 5, DRM_MODE_SUBPIXEL_NONE = 6 } drmModeSubPixel; typedef struct _drmModeOutput { unsigned int crtc; /**< Crtc currently connected to */ unsigned char name[DRM_OUTPUT_NAME_LEN]; drmModeConnection connection; uint32_t mmWidth, mmHeight; /**< HxW in millimeters */ drmModeSubPixel subpixel; int count_crtcs; uint32_t crtcs; /**< Possible crtc to connect to */ int count_clones; uint32_t clones; /**< Mask of clones */ int count_modes; uint32_t *modes; /**< List of modes ids */ } drmModeOutput, *drmModeOutputPtr; /* * RRSetScreenConfig o * RRGetScreenInfo o * * RRGetScreenSizeRange - see frameBuffer info * RRSetScreenSize * RRGetScreenResources * * RRGetOutputInfo * * RRListOutputProperties * * RRQueryOutputProperty * * RRConfigureOutputProperty * * RRChangeOutputProperty * * RRDeleteOutputProperty * * RRGetOutputProperty * * * RRCreateMode * RRDestroyMode * RRAddOutputMode * RRDeleteOutputMode * * RRGetCrtcInfo * RRSetCrtcConfig * * RRGetCrtcGammaSize - see crtc info * RRGetCrtcGamma * RRSetCrtcGamma * * drmModeGetResources * drmModeForceProbe * * drmModeGetFrameBufferInfo * drmModeSetFrameBufferSize * * drmModeGetCrtcInfo * drmModeSetCrtcConfig * drmModeGetCrtcGamma * drmModeSetCrtcGamma * * drmModeGetOutputInfo * * drmModeAddMode * drmModeDestroyMode * drmModeAddOutputMode * drmModeDeleteOutputMode */ extern void drmModeFreeModeInfo( struct drm_mode_modeinfo *ptr ); extern void drmModeFreeResources( drmModeResPtr ptr ); extern void drmModeFreeFB( drmModeFBPtr ptr ); extern void drmModeFreeCrtc( drmModeCrtcPtr ptr ); extern void drmModeFreeOutput( drmModeOutputPtr ptr ); /** * Retrives all of the resources associated with a card. */ extern drmModeResPtr drmModeGetResources(int fd); /** * Forces a probe of the give output outputId, on 0 all will be probed. */ extern int drmModeForceProbe(int fd, uint32_t outputId); /* * FrameBuffer manipulation. */ /** * Retrive information about framebuffer bufferId */ extern drmModeFBPtr drmModeGetFB(int fd, uint32_t bufferId); /** * Creates a new framebuffer with an buffer object as its scanout buffer. */ extern int drmModeAddFB(int fd, uint32_t width, uint32_t height, uint8_t depth, uint8_t bpp, uint32_t pitch, drmBO *bo, uint32_t *buf_id); /** * Destroies the given framebuffer. */ extern int drmModeRmFB(int fd, uint32_t bufferId); /** * Changes the scanout buffer to the given buffer object. */ extern int drmModeFlipFrameBuffer(int fd, uint32_t bufferId, drmBO *bo); /* * Crtc function. */ /** * Retrive information about the ctrt crtcId */ extern drmModeCrtcPtr drmModeGetCrtc(int fd, uint32_t crtcId); /** * Set the mode on a crtc crtcId with the given mode modeId. */ extern int drmModeSetCrtc(int fd, uint32_t crtcId, uint32_t bufferId, uint32_t x, uint32_t y, uint32_t modeId, uint32_t *outputs, int count); /** * Gets the gamma from a crtc */ extern drmModeGammaTriplePtr drmModeGetCrtcGamma(int fd, uint32_t crtcId, int *count); /** * Sets the gamma on a crtc */ extern int drmModeSetCrtcGamma(int fd, uint32_t crtcId, drmModeGammaTriplePtr ptr, int count); /* * Output manipulation */ /** * Retrive information about the output outputId. */ extern drmModeOutputPtr drmModeGetOutput(int fd, uint32_t outputId); /** * Creates a new mode from the given mode info. * Name must be unique. */ extern uint32_t drmModeNewMode(int fd, struct drm_mode_modeinfo *modeInfo); /** * Destroys a mode created with CreateMode, must be unused. */ extern int drmModeDesMode(int fd, uint32_t modeId); /** * Adds the given mode to an output. */ extern int drmModeAddMode(int fd, uint32_t outputId, uint32_t modeId); /** * Deletes a mode Added with AddOutputMode from the output, * must be unused, by the given mode. */ extern int drmModeDelMode(int fd, uint32_t outputId, uint32_t modeId);