Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. /*
  2.  * Copyright 2007  Luc Verhaegen <lverhaegen@novell.com>
  3.  * Copyright 2007  Matthias Hopf <mhopf@novell.com>
  4.  * Copyright 2007  Egbert Eich   <eich@novell.com>
  5.  * Copyright 2007  Advanced Micro Devices, Inc.
  6.  *
  7.  * Permission is hereby granted, free of charge, to any person obtaining a
  8.  * copy of this software and associated documentation files (the "Software"),
  9.  * to deal in the Software without restriction, including without limitation
  10.  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
  11.  * and/or sell copies of the Software, and to permit persons to whom the
  12.  * Software is furnished to do so, subject to the following conditions:
  13.  *
  14.  * The above copyright notice and this permission notice shall be included in
  15.  * all copies or substantial portions of the Software.
  16.  *
  17.  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  18.  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  19.  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
  20.  * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
  21.  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
  22.  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  23.  * OTHER DEALINGS IN THE SOFTWARE.
  24.  */
  25.  
  26. #ifndef _RHD_CARD_H
  27. #define _RHD_CARD_H
  28.  
  29. /* Four bytes in TYPE/DDC layout: see rhd_connector.h */
  30. struct rhdConnectorInfo {
  31.     rhdConnectorType Type;
  32.     char *Name;
  33.     rhdDDC DDC;
  34.     rhdHPD HPD;
  35.     rhdOutputType Output[MAX_OUTPUTS_PER_CONNECTOR];
  36. };
  37.  
  38. /* Some card specific flags, where and when needed */
  39. enum rhdCardFlag {
  40.     RHD_CARD_FLAG_NONE  = 0,
  41.     RHD_CARD_FLAG_DMS59 = 1,    /* DMS59 connector is only reported as two DVI-I */
  42.     RHD_CARD_FLAG_HPDSWAP = 2,  /* some cards have broken connector tables */
  43.     RHD_CARD_FLAG_HPDOFF = 4    /* some have *very* broken connector tables */
  44. };
  45.  
  46. struct rhdCard {
  47.     CARD16 device;
  48.     CARD16 card_vendor;
  49.     CARD16 card_device;
  50.     char *name;
  51.     enum rhdCardFlag flags;
  52.  
  53.     struct rhdConnectorInfo ConnectorInfo[RHD_CONNECTORS_MAX];
  54. #ifdef ATOM_BIOS
  55.     enum atomDevice DeviceInfo[RHD_CONNECTORS_MAX][MAX_OUTPUTS_PER_CONNECTOR];
  56. #endif
  57. };
  58.  
  59. void RhdPrintConnectorInfo(RHDPtr rhdPtr, struct rhdConnectorInfo *cp);
  60.  
  61. #endif /* _RHD_CARD_H */
  62.