git-fixes.patch 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. From 3a3ee1c45e54a808947cc26ca11f0a5299571053 Mon Sep 17 00:00:00 2001
  2. From: Adam Jackson <ajax@redhat.com>
  3. Date: Tue, 25 Sep 2012 12:54:50 +0000
  4. Subject: Remove mibstore.h
  5. Signed-off-by: Adam Jackson <ajax@redhat.com>
  6. ---
  7. diff --git a/src/rendition.c b/src/rendition.c
  8. index 7c74f76..888bb4a 100644
  9. --- a/src/rendition.c
  10. +++ b/src/rendition.c
  11. @@ -1173,7 +1173,6 @@ renditionScreenInit(SCREEN_INIT_ARGS_DECL)
  12. fbPictureInit (pScreen, 0, 0);
  13. xf86SetBlackWhitePixels(pScreen);
  14. - miInitializeBackingStore(pScreen);
  15. /*********************************************************/
  16. /* The actual setup of the driver-specific code */
  17. diff --git a/src/rendition.h b/src/rendition.h
  18. index f7f13d4..297117e 100644
  19. --- a/src/rendition.h
  20. +++ b/src/rendition.h
  21. @@ -28,9 +28,6 @@
  22. /* All drivers initialising the SW cursor need this */
  23. #include "mipointer.h"
  24. -/* All drivers implementing backing store need this */
  25. -#include "mibstore.h"
  26. -
  27. /* All drivers using the mi colormap manipulation need this */
  28. #include "micmap.h"
  29. --
  30. cgit v0.9.0.2-2-gbebe
  31. From 30a4b73644ee22904824d4847e44ca69369fad02 Mon Sep 17 00:00:00 2001
  32. From: Adam Jackson <ajax@redhat.com>
  33. Date: Tue, 30 Sep 2014 10:21:58 -0400
  34. Subject: Fix build against xserver 1.17
  35. Also port from pci_device_map_region to pci_device_map_range. Somewhat
  36. alarming that the previous code was using map_region but unmap_range...
  37. Signed-off-by: Adam Jackson <ajax@redhat.com>
  38. diff --git a/src/rendition.c b/src/rendition.c
  39. index 888bb4a..9677850 100644
  40. --- a/src/rendition.c
  41. +++ b/src/rendition.c
  42. @@ -1371,6 +1371,18 @@ renditionMapMem(ScrnInfoPtr pScreenInfo)
  43. /* Override on users request */
  44. WriteCombine
  45. = xf86ReturnOptValBool(pRendition->Options, OPTION_FBWC, WriteCombine);
  46. +#ifdef XSERVER_LIBPCIACCESS
  47. + mapOption = PCI_DEV_MAP_FLAG_WRITABLE;
  48. + if (WriteCombine)
  49. + mapOption |= PCI_DEV_MAP_FLAG_WRITE_COMBINE;
  50. +
  51. + err = pci_device_map_range(pRendition->PciInfo,
  52. + pRendition->PciInfo->regions[0].base_addr,
  53. + pRendition->PciInfo->regions[0].size,
  54. + mapOption, (void *)&pRendition->board.vmem_base);
  55. +
  56. + return (err == 0);
  57. +#else
  58. if (WriteCombine) {
  59. xf86DrvMsg(pScreenInfo->scrnIndex, X_CONFIG,
  60. ("Requesting Write-Combined memory access\n"));
  61. @@ -1381,12 +1393,6 @@ renditionMapMem(ScrnInfoPtr pScreenInfo)
  62. mapOption = VIDMEM_MMIO;
  63. }
  64. -#ifdef XSERVER_LIBPCIACCESS
  65. - err = pci_device_map_region(pRendition->PciInfo, 0, TRUE);
  66. - pRendition->board.vmem_base = pRendition->PciInfo->regions[0].memory;
  67. -
  68. - return (err == 0);
  69. -#else
  70. pRendition->board.vmem_base=
  71. xf86MapPciMem(pScreenInfo->scrnIndex, mapOption,
  72. pRendition->pcitag,
  73. @@ -1415,7 +1421,7 @@ renditionUnmapMem(ScrnInfoPtr pScreenInfo)
  74. #else
  75. pci_device_unmap_range(pRendition->PciInfo,
  76. pRendition->board.vmem_base,
  77. - pScreenInfo->videoRam * 1024);
  78. + pRendition->PciInfo->regions[0].size);
  79. #endif
  80. return TRUE;
  81. #ifdef DEBUG0
  82. --
  83. cgit v0.10.2
  84. From df5646745bf563bb36a0db1796c318fe64bf8efe Mon Sep 17 00:00:00 2001
  85. From: Adam Jackson <ajax@redhat.com>
  86. Date: Tue, 30 Sep 2014 10:24:18 -0400
  87. Subject: Remove dependency on xf86PciInfo.h
  88. Signed-off-by: Adam Jackson <ajax@redhat.com>
  89. diff --git a/src/rendition.h b/src/rendition.h
  90. index 297117e..4ef03a7 100644
  91. --- a/src/rendition.h
  92. +++ b/src/rendition.h
  93. @@ -14,9 +14,6 @@
  94. /* Everything using inb/outb, etc needs "compiler.h" */
  95. #include "compiler.h"
  96. -/* Drivers for PCI hardware need this */
  97. -#include "xf86PciInfo.h"
  98. -
  99. /* Drivers that need to access the PCI config space directly need this */
  100. #include "xf86Pci.h"
  101. @@ -66,4 +63,8 @@
  102. #include "compat-api.h"
  103. /* end of __RENDITION_H__ */
  104. +
  105. +#define PCI_CHIP_V1000 0x0001
  106. +#define PCI_CHIP_V2x00 0x2000
  107. +
  108. #endif
  109. --
  110. cgit v0.10.2