diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2012-07-17 20:00:50 -0400 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2012-10-02 23:12:53 -0400 |
commit | 017e6e2955a8b290653aa71bd321609d0d4b1486 (patch) | |
tree | c891b865843f0d11437a7acb17063ea028239179 /drivers/gpu/drm/nouveau/nouveau_drv.h | |
parent | 3863c9bc887e9638a9d905d55f6038641ece78d6 (diff) |
drm/nv04/disp: kick all private state out to own header
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_drv.h')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_drv.h | 109 |
1 files changed, 0 insertions, 109 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_drv.h b/drivers/gpu/drm/nouveau/nouveau_drv.h index f62732dd30ad..760af9286819 100644 --- a/drivers/gpu/drm/nouveau/nouveau_drv.h +++ b/drivers/gpu/drm/nouveau/nouveau_drv.h | |||
@@ -468,76 +468,6 @@ struct nouveau_engine { | |||
468 | struct nouveau_pm_engine pm; | 468 | struct nouveau_pm_engine pm; |
469 | }; | 469 | }; |
470 | 470 | ||
471 | enum nv04_fp_display_regs { | ||
472 | FP_DISPLAY_END, | ||
473 | FP_TOTAL, | ||
474 | FP_CRTC, | ||
475 | FP_SYNC_START, | ||
476 | FP_SYNC_END, | ||
477 | FP_VALID_START, | ||
478 | FP_VALID_END | ||
479 | }; | ||
480 | |||
481 | struct nv04_crtc_reg { | ||
482 | unsigned char MiscOutReg; | ||
483 | uint8_t CRTC[0xa0]; | ||
484 | uint8_t CR58[0x10]; | ||
485 | uint8_t Sequencer[5]; | ||
486 | uint8_t Graphics[9]; | ||
487 | uint8_t Attribute[21]; | ||
488 | unsigned char DAC[768]; | ||
489 | |||
490 | /* PCRTC regs */ | ||
491 | uint32_t fb_start; | ||
492 | uint32_t crtc_cfg; | ||
493 | uint32_t cursor_cfg; | ||
494 | uint32_t gpio_ext; | ||
495 | uint32_t crtc_830; | ||
496 | uint32_t crtc_834; | ||
497 | uint32_t crtc_850; | ||
498 | uint32_t crtc_eng_ctrl; | ||
499 | |||
500 | /* PRAMDAC regs */ | ||
501 | uint32_t nv10_cursync; | ||
502 | struct nouveau_pll_vals pllvals; | ||
503 | uint32_t ramdac_gen_ctrl; | ||
504 | uint32_t ramdac_630; | ||
505 | uint32_t ramdac_634; | ||
506 | uint32_t tv_setup; | ||
507 | uint32_t tv_vtotal; | ||
508 | uint32_t tv_vskew; | ||
509 | uint32_t tv_vsync_delay; | ||
510 | uint32_t tv_htotal; | ||
511 | uint32_t tv_hskew; | ||
512 | uint32_t tv_hsync_delay; | ||
513 | uint32_t tv_hsync_delay2; | ||
514 | uint32_t fp_horiz_regs[7]; | ||
515 | uint32_t fp_vert_regs[7]; | ||
516 | uint32_t dither; | ||
517 | uint32_t fp_control; | ||
518 | uint32_t dither_regs[6]; | ||
519 | uint32_t fp_debug_0; | ||
520 | uint32_t fp_debug_1; | ||
521 | uint32_t fp_debug_2; | ||
522 | uint32_t fp_margin_color; | ||
523 | uint32_t ramdac_8c0; | ||
524 | uint32_t ramdac_a20; | ||
525 | uint32_t ramdac_a24; | ||
526 | uint32_t ramdac_a34; | ||
527 | uint32_t ctv_regs[38]; | ||
528 | }; | ||
529 | |||
530 | struct nv04_output_reg { | ||
531 | uint32_t output; | ||
532 | int head; | ||
533 | }; | ||
534 | |||
535 | struct nv04_mode_state { | ||
536 | struct nv04_crtc_reg crtc_reg[2]; | ||
537 | uint32_t pllsel; | ||
538 | uint32_t sel_clk; | ||
539 | }; | ||
540 | |||
541 | enum nouveau_card_type { | 471 | enum nouveau_card_type { |
542 | NV_04 = 0x04, | 472 | NV_04 = 0x04, |
543 | NV_10 = 0x10, | 473 | NV_10 = 0x10, |
@@ -639,12 +569,6 @@ struct drm_nouveau_private { | |||
639 | u8 *mxms; | 569 | u8 *mxms; |
640 | struct list_head i2c_ports; | 570 | struct list_head i2c_ports; |
641 | 571 | ||
642 | struct nv04_mode_state mode_reg; | ||
643 | struct nv04_mode_state saved_reg; | ||
644 | uint32_t saved_vga_font[4][16384]; | ||
645 | uint32_t crtc_owner; | ||
646 | uint32_t dac_users[4]; | ||
647 | |||
648 | struct backlight_device *backlight; | 572 | struct backlight_device *backlight; |
649 | 573 | ||
650 | struct { | 574 | struct { |
@@ -997,36 +921,6 @@ extern int nv98_ppp_create(struct drm_device *dev); | |||
997 | extern long nouveau_compat_ioctl(struct file *file, unsigned int cmd, | 921 | extern long nouveau_compat_ioctl(struct file *file, unsigned int cmd, |
998 | unsigned long arg); | 922 | unsigned long arg); |
999 | 923 | ||
1000 | /* nv04_dac.c */ | ||
1001 | extern int nv04_dac_create(struct drm_connector *, struct dcb_output *); | ||
1002 | extern uint32_t nv17_dac_sample_load(struct drm_encoder *encoder); | ||
1003 | extern int nv04_dac_output_offset(struct drm_encoder *encoder); | ||
1004 | extern void nv04_dac_update_dacclk(struct drm_encoder *encoder, bool enable); | ||
1005 | extern bool nv04_dac_in_use(struct drm_encoder *encoder); | ||
1006 | |||
1007 | /* nv04_dfp.c */ | ||
1008 | extern int nv04_dfp_create(struct drm_connector *, struct dcb_output *); | ||
1009 | extern int nv04_dfp_get_bound_head(struct drm_device *dev, struct dcb_output *dcbent); | ||
1010 | extern void nv04_dfp_bind_head(struct drm_device *dev, struct dcb_output *dcbent, | ||
1011 | int head, bool dl); | ||
1012 | extern void nv04_dfp_disable(struct drm_device *dev, int head); | ||
1013 | extern void nv04_dfp_update_fp_control(struct drm_encoder *encoder, int mode); | ||
1014 | |||
1015 | /* nv04_tv.c */ | ||
1016 | extern int nv04_tv_identify(struct drm_device *dev, int i2c_index); | ||
1017 | extern int nv04_tv_create(struct drm_connector *, struct dcb_output *); | ||
1018 | |||
1019 | /* nv17_tv.c */ | ||
1020 | extern int nv17_tv_create(struct drm_connector *, struct dcb_output *); | ||
1021 | |||
1022 | /* nv04_display.c */ | ||
1023 | extern int nv04_display_early_init(struct drm_device *); | ||
1024 | extern void nv04_display_late_takedown(struct drm_device *); | ||
1025 | extern int nv04_display_create(struct drm_device *); | ||
1026 | extern void nv04_display_destroy(struct drm_device *); | ||
1027 | extern int nv04_display_init(struct drm_device *); | ||
1028 | extern void nv04_display_fini(struct drm_device *); | ||
1029 | |||
1030 | /* nvd0_display.c */ | 924 | /* nvd0_display.c */ |
1031 | extern int nvd0_display_create(struct drm_device *); | 925 | extern int nvd0_display_create(struct drm_device *); |
1032 | extern void nvd0_display_destroy(struct drm_device *); | 926 | extern void nvd0_display_destroy(struct drm_device *); |
@@ -1037,9 +931,6 @@ void nvd0_display_flip_stop(struct drm_crtc *); | |||
1037 | int nvd0_display_flip_next(struct drm_crtc *, struct drm_framebuffer *, | 931 | int nvd0_display_flip_next(struct drm_crtc *, struct drm_framebuffer *, |
1038 | struct nouveau_channel *, u32 swap_interval); | 932 | struct nouveau_channel *, u32 swap_interval); |
1039 | 933 | ||
1040 | /* nv04_crtc.c */ | ||
1041 | extern int nv04_crtc_create(struct drm_device *, int index); | ||
1042 | |||
1043 | /* nouveau_bo.c */ | 934 | /* nouveau_bo.c */ |
1044 | extern struct ttm_bo_driver nouveau_bo_driver; | 935 | extern struct ttm_bo_driver nouveau_bo_driver; |
1045 | extern void nouveau_bo_move_init(struct nouveau_channel *); | 936 | extern void nouveau_bo_move_init(struct nouveau_channel *); |