Deleted Added
full compact
drmP.h (190399) drmP.h (194748)
1/* drmP.h -- Private header for Direct Rendering Manager -*- linux-c -*-
2 * Created: Mon Jan 4 10:05:05 1999 by faith@precisioninsight.com
3 */
4/*-
5 * Copyright 1999 Precision Insight, Inc., Cedar Park, Texas.
6 * Copyright 2000 VA Linux Systems, Inc., Sunnyvale, California.
7 * All rights reserved.
8 *

--- 18 unchanged lines hidden (view full) ---

27 *
28 * Authors:
29 * Rickard E. (Rik) Faith <faith@valinux.com>
30 * Gareth Hughes <gareth@valinux.com>
31 *
32 */
33
34#include <sys/cdefs.h>
1/* drmP.h -- Private header for Direct Rendering Manager -*- linux-c -*-
2 * Created: Mon Jan 4 10:05:05 1999 by faith@precisioninsight.com
3 */
4/*-
5 * Copyright 1999 Precision Insight, Inc., Cedar Park, Texas.
6 * Copyright 2000 VA Linux Systems, Inc., Sunnyvale, California.
7 * All rights reserved.
8 *

--- 18 unchanged lines hidden (view full) ---

27 *
28 * Authors:
29 * Rickard E. (Rik) Faith <faith@valinux.com>
30 * Gareth Hughes <gareth@valinux.com>
31 *
32 */
33
34#include <sys/cdefs.h>
35__FBSDID("$FreeBSD: head/sys/dev/drm/drmP.h 190399 2009-03-25 01:41:56Z rnoland $");
35__FBSDID("$FreeBSD: head/sys/dev/drm/drmP.h 194748 2009-06-23 18:09:35Z rnoland $");
36
37#ifndef _DRM_P_H_
38#define _DRM_P_H_
39
40#if defined(_KERNEL) || defined(__KERNEL__)
41
42struct drm_device;
43struct drm_file;

--- 453 unchanged lines hidden (view full) ---

497 int rid; /* PCI resource ID for bus_space */
498 struct resource *bsr;
499 bus_space_tag_t bst;
500 bus_space_handle_t bsh;
501 drm_dma_handle_t *dmah;
502 TAILQ_ENTRY(drm_local_map) link;
503} drm_local_map_t;
504
36
37#ifndef _DRM_P_H_
38#define _DRM_P_H_
39
40#if defined(_KERNEL) || defined(__KERNEL__)
41
42struct drm_device;
43struct drm_file;

--- 453 unchanged lines hidden (view full) ---

497 int rid; /* PCI resource ID for bus_space */
498 struct resource *bsr;
499 bus_space_tag_t bst;
500 bus_space_handle_t bsh;
501 drm_dma_handle_t *dmah;
502 TAILQ_ENTRY(drm_local_map) link;
503} drm_local_map_t;
504
505TAILQ_HEAD(drm_vbl_sig_list, drm_vbl_sig);
506typedef struct drm_vbl_sig {
507 TAILQ_ENTRY(drm_vbl_sig) link;
508 unsigned int sequence;
509 int signo;
510 int pid;
511} drm_vbl_sig_t;
512
513struct drm_vblank_info {
514 wait_queue_head_t queue; /* vblank wait queue */
515 atomic_t count; /* number of VBLANK interrupts */
516 /* (driver must alloc the right number of counters) */
505struct drm_vblank_info {
506 wait_queue_head_t queue; /* vblank wait queue */
507 atomic_t count; /* number of VBLANK interrupts */
508 /* (driver must alloc the right number of counters) */
517 struct drm_vbl_sig_list sigs; /* signal list to send on VBLANK */
518 atomic_t refcount; /* number of users of vblank interrupts */
519 u32 last; /* protected by dev->vbl_lock, used */
520 /* for wraparound handling */
521 int enabled; /* so we don't call enable more than */
522 /* once per disable */
523 int inmodeset; /* Display driver is setting mode */
524};
525

--- 153 unchanged lines hidden (view full) ---

679 int pci_bus;
680 int pci_slot;
681 int pci_func;
682
683 atomic_t context_flag; /* Context swapping flag */
684 int last_context; /* Last current context */
685
686 int vblank_disable_allowed;
509 atomic_t refcount; /* number of users of vblank interrupts */
510 u32 last; /* protected by dev->vbl_lock, used */
511 /* for wraparound handling */
512 int enabled; /* so we don't call enable more than */
513 /* once per disable */
514 int inmodeset; /* Display driver is setting mode */
515};
516

