Path: blob/master/drivers/gpu/drm/nouveau/nouveau_connector.h
15112 views
/*1* Copyright (C) 2008 Maarten Maathuis.2* All Rights Reserved.3*4* Permission is hereby granted, free of charge, to any person obtaining5* a copy of this software and associated documentation files (the6* "Software"), to deal in the Software without restriction, including7* without limitation the rights to use, copy, modify, merge, publish,8* distribute, sublicense, and/or sell copies of the Software, and to9* permit persons to whom the Software is furnished to do so, subject to10* the following conditions:11*12* The above copyright notice and this permission notice (including the13* next paragraph) shall be included in all copies or substantial14* portions of the Software.15*16* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,17* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF18* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.19* IN NO EVENT SHALL THE COPYRIGHT OWNER(S) AND/OR ITS SUPPLIERS BE20* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION21* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION22* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.23*24*/2526#ifndef __NOUVEAU_CONNECTOR_H__27#define __NOUVEAU_CONNECTOR_H__2829#include "drm_edid.h"30#include "nouveau_i2c.h"3132struct nouveau_connector {33struct drm_connector base;3435struct dcb_connector_table_entry *dcb;3637int scaling_mode;38bool use_dithering;3940struct nouveau_encoder *detected_encoder;41struct edid *edid;42struct drm_display_mode *native_mode;43};4445static inline struct nouveau_connector *nouveau_connector(46struct drm_connector *con)47{48return container_of(con, struct nouveau_connector, base);49}5051struct drm_connector *52nouveau_connector_create(struct drm_device *, int index);5354int55nouveau_connector_bpp(struct drm_connector *);5657#endif /* __NOUVEAU_CONNECTOR_H__ */585960