Lines Matching refs:dev
31 __FBSDID("$FreeBSD: releng/11.0/sys/dev/drm/i915_drv.h 298955 2016-05-03 03:41:25Z pfg $");
36 #include "dev/drm/drm_mm.h"
37 #include "dev/drm/i915_reg.h"
110 struct drm_device *dev;
420 extern void i915_kernel_lost_context(struct drm_device * dev);
423 extern int i915_driver_open(struct drm_device *dev, struct drm_file *file_priv);
424 extern void i915_driver_lastclose(struct drm_device * dev);
425 extern void i915_driver_preclose(struct drm_device *dev,
427 extern void i915_driver_postclose(struct drm_device *dev,
429 extern int i915_driver_device_is_agp(struct drm_device * dev);
432 extern int i915_emit_box(struct drm_device *dev,
437 extern int i915_irq_emit(struct drm_device *dev, void *data,
439 extern int i915_irq_wait(struct drm_device *dev, void *data,
441 void i915_user_irq_get(struct drm_device *dev);
442 void i915_user_irq_put(struct drm_device *dev);
445 extern void i915_driver_irq_preinstall(struct drm_device * dev);
446 extern int i915_driver_irq_postinstall(struct drm_device *dev);
447 extern void i915_driver_irq_uninstall(struct drm_device * dev);
448 extern int i915_vblank_pipe_set(struct drm_device *dev, void *data,
450 extern int i915_vblank_pipe_get(struct drm_device *dev, void *data,
452 extern int i915_enable_vblank(struct drm_device *dev, int crtc);
453 extern void i915_disable_vblank(struct drm_device *dev, int crtc);
454 extern u32 i915_get_vblank_counter(struct drm_device *dev, int crtc);
455 extern u32 g45_get_vblank_counter(struct drm_device *dev, int crtc);
456 extern int i915_vblank_swap(struct drm_device *dev, void *data,
467 extern int i915_mem_alloc(struct drm_device *dev, void *data,
469 extern int i915_mem_free(struct drm_device *dev, void *data,
471 extern int i915_mem_init_heap(struct drm_device *dev, void *data,
473 extern int i915_mem_destroy_heap(struct drm_device *dev, void *data,
476 extern void i915_mem_release(struct drm_device * dev,
480 int i915_gem_init_ioctl(struct drm_device *dev, void *data,
482 int i915_gem_create_ioctl(struct drm_device *dev, void *data,
484 int i915_gem_pread_ioctl(struct drm_device *dev, void *data,
486 int i915_gem_pwrite_ioctl(struct drm_device *dev, void *data,
488 int i915_gem_mmap_ioctl(struct drm_device *dev, void *data,
490 int i915_gem_set_domain_ioctl(struct drm_device *dev, void *data,
492 int i915_gem_sw_finish_ioctl(struct drm_device *dev, void *data,
494 int i915_gem_execbuffer(struct drm_device *dev, void *data,
496 int i915_gem_pin_ioctl(struct drm_device *dev, void *data,
498 int i915_gem_unpin_ioctl(struct drm_device *dev, void *data,
500 int i915_gem_busy_ioctl(struct drm_device *dev, void *data,
502 int i915_gem_throttle_ioctl(struct drm_device *dev, void *data,
504 int i915_gem_entervt_ioctl(struct drm_device *dev, void *data,
506 int i915_gem_leavevt_ioctl(struct drm_device *dev, void *data,
508 int i915_gem_set_tiling(struct drm_device *dev, void *data,
510 int i915_gem_get_tiling(struct drm_device *dev, void *data,
512 void i915_gem_load(struct drm_device *dev);
519 void i915_gem_lastclose(struct drm_device *dev);
520 uint32_t i915_get_gem_seqno(struct drm_device *dev);
521 void i915_gem_retire_requests(struct drm_device *dev);
526 void i915_gem_detect_bit_6_swizzle(struct drm_device *dev);
532 void i915_verify_inactive(struct drm_device *dev, char *file, int line);
534 #define i915_verify_inactive(dev, file, line)
539 void i915_dump_lru(struct drm_device *dev, const char *where);
543 extern int i915_save_state(struct drm_device *dev);
544 extern int i915_restore_state(struct drm_device *dev);
547 extern int intel_opregion_init(struct drm_device *dev);
548 extern void intel_opregion_free(struct drm_device *dev);
549 extern void opregion_asle_intr(struct drm_device *dev);
550 extern void opregion_enable_asle(struct drm_device *dev);
558 #define RING_LOCK_TEST_WITH_RETURN(dev, file_priv) do { \
559 if (((drm_i915_private_t *)dev->dev_private)->ring.ring_obj == NULL) \
560 LOCK_TEST_WITH_RETURN(dev, file_priv); \
583 i915_wait_ring(dev, (n)*4, __func__); \
625 extern int i915_wait_ring(struct drm_device * dev, int n, const char *caller);
627 #define IS_I830(dev) ((dev)->pci_device == 0x3577)
628 #define IS_845G(dev) ((dev)->pci_device == 0x2562)
629 #define IS_I85X(dev) ((dev)->pci_device == 0x3582)
630 #define IS_I855(dev) ((dev)->pci_device == 0x3582)
631 #define IS_I865G(dev) ((dev)->pci_device == 0x2572)
633 #define IS_I915G(dev) ((dev)->pci_device == 0x2582 || (dev)->pci_device == 0x258a)
634 #define IS_I915GM(dev) ((dev)->pci_device == 0x2592)
635 #define IS_I945G(dev) ((dev)->pci_device == 0x2772)
636 #define IS_I945GM(dev) ((dev)->pci_device == 0x27A2 ||\
637 (dev)->pci_device == 0x27AE)
638 #define IS_I965G(dev) ((dev)->pci_device == 0x2972 || \
639 (dev)->pci_device == 0x2982 || \
640 (dev)->pci_device == 0x2992 || \
641 (dev)->pci_device == 0x29A2 || \
642 (dev)->pci_device == 0x2A02 || \
643 (dev)->pci_device == 0x2A12 || \
644 (dev)->pci_device == 0x2A42 || \
645 (dev)->pci_device == 0x2E02 || \
646 (dev)->pci_device == 0x2E12 || \
647 (dev)->pci_device == 0x2E22 || \
648 (dev)->pci_device == 0x2E32)
650 #define IS_I965GM(dev) ((dev)->pci_device == 0x2A02)
652 #define IS_GM45(dev) ((dev)->pci_device == 0x2A42)
654 #define IS_G4X(dev) ((dev)->pci_device == 0x2E02 || \
655 (dev)->pci_device == 0x2E12 || \
656 (dev)->pci_device == 0x2E22 || \
657 (dev)->pci_device == 0x2E32 || \
658 IS_GM45(dev))
660 #define IS_IGDG(dev) ((dev)->pci_device == 0xa001)
661 #define IS_IGDGM(dev) ((dev)->pci_device == 0xa011)
662 #define IS_IGD(dev) (IS_IGDG(dev) || IS_IGDGM(dev))
664 #define IS_G33(dev) ((dev)->pci_device == 0x29C2 || \
665 (dev)->pci_device == 0x29B2 || \
666 (dev)->pci_device == 0x29D2 || \
667 IS_IGD(dev))
669 #define IS_I9XX(dev) (IS_I915G(dev) || IS_I915GM(dev) || IS_I945G(dev) || \
670 IS_I945GM(dev) || IS_I965G(dev) || IS_G33(dev))
672 #define IS_MOBILE(dev) (IS_I830(dev) || IS_I85X(dev) || IS_I915GM(dev) || \
673 IS_I945GM(dev) || IS_I965GM(dev) || IS_GM45(dev) || \
674 IS_IGD(dev))
676 #define I915_NEED_GFX_HWS(dev) (IS_G33(dev) || IS_GM45(dev) || IS_G4X(dev))