--- 153 unchanged lines hidden (view full) ---

670 int pci_bus;
671 int pci_slot;
672 int pci_func;
673
674 atomic_t context_flag; /* Context swapping flag */
675 int last_context; /* Last current context */
676
677 int vblank_disable_allowed;
687 atomic_t vbl_signal_pending; /* number of signals pending on all crtcs */
688 struct callout vblank_disable_timer;
689 u32 max_vblank_count; /* size of vblank counter register */
690 struct drm_vblank_info *vblank; /* per crtc vblank info */
691 int num_crtcs;
692
693 struct sigio *buf_sigio; /* Processes waiting for SIGIO */
694
695 /* Sysctl support */

--- 101 unchanged lines hidden (view full) ---

797void drm_driver_irq_uninstall(struct drm_device *dev);
798void drm_handle_vblank(struct drm_device *dev, int crtc);
799u32 drm_vblank_count(struct drm_device *dev, int crtc);
800int drm_vblank_get(struct drm_device *dev, int crtc);
801void drm_vblank_put(struct drm_device *dev, int crtc);
802void drm_vblank_cleanup(struct drm_device *dev);
803int drm_vblank_wait(struct drm_device *dev, unsigned int *vbl_seq);
804int drm_vblank_init(struct drm_device *dev, int num_crtcs);
678 struct callout vblank_disable_timer;
679 u32 max_vblank_count; /* size of vblank counter register */
680 struct drm_vblank_info *vblank; /* per crtc vblank info */
681 int num_crtcs;
682
683 struct sigio *buf_sigio; /* Processes waiting for SIGIO */
684
685 /* Sysctl support */

--- 101 unchanged lines hidden (view full) ---

787void drm_driver_irq_uninstall(struct drm_device *dev);
788void drm_handle_vblank(struct drm_device *dev, int crtc);
789u32 drm_vblank_count(struct drm_device *dev, int crtc);
790int drm_vblank_get(struct drm_device *dev, int crtc);
791void drm_vblank_put(struct drm_device *dev, int crtc);
792void drm_vblank_cleanup(struct drm_device *dev);
793int drm_vblank_wait(struct drm_device *dev, unsigned int *vbl_seq);
794int drm_vblank_init(struct drm_device *dev, int num_crtcs);
805void drm_vbl_send_signals(struct drm_device *dev, int crtc);
806int drm_modeset_ctl(struct drm_device *dev, void *data,
807 struct drm_file *file_priv);
808
809/* AGP/PCI Express/GART support (drm_agpsupport.c) */
810int drm_device_is_agp(struct drm_device *dev);
811int drm_device_is_pcie(struct drm_device *dev);
812drm_agp_head_t *drm_agp_init(void);
813int drm_agp_acquire(struct drm_device *dev);

--- 208 unchanged lines hidden ---
795int drm_modeset_ctl(struct drm_device *dev, void *data,
796 struct drm_file *file_priv);
797
798/* AGP/PCI Express/GART support (drm_agpsupport.c) */
799int drm_device_is_agp(struct drm_device *dev);
800int drm_device_is_pcie(struct drm_device *dev);
801drm_agp_head_t *drm_agp_init(void);
802int drm_agp_acquire(struct drm_device *dev);

--- 208 unchanged lines hidden ---