Lines Matching defs:drm_psb_private
386 struct drm_psb_private { struct
387 struct drm_device dev;
389 struct pci_dev *aux_pdev; /* Currently only used by mrst */
390 struct pci_dev *lpc_pdev; /* Currently only used by mrst */
391 const struct psb_ops *ops;
392 const struct psb_offset *regmap;
394 struct child_device_config *child_dev;
395 int child_dev_num;
397 struct psb_gtt gtt;
400 struct psb_gtt_mm *gtt_mm;
401 struct page *scratch_page;
402 u32 __iomem *gtt_map;
403 uint32_t stolen_base;
404 u8 __iomem *vram_addr;
405 unsigned long vram_stolen_size;
406 u16 gmch_ctrl; /* Saved GTT setup */
407 u32 pge_ctl;
409 struct mutex gtt_mutex;
410 struct resource *gtt_mem; /* Our PCI resource */
412 struct mutex mmap_mutex;
414 struct psb_mmu_driver *mmu;
415 struct psb_mmu_pd *pf_pd;
418 uint8_t __iomem *sgx_reg;
419 uint8_t __iomem *vdc_reg;
420 uint8_t __iomem *aux_reg; /* Auxillary vdc pipe regs */
421 uint16_t lpc_gpio_base;
422 uint32_t gatt_free_offset;
425 uint32_t vdc_irq_mask;
426 uint32_t pipestat[PSB_NUM_PIPE];
428 spinlock_t irqmask_lock;
431 bool pm_initialized;
434 struct psb_intel_mode_device mode_dev;
435 bool modeset; /* true if we have done the mode_device setup */
437 struct drm_crtc *plane_to_crtc_mapping[PSB_NUM_PIPE];
438 struct drm_crtc *pipe_to_crtc_mapping[PSB_NUM_PIPE];
439 uint32_t num_pipe;
442 uint32_t ospm_base;
445 u32 fuse_reg_value;
446 u32 video_device_fuse;
449 uint8_t platform_rev_id;
452 struct intel_gmbus *gmbus;
453 uint8_t __iomem *gmbus_reg;
456 int crt_ddc_pin;
459 struct sdvo_device_mapping sdvo_mappings[2];
460 u32 hotplug_supported_mask;
461 struct drm_property *broadcast_rgb_property;
462 struct drm_property *force_audio_property;
465 int backlight_duty_cycle; /* restore backlight to this value */
466 bool panel_wants_dither;
467 struct drm_display_mode *panel_fixed_mode;
468 struct drm_display_mode *lfp_lvds_vbt_mode;
469 struct drm_display_mode *sdvo_lvds_vbt_mode;
471 struct bdb_lvds_backlight *lvds_bl; /* LVDS backlight info from VBT */
472 struct gma_i2c_chan *lvds_i2c_bus; /* FIXME: Remove this? */
475 unsigned int int_tv_support:1;
476 unsigned int lvds_dither:1;
477 unsigned int lvds_vbt:1;
478 unsigned int int_crt_support:1;
479 unsigned int lvds_use_ssc:1;
480 int lvds_ssc_freq;
481 bool is_lvds_on;
482 bool is_mipi_on;
483 bool lvds_enabled_in_vbt;
484 u32 mipi_ctrl_display;
486 unsigned int core_freq;
487 uint32_t iLVDS_enable;
490 bool use_msi;
491 bool has_gct;
492 struct oaktrail_gct_data gct_data;
495 struct oaktrail_hdmi_dev *hdmi_priv;
498 struct psb_save_area regs;
501 struct work_struct hotplug_work;
504 spinlock_t lid_lock;
505 struct timer_list lid_timer;
506 struct psb_intel_opregion opregion;
507 u32 lid_last_state;
510 uint32_t apm_reg;
511 uint16_t apm_base;
517 struct intel_scu_ipc_dev *scu;
518 struct backlight_device *backlight_device;
519 struct drm_property *backlight_property;
520 bool backlight_enabled;
521 int backlight_level;
522 uint32_t blc_adj1;
523 uint32_t blc_adj2;
525 struct drm_fb_helper *fb_helper;
527 bool dsr_enable;
528 u32 dsr_fb_update;
529 bool dpi_panel_on[3];
553 static inline struct drm_psb_private *to_drm_psb_private(struct drm_device *dev) in to_drm_psb_private() argument