/* * Copyright 2009 Red Hat Inc. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * OTHER DEALINGS IN THE SOFTWARE. * * Author: Ben Skeggs */ #include <drm/drm_crtc_helper.h> #include "nouveau_drv.h" #include "nouveau_reg.h" #include "hw.h" #include "nouveau_encoder.h" #include "nouveau_connector.h" #include "nouveau_bo.h" #include "nouveau_gem.h" #include "nouveau_chan.h" #include <nvif/if0004.h> struct nouveau_connector * nv04_encoder_get_connector(struct nouveau_encoder *encoder) { … } static void nv04_display_fini(struct drm_device *dev, bool runtime, bool suspend) { … } static int nv04_display_init(struct drm_device *dev, bool resume, bool runtime) { … } static void nv04_display_destroy(struct drm_device *dev) { … } int nv04_display_create(struct drm_device *dev) { … }