aboutsummaryrefslogtreecommitdiffstats
path: root/meta-crownbay/recipes-kernel/linux/linux-yocto/0001-crownbay-update-a-handful-of-EMGD-licenses.patch
blob: 6b0fec933f7a4c8909b258b008660af9ddc25ad1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
From dfec29236dd9ae7899b9a01d768486f439651af3 Mon Sep 17 00:00:00 2001
From: Tom Zanussi <tom.zanussi@intel.com>
Date: Thu, 17 Mar 2011 13:03:34 -0500
Subject: [KERNEL][linux-yocto][PATCH 1/1] crownbay: update a handful of EMGD licenses

The version of the EMGD driver we use had a few included license
mistakes.  Correct these as per upstream.

Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
---
 drivers/gpu/drm/emgd/emgd/pal/Makefile.include     |   39 ++--
 .../emgd/pvr/services4/system/common/sysconfig.c   |  287 ++++++++++----------
 .../drm/emgd/pvr/services4/system/plb/sysconfig.c  |   64 +++---
 .../drm/emgd/pvr/services4/system/tnc/sysconfig.c  |   64 +++---
 .../gpu/drm/emgd/pvr/services4/system/tnc/systnc.h |   48 ++--
 5 files changed, 246 insertions(+), 256 deletions(-)

diff --git a/drivers/gpu/drm/emgd/emgd/pal/Makefile.include b/drivers/gpu/drm/emgd/emgd/pal/Makefile.include
index 8143979..91f9afa 100644
--- a/drivers/gpu/drm/emgd/emgd/pal/Makefile.include
+++ b/drivers/gpu/drm/emgd/emgd/pal/Makefile.include
@@ -1,25 +1,26 @@
 #----------------------------------------------------------------------------
 # Filename: Makefile.include
-# $Revision: 1.1 $
+# $Revision: 1.2 $
 #----------------------------------------------------------------------------
-# INTEL CONFIDENTIAL
-# Copyright (2002-2008) Intel Corporation All Rights Reserved.
-# The source code contained or described herein and all documents related to
-# the source code ("Material") are owned by Intel Corporation or its suppliers
-# or licensors. Title to the Material remains with Intel Corporation or its
-# suppliers and licensors. The Material contains trade secrets and proprietary
-# and confidential information of Intel or its suppliers and licensors. The
-# Material is protected by worldwide copyright and trade secret laws and
-# treaty provisions. No part of the Material may be used, copied, reproduced,
-# modified, published, uploaded, posted, transmitted, distributed, or
-# disclosed in any way without Intel's prior express written permission.
-# 
-# No license under any patent, copyright, trade secret or other intellectual
-# property right is granted to or conferred upon you by disclosure or
-# delivery of the Materials, either expressly, by implication, inducement,
-# estoppel or otherwise. Any license under such intellectual property rights
-# must be express and approved by Intel in writing.
-# 
+# Copyright � 2002-2010, Intel Corporation.
+#
+# 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
+# AUTHORS OR COPYRIGHT HOLDERS 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.
 #----------------------------------------------------------------------------
 
 ifeq ($(origin EGD_CFG), undefined)
diff --git a/drivers/gpu/drm/emgd/pvr/services4/system/common/sysconfig.c b/drivers/gpu/drm/emgd/pvr/services4/system/common/sysconfig.c
index 5037186..4c9946c 100644
--- a/drivers/gpu/drm/emgd/pvr/services4/system/common/sysconfig.c
+++ b/drivers/gpu/drm/emgd/pvr/services4/system/common/sysconfig.c
@@ -1,35 +1,36 @@
 /* -*- syscommon-c -*-
-*-----------------------------------------------------------------------------
-* Filename: syscommon.c
-* $Revision: 1.6 $
-*-----------------------------------------------------------------------------
-* INTEL CONFIDENTIAL
-* Copyright 2010 Intel Corporation All Rights Reserved.
-* The source code contained or described herein and all documents related to
-* the source code ("Material") are owned by Intel Corporation or its suppliers
-* or licensors. Title to the Material remains with Intel Corporation or its
-* suppliers and licensors. The Material contains trade secrets and proprietary
-* and confidential information of Intel or its suppliers and licensors. The
-* Material is protected by worldwide copyright and trade secret laws and
-* treaty provisions. No part of the Material may be used, copied, reproduced,
-* modified, published, uploaded, posted, transmitted, distributed, or
-* disclosed in any way without Intel's prior express written permission.
-*
-* No license under any patent, copyright, trade secret or other intellectual
-* property right is granted to or conferred upon you by disclosure or
-* delivery of the Materials, either expressly, by implication, inducement,
-* estoppel or otherwise. Any license under such intellectual property rights
-* must be express and approved by Intel in writing.
-*
-*
-*-----------------------------------------------------------------------------
-* Description: platform detection, and sharing of correct platform interface.
-*
-*-----------------------------------------------------------------------------
-* Authors:
-*  Marcin Tomczyk
-*-----------------------------------------------------------------------------
-*/
+ *-----------------------------------------------------------------------------
+ * Filename: syscommon.c
+ * $Revision: 1.7 $
+ *-----------------------------------------------------------------------------
+ * Copyright � 2002-2010, Intel Corporation.
+ *
+ * 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
+ * AUTHORS OR COPYRIGHT HOLDERS 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.
+ *
+ *-----------------------------------------------------------------------------
+ * Description: platform detection, and sharing of correct platform interface.
+ *
+ *-----------------------------------------------------------------------------
+ * Authors:
+ *  Marcin Tomczyk
+ *-----------------------------------------------------------------------------
+ */
 
 #include <linux/pci.h>
 #include "sgxdefs.h"
@@ -124,7 +125,7 @@ IMG_VOID SysPlatformDetect(IMG_VOID)
 
 
 /* --------------------------------------------------------------------------*/
-/** 
+/**
 * @Synopsis  Interface for Atom E6xx device
 */
 /* ----------------------------------------------------------------------------*/
@@ -196,14 +197,14 @@ static PVRSRV_ERROR PCIInitDev(SYS_DATA *psSysData)
 #if defined(SGX_FEATURE_HOST_PORT)
 	PVR_TRACE(("Host Port region: %x to %x", OSPCIAddrRangeStart(psSysSpecData->hSGXPCI, HP_ADDR_RANGE_INDEX), OSPCIAddrRangeEnd(psSysSpecData->hSGXPCI, HP_ADDR_RANGE_INDEX)));
 #endif
-	
+
 	if (OSPCIAddrRangeLen(psSysSpecData->hSGXPCI, ADDR_RANGE_INDEX) < MAX_OFFSET)
 	{
 		PVR_DPF((PVR_DBG_ERROR,"PCIInitDev: Device memory region isn't big enough"));
 		return PVRSRV_ERROR_GENERIC;
 	}
 
-	
+
 	if (OSPCIRequestAddrRange(psSysSpecData->hSGXPCI, ADDR_RANGE_INDEX) != PVRSRV_OK)
 	{
 		PVR_DPF((PVR_DBG_ERROR,"PCIInitDev: Device memory region not available"));
@@ -211,7 +212,7 @@ static PVRSRV_ERROR PCIInitDev(SYS_DATA *psSysData)
 	}
 	 SYS_SPECIFIC_DATA_SET(psSysSpecData, SYS_SPECIFIC_DATA_PCI_REQUEST_SGX_ADDR_RANGE);
 
-	
+
 #if defined(SGX_FEATURE_HOST_PORT)
 	if (OSPCIRequestAddrRange(psSysSpecData->hSGXPCI, HP_ADDR_RANGE_INDEX) != PVRSRV_OK)
 	{
@@ -244,31 +245,31 @@ static IMG_VOID PCIDeInitDev(SYS_DATA *psSysData)
 		OSPCIReleaseDev(psSysSpecData->hSGXPCI);
 	}
 }
-#else	
+#else
 static PVRSRV_ERROR FindPCIDevice(IMG_UINT16 ui16VenID, IMG_UINT16 ui16DevID, PCICONFIG_SPACE *psPCISpace)
 {
 	IMG_UINT32 ui32BusNum;
 	IMG_UINT32 ui32DevNum;
 	IMG_UINT32 ui32VenDevID;
 
-	
+
 	for (ui32BusNum=0; ui32BusNum < 255; ui32BusNum++)
 	{
-		
+
 		for (ui32DevNum=0; ui32DevNum < 32; ui32DevNum++)
 		{
-			
+
 			ui32VenDevID=OSPCIReadDword(ui32BusNum, ui32DevNum, 0, 0);
 
-			
+
 			if (ui32VenDevID == (IMG_UINT32)((ui16DevID<<16)+ui16VenID))
 			{
 				IMG_UINT32 ui32Idx;
 
-				
+
 				OSPCIWriteDword(ui32BusNum, ui32DevNum, 0, 4, OSPCIReadDword(ui32BusNum, ui32DevNum, 0, 4) | 0x02);
 
-				
+
 				for (ui32Idx=0; ui32Idx < 64; ui32Idx++)
 				{
 					psPCISpace->u.aui32PCISpace[ui32Idx] = OSPCIReadDword(ui32BusNum, ui32DevNum, 0, ui32Idx*4);
@@ -289,7 +290,7 @@ static PVRSRV_ERROR FindPCIDevice(IMG_UINT16 ui16VenID, IMG_UINT16 ui16DevID, PC
 
 	return PVRSRV_ERROR_GENERIC;
 }
-#endif	
+#endif
 
 static PVRSRV_ERROR SysLocateDevices(SYS_DATA *psSysData)
 {
@@ -339,21 +340,21 @@ static PVRSRV_ERROR SysLocateDevices(SYS_DATA *psSysData)
 	}
 
 	ui32IRQ = (IMG_UINT32)sPCISpace.u.aui8PCISpace[0x3C];
-#endif	
+#endif
+
 
-	
 	gsSGXDeviceMap.ui32Flags = 0x0;
 
-	
+
 #if defined(NO_HARDWARE)
-	
+
 	gsSGXDeviceMap.ui32IRQ = 0;
 #else
 	gsSGXDeviceMap.ui32IRQ = ui32IRQ;
 #endif
 
 #if defined(NO_HARDWARE)
-	
+
 	eError = OSBaseAllocContigMemory(SGX_REG_SIZE,
 										&gsSGXRegsCPUVAddr,
 										&sCpuPAddr);
@@ -368,29 +369,29 @@ static PVRSRV_ERROR SysLocateDevices(SYS_DATA *psSysData)
 	OSMemSet(gsSGXRegsCPUVAddr, 0, SGX_REG_SIZE);
 
 #if defined(__linux__)
-	
+
 	gsSGXDeviceMap.pvRegsCpuVBase = gsSGXRegsCPUVAddr;
 #else
-	
+
 	gsSGXDeviceMap.pvRegsCpuVBase = IMG_NULL;
 #endif
 
-#else	
+#else
 	gsSGXDeviceMap.sRegsSysPBase.uiAddr = ui32BaseAddr + SGX_REGS_OFFSET;
-#endif	
+#endif
+
 
-	
 	gsSGXDeviceMap.sRegsCpuPBase = SysSysPAddrToCpuPAddr(gsSGXDeviceMap.sRegsSysPBase);
 	gsSGXDeviceMap.ui32RegsSize = SGX_REG_SIZE;
 
 #if defined(SGX_FEATURE_HOST_PORT)
-	
+
 	gsSGXDeviceMap.ui32Flags = SGX_HOSTPORT_PRESENT;
 	gsSGXDeviceMap.sHPSysPBase.uiAddr = ui32HostPortAddr;
 	gsSGXDeviceMap.sHPCpuPBase = SysSysPAddrToCpuPAddr(gsSGXDeviceMap.sHPSysPBase);
 	gsSGXDeviceMap.ui32HPSize = SYS_SGX_HP_SIZE;
 #endif
-	
+
 
 
 
@@ -400,7 +401,7 @@ static PVRSRV_ERROR SysLocateDevices(SYS_DATA *psSysData)
 	gsSGXDeviceMap.ui32LocalMemSize = 0;
 
 #if !defined(NO_HARDWARE)
-	
+
 	{
 		IMG_SYS_PHYADDR sPoulsboRegsCpuPBase;
 
@@ -421,10 +422,10 @@ static PVRSRV_ERROR SysLocateDevices(SYS_DATA *psSysData)
 #endif
 
 #ifdef SUPPORT_MSVDX
-	
+
 
 #if defined(NO_HARDWARE)
-	
+
 	eError = OSBaseAllocContigMemory(MSVDX_REG_SIZE,
 										&gsMSVDXRegsCPUVAddr,
 										&sCpuPAddr);
@@ -438,10 +439,10 @@ static PVRSRV_ERROR SysLocateDevices(SYS_DATA *psSysData)
 	OSMemSet(gsMSVDXRegsCPUVAddr, 0, MSVDX_REG_SIZE);
 
 #if defined(__linux__)
-	
+
 	gsMSVDXDeviceMap.pvRegsCpuVBase = gsMSVDXRegsCPUVAddr;
 #else
-	
+
 	gsMSVDXDeviceMap.pvRegsCpuVBase = IMG_NULL;
 #endif
 #else
@@ -450,7 +451,7 @@ static PVRSRV_ERROR SysLocateDevices(SYS_DATA *psSysData)
 	gsMSVDXDeviceMap.sRegsSysPBase		  = SysCpuPAddrToSysPAddr(gsMSVDXDeviceMap.sRegsCpuPBase);
 	gsMSVDXDeviceMap.ui32RegsSize		  = MSVDX_REG_SIZE;
 
-	
+
 
 
 
@@ -459,13 +460,13 @@ static PVRSRV_ERROR SysLocateDevices(SYS_DATA *psSysData)
 	gsMSVDXDeviceMap.sLocalMemCpuPBase.uiAddr = 0;
 	gsMSVDXDeviceMap.ui32LocalMemSize		  = 0;
 
-	
+
 
 	gsMSVDXDeviceMap.ui32IRQ = ui32IRQ;
 
-#endif 
+#endif
+
 
-	
 
 	return PVRSRV_OK;
 }
@@ -478,28 +479,28 @@ static PVRSRV_ERROR FindPCIDevice(IMG_UINT16 ui16VenID, IMG_UINT16 ui16DevID, PC
 	IMG_UINT32  ui32VenDevID;
 	IMG_UINT32	ui32BarIndex;
 
-	
+
 	for (ui32BusNum=0; ui32BusNum < 255; ui32BusNum++)
 	{
-		
+
 		for (ui32DevNum=0; ui32DevNum < 32; ui32DevNum++)
 		{
-			
+
 			ui32VenDevID=OSPCIReadDword(ui32BusNum, ui32DevNum, 0, 0);
 
-			
+
 			if (ui32VenDevID == (IMG_UINT32)((ui16DevID<<16)+ui16VenID))
 			{
 				IMG_UINT32 ui32Idx;
 
-				
+
 				OSPCIWriteDword(ui32BusNum, ui32DevNum, 0, 4, OSPCIReadDword(ui32BusNum, ui32DevNum, 0, 4) | 0x02);
 
-				psPCISpace->ui32BusNum  = ui32BusNum;	
+				psPCISpace->ui32BusNum  = ui32BusNum;
 				psPCISpace->ui32DevNum  = ui32DevNum;
 				psPCISpace->ui32FuncNum = 0;
 
-				
+
 				for (ui32Idx=0; ui32Idx < 64; ui32Idx++)
 				{
 					psPCISpace->u.aui32PCISpace[ui32Idx] = OSPCIReadDword(ui32BusNum, ui32DevNum, 0, ui32Idx*4);
@@ -509,7 +510,7 @@ static PVRSRV_ERROR FindPCIDevice(IMG_UINT16 ui16VenID, IMG_UINT16 ui16DevID, PC
 						PVR_DPF((PVR_DBG_VERBOSE,"%08X\n",psPCISpace->u.aui32PCISpace[ui32Idx]));
 					}
 				}
-						 										
+
 				for (ui32BarIndex = 0; ui32BarIndex < 6; ui32BarIndex++)
 				{
 					GetPCIMemSpaceSize (ui32BusNum, ui32DevNum, ui32BarIndex, &psPCISpace->aui32PCIMemSpaceSize[ui32BarIndex]);
@@ -557,7 +558,7 @@ static PVRSRV_ERROR SysCreateVersionString(SYS_DATA *psSysData)
     IMG_CHAR *pszVersionString;
 
 #if !defined(NO_HARDWARE)
-     
+
     {
 	IMG_VOID *pvSGXRegs;
 
@@ -571,8 +572,8 @@ static PVRSRV_ERROR SysCreateVersionString(SYS_DATA *psSysData)
             ui32SGXRevision = OSReadHWReg(pvSGXRegs, EUR_CR_CORE_REVISION);
 
 	     OSUnMapPhysToLin(pvSGXRegs,
-		   									 	gsSGXDeviceMap.ui32RegsSize,
-											 	PVRSRV_HAP_KERNEL_ONLY|PVRSRV_HAP_UNCACHED,
+												gsSGXDeviceMap.ui32RegsSize,
+												PVRSRV_HAP_KERNEL_ONLY|PVRSRV_HAP_UNCACHED,
 												IMG_NULL);
 	}
 	else
@@ -609,7 +610,7 @@ static PVRSRV_ERROR SysCreateVersionString(SYS_DATA *psSysData)
                     ui32MaxStrLen + 1,
                     pszVersionString,
                     IMG_NULL);
-		
+
 		return PVRSRV_ERROR_GENERIC;
     }
 
@@ -631,7 +632,7 @@ static IMG_VOID SysFreeVersionString(SYS_DATA *psSysData)
 		psSysData->pszVersionString = NULL;
     }
 }
-#endif 
+#endif
 PVRSRV_ERROR SysInitialise(IMG_VOID)
 {
 	IMG_UINT32			i;
@@ -642,14 +643,14 @@ PVRSRV_ERROR SysInitialise(IMG_VOID)
 	PVR_DPF((PVR_DBG_MESSAGE,"SysInitialise"));
 
 	SysPlatformDetect();
-	
+
 	gpsSysData = &gsSysData;
 	OSMemSet(gpsSysData, 0, sizeof(SYS_DATA));
 
 	gpsSysData->pvSysSpecificData = &gsSysSpecificData;
 	gsSysSpecificData.ui32SysSpecificData = 0;
 #ifdef	LDM_PCI
-	
+
 	PVR_ASSERT(gpsPVRLDMDev != IMG_NULL);
 	gsSysSpecificData.psPCIDev = gpsPVRLDMDev;
 #endif
@@ -663,15 +664,15 @@ PVRSRV_ERROR SysInitialise(IMG_VOID)
 		return eError;
 	}
 
-	
+
 	psTimingInfo = &gsSGXDeviceMap.sTimingInfo;
 	psTimingInfo->ui32CoreClockSpeed = SYS_SGX_CLOCK_SPEED;
 	psTimingInfo->ui32HWRecoveryFreq = SYS_SGX_HWRECOVERY_TIMEOUT_FREQ;
 #if defined(SUPPORT_ACTIVE_POWER_MANAGEMENT)
 	psTimingInfo->bEnableActivePM = IMG_TRUE;
-#else	
+#else
 	psTimingInfo->bEnableActivePM = IMG_FALSE;
-#endif 
+#endif
 	psTimingInfo->ui32ActivePowManLatencyms = SYS_SGX_ACTIVE_POWER_LATENCY_MS;
 	psTimingInfo->ui32uKernelFreq = SYS_SGX_PDS_TIMER_FREQ;
 
@@ -687,7 +688,7 @@ PVRSRV_ERROR SysInitialise(IMG_VOID)
 
 	gpsSysData->ui32NumDevices = SYS_DEVICE_COUNT;
 
-	
+
 	for(i=0; i<SYS_DEVICE_COUNT; i++)
 	{
 		gpsSysData->sDeviceID[i].uiID = i;
@@ -716,7 +717,7 @@ PVRSRV_ERROR SysInitialise(IMG_VOID)
 		return eError;
 	}
 
-	
+
 	eError = PVRSRVRegisterDevice(gpsSysData, SGXRegisterDevice,
 								  DEVICE_SGX_INTERRUPT, &gui32SGXDeviceID);
 	if (eError != PVRSRV_OK)
@@ -744,7 +745,7 @@ PVRSRV_ERROR SysInitialise(IMG_VOID)
 
 	while(psDeviceNode)
 	{
-		
+
 		switch(psDeviceNode->sDevId.eDeviceType)
 		{
 			case PVRSRV_DEVICE_TYPE_SGX:
@@ -752,19 +753,19 @@ PVRSRV_ERROR SysInitialise(IMG_VOID)
 				DEVICE_MEMORY_INFO *psDevMemoryInfo;
 				DEVICE_MEMORY_HEAP_INFO *psDeviceMemoryHeap;
 
-				
+
 				psDeviceNode->psLocalDevMemArena = IMG_NULL;
 
-				
+
 				psDevMemoryInfo = &psDeviceNode->sDevMemoryInfo;
 				psDeviceMemoryHeap = psDevMemoryInfo->psDeviceMemoryHeap;
 
-				
+
 				for(i=0; i<psDevMemoryInfo->ui32HeapCount; i++)
 				{
 					psDeviceMemoryHeap[i].ui32Attribs |= PVRSRV_BACKINGSTORE_SYSMEM_NONCONTIG;
 #ifdef OEM_CUSTOMISE
-					
+
 #endif
 				}
 
@@ -777,19 +778,19 @@ PVRSRV_ERROR SysInitialise(IMG_VOID)
 				DEVICE_MEMORY_INFO *psDevMemoryInfo;
 				DEVICE_MEMORY_HEAP_INFO *psDeviceMemoryHeap;
 
-				
+
 				psDeviceNode->psLocalDevMemArena = IMG_NULL;
 
-				
+
 				psDevMemoryInfo = &psDeviceNode->sDevMemoryInfo;
 				psDeviceMemoryHeap = psDevMemoryInfo->psDeviceMemoryHeap;
 
-				
+
 				for(i=0; i<psDevMemoryInfo->ui32HeapCount; i++)
 				{
 					psDeviceMemoryHeap[i].ui32Attribs |= PVRSRV_BACKINGSTORE_SYSMEM_NONCONTIG;
 #ifdef OEM_CUSTOMISE
-					
+
 #endif
 				}
 				break;
@@ -802,14 +803,14 @@ PVRSRV_ERROR SysInitialise(IMG_VOID)
 			}
 		}
 
-		
+
 		psDeviceNode = psDeviceNode->psNext;
 	}
 
 	PDUMPINIT();
 	SYS_SPECIFIC_DATA_SET(&gsSysSpecificData, SYS_SPECIFIC_DATA_PDUMP_INIT);
 
-	
+
 	eError = PVRSRVInitialiseDevice (gui32SGXDeviceID);
 	if (eError != PVRSRV_OK)
 	{
@@ -843,15 +844,15 @@ static IMG_VOID SysEnableInterrupts(SYS_DATA *psSysData)
 	IMG_UINT32 ui32Mask;
 
 	ui32Mask = THALIA_MASK | MSVDX_MASK;
-	
+
 	ui32RegData = OSReadHWReg(gsPoulsboRegsCPUVaddr, INTERRUPT_IDENTITY_REG);
 	OSWriteHWReg(gsPoulsboRegsCPUVaddr, INTERRUPT_IDENTITY_REG, ui32RegData | ui32Mask);
 
-	
+
 	ui32RegData = OSReadHWReg(gsPoulsboRegsCPUVaddr, INTERRUPT_MASK_REG);
 	OSWriteHWReg(gsPoulsboRegsCPUVaddr, INTERRUPT_MASK_REG, ui32RegData & (~ui32Mask));
 
-	
+
 	ui32RegData = OSReadHWReg(gsPoulsboRegsCPUVaddr, INTERRUPT_ENABLE_REG);
 	OSWriteHWReg(gsPoulsboRegsCPUVaddr, INTERRUPT_ENABLE_REG, ui32RegData | ui32Mask);
 
@@ -868,11 +869,11 @@ static IMG_VOID SysDisableInterrupts(SYS_DATA *psSysData)
 
 
 	ui32Mask = THALIA_MASK | MSVDX_MASK;
-	
+
 	ui32RegData = OSReadHWReg(gsPoulsboRegsCPUVaddr, INTERRUPT_ENABLE_REG);
 	OSWriteHWReg(gsPoulsboRegsCPUVaddr, INTERRUPT_ENABLE_REG, ui32RegData & (~ui32Mask));
 
-	
+
 	ui32RegData = OSReadHWReg(gsPoulsboRegsCPUVaddr, INTERRUPT_MASK_REG);
 	OSWriteHWReg(gsPoulsboRegsCPUVaddr, INTERRUPT_MASK_REG, ui32RegData | ui32Mask);
 
@@ -916,7 +917,7 @@ PVRSRV_ERROR SysFinalise(IMG_VOID)
 	SYS_SPECIFIC_DATA_SET(&gsSysSpecificData, SYS_SPECIFIC_DATA_IRQ_ENABLED);
 
 #ifdef	__linux__
-	
+
 	eError = SysCreateVersionString(gpsSysData);
 	if (eError != PVRSRV_OK)
 	{
@@ -963,7 +964,7 @@ PVRSRV_ERROR SysDeinitialise (SYS_DATA *psSysData)
 #if defined(SUPPORT_MSVDX)
 	if (SYS_SPECIFIC_DATA_TEST(psSysSpecData, SYS_SPECIFIC_DATA_MSVDX_INITIALISED))
 	{
-		
+
 		eError = PVRSRVDeinitialiseDevice(gui32MSVDXDeviceID);
 		if (eError != PVRSRV_OK)
 		{
@@ -975,7 +976,7 @@ PVRSRV_ERROR SysDeinitialise (SYS_DATA *psSysData)
 
 	if (SYS_SPECIFIC_DATA_TEST(psSysSpecData, SYS_SPECIFIC_DATA_SGX_INITIALISED))
 	{
-		
+
 		eError = PVRSRVDeinitialiseDevice(gui32SGXDeviceID);
 		if (eError != PVRSRV_OK)
 		{
@@ -1014,7 +1015,7 @@ PVRSRV_ERROR SysDeinitialise (SYS_DATA *psSysData)
 #endif
 
 #if !defined(NO_HARDWARE)
-	
+
 	OSUnMapPhysToLin(gsPoulsboRegsCPUVaddr,
 											 REG_SIZE,
 											 PVRSRV_HAP_KERNEL_ONLY|PVRSRV_HAP_UNCACHED,
@@ -1049,7 +1050,7 @@ IMG_UINT32 SysGetInterruptSource(SYS_DATA* psSysData,
 	PVR_UNREFERENCED_PARAMETER(psSysData);
 	PVR_UNREFERENCED_PARAMETER(psDeviceNode);
 
-	
+
 	ui32Data = OSReadHWReg(gsPoulsboRegsCPUVaddr, INTERRUPT_IDENTITY_REG);
 
 	if (ui32Data & THALIA_MASK)
@@ -1062,11 +1063,11 @@ IMG_UINT32 SysGetInterruptSource(SYS_DATA* psSysData,
 		ui32Devices |= DEVICE_MSVDX_INTERRUPT;
 	}
 
-	
+
 	ui32DIMMask = OSReadHWReg(gsPoulsboRegsCPUVaddr, INTERRUPT_ENABLE_REG);
 	ui32DIMMask &= ~(THALIA_MASK | MSVDX_MASK);
 
-	
+
 	if (ui32Data & ui32DIMMask)
 	{
 		ui32Devices |= DEVICE_DISP_INTERRUPT;
@@ -1123,14 +1124,14 @@ PVRSRV_ERROR SysGetDeviceMemoryMap(PVRSRV_DEVICE_TYPE eDeviceType,
 	{
 		case PVRSRV_DEVICE_TYPE_SGX:
 		{
-			
+
 			*ppvDeviceMap = (IMG_VOID*)&gsSGXDeviceMap;
 			break;
 		}
 #ifdef SUPPORT_MSVDX
 		case PVRSRV_DEVICE_TYPE_MSVDX:
 		{
-			
+
 			*ppvDeviceMap = (IMG_VOID*)&gsMSVDXDeviceMap;
 			break;
 		}
@@ -1151,7 +1152,7 @@ IMG_DEV_PHYADDR SysCpuPAddrToDevPAddr (PVRSRV_DEVICE_TYPE eDeviceType,
 
 	PVR_UNREFERENCED_PARAMETER(eDeviceType);
 
-	
+
 	DevPAddr.uiAddr = CpuPAddr.uiAddr;
 
 	return DevPAddr;
@@ -1162,7 +1163,7 @@ IMG_CPU_PHYADDR SysSysPAddrToCpuPAddr (IMG_SYS_PHYADDR sys_paddr)
 {
 	IMG_CPU_PHYADDR cpu_paddr;
 
-	
+
 	cpu_paddr.uiAddr = sys_paddr.uiAddr;
 	return cpu_paddr;
 }
@@ -1171,7 +1172,7 @@ IMG_SYS_PHYADDR SysCpuPAddrToSysPAddr (IMG_CPU_PHYADDR cpu_paddr)
 {
 	IMG_SYS_PHYADDR sys_paddr;
 
-	
+
 	sys_paddr.uiAddr = cpu_paddr.uiAddr;
 	return sys_paddr;
 }
@@ -1183,7 +1184,7 @@ IMG_DEV_PHYADDR SysSysPAddrToDevPAddr (PVRSRV_DEVICE_TYPE eDeviceType, IMG_SYS_P
 
 	PVR_UNREFERENCED_PARAMETER(eDeviceType);
 
-	
+
     DevPAddr.uiAddr = SysPAddr.uiAddr;
 
     return DevPAddr;
@@ -1196,7 +1197,7 @@ IMG_SYS_PHYADDR SysDevPAddrToSysPAddr (PVRSRV_DEVICE_TYPE eDeviceType, IMG_DEV_P
 
 	PVR_UNREFERENCED_PARAMETER(eDeviceType);
 
-    
+
     SysPAddr.uiAddr = DevPAddr.uiAddr;
 
     return SysPAddr;
@@ -1255,12 +1256,12 @@ static PVRSRV_ERROR SysMapInRegisters(IMG_VOID)
 		{
 			PVRSRV_SGXDEV_INFO *psDevInfo = (PVRSRV_SGXDEV_INFO *)psDeviceNodeList->pvDevice;
 #if defined(NO_HARDWARE) && defined(__linux__)
-			
+
 			PVR_ASSERT(gsSGXRegsCPUVAddr);
 
 			psDevInfo->pvRegsBaseKM = gsSGXRegsCPUVAddr;
-#else	
-			
+#else
+
 			if (SYS_SPECIFIC_DATA_TEST(&gsSysSpecificData, SYS_SPECIFIC_DATA_PM_UNMAP_SGX_REGS))
 			{
 				psDevInfo->pvRegsBaseKM = OSMapPhysToLin(gsSGXDeviceMap.sRegsCpuPBase,
@@ -1275,7 +1276,7 @@ static PVRSRV_ERROR SysMapInRegisters(IMG_VOID)
 				}
 				SYS_SPECIFIC_DATA_CLEAR(&gsSysSpecificData, SYS_SPECIFIC_DATA_PM_UNMAP_SGX_REGS);
 			}
-#endif	
+#endif
 
 			psDevInfo->ui32RegSize   = gsSGXDeviceMap.ui32RegsSize;
 			psDevInfo->sRegsPhysBase = gsSGXDeviceMap.sRegsSysPBase;
@@ -1285,7 +1286,7 @@ static PVRSRV_ERROR SysMapInRegisters(IMG_VOID)
 			{
 				if (SYS_SPECIFIC_DATA_TEST(&gsSysSpecificData, SYS_SPECIFIC_DATA_PM_UNMAP_SGX_HP))
 				{
-					
+
 					psDevInfo->pvHostPortBaseKM = OSMapPhysToLin(gsSGXDeviceMap.sHPCpuPBase,
 														     gsSGXDeviceMap.ui32HPSize,
 														     PVRSRV_HAP_KERNEL_ONLY|PVRSRV_HAP_UNCACHED,
@@ -1300,7 +1301,7 @@ static PVRSRV_ERROR SysMapInRegisters(IMG_VOID)
 				psDevInfo->ui32HPSize  = gsSGXDeviceMap.ui32HPSize;
 				psDevInfo->sHPSysPAddr = gsSGXDeviceMap.sHPSysPBase;
 			}
-#endif 
+#endif
 			break;
 		}
 #ifdef SUPPORT_MSVDX
@@ -1308,13 +1309,13 @@ static PVRSRV_ERROR SysMapInRegisters(IMG_VOID)
 		{
 			PVRSRV_MSVDXDEV_INFO *psDevInfo = (PVRSRV_MSVDXDEV_INFO *)psDeviceNodeList->pvDevice;
 #if defined(NO_HARDWARE) && defined(__linux__)
-			
+
 			PVR_ASSERT(gsMSVDXRegsCPUVAddr);
 			psDevInfo->pvRegsBaseKM = gsMSVDXRegsCPUVAddr;
-#else	
+#else
 			if (SYS_SPECIFIC_DATA_TEST(&gsSysSpecificData, SYS_SPECIFIC_DATA_PM_UNMAP_MSVDX_REGS))
 			{
-				
+
 				psDevInfo->pvRegsBaseKM = OSMapPhysToLin (
 					gsMSVDXDeviceMap.sRegsCpuPBase,
 					gsMSVDXDeviceMap.ui32RegsSize,
@@ -1327,12 +1328,12 @@ static PVRSRV_ERROR SysMapInRegisters(IMG_VOID)
 				}
 				SYS_SPECIFIC_DATA_CLEAR(&gsSysSpecificData, SYS_SPECIFIC_DATA_PM_UNMAP_MSVDX_REGS);
 			}
-#endif	
+#endif
 			psDevInfo->ui32RegSize = gsMSVDXDeviceMap.ui32RegsSize;
 			psDevInfo->sRegsPhysBase = gsMSVDXDeviceMap.sRegsSysPBase;
 			break;
 		}
-#endif	
+#endif
 		default:
 			break;
 		}
@@ -1357,7 +1358,7 @@ static PVRSRV_ERROR SysUnmapRegisters(IMG_VOID)
 		{
 			PVRSRV_SGXDEV_INFO *psDevInfo = (PVRSRV_SGXDEV_INFO *)psDeviceNodeList->pvDevice;
 #if !(defined(NO_HARDWARE) && defined(__linux__))
-			
+
 			if (psDevInfo->pvRegsBaseKM)
 			{
 				OSUnMapPhysToLin(psDevInfo->pvRegsBaseKM,
@@ -1367,7 +1368,7 @@ static PVRSRV_ERROR SysUnmapRegisters(IMG_VOID)
 
 				SYS_SPECIFIC_DATA_SET(&gsSysSpecificData, SYS_SPECIFIC_DATA_PM_UNMAP_SGX_REGS);
 			}
-#endif	
+#endif
 
 			psDevInfo->pvRegsBaseKM = IMG_NULL;
 			psDevInfo->ui32RegSize          = 0;
@@ -1376,7 +1377,7 @@ static PVRSRV_ERROR SysUnmapRegisters(IMG_VOID)
 #if defined(SGX_FEATURE_HOST_PORT)
 			if (gsSGXDeviceMap.ui32Flags & SGX_HOSTPORT_PRESENT)
 			{
-				
+
 				if (psDevInfo->pvHostPortBaseKM)
 				{
 					OSUnMapPhysToLin(psDevInfo->pvHostPortBaseKM,
@@ -1392,7 +1393,7 @@ static PVRSRV_ERROR SysUnmapRegisters(IMG_VOID)
 				psDevInfo->ui32HPSize  = 0;
 				psDevInfo->sHPSysPAddr.uiAddr = 0;
 			}
-#endif 
+#endif
 			break;
 		}
 #ifdef SUPPORT_MSVDX
@@ -1409,13 +1410,13 @@ static PVRSRV_ERROR SysUnmapRegisters(IMG_VOID)
 
 				SYS_SPECIFIC_DATA_SET(&gsSysSpecificData, SYS_SPECIFIC_DATA_PM_UNMAP_MSVDX_REGS);
 			}
-#endif	
+#endif
 			psDevInfo->pvRegsBaseKM = IMG_NULL;
 			psDevInfo->ui32RegSize = 0;
 			psDevInfo->sRegsPhysBase.uiAddr = 0;
 			break;
 		}
-#endif	
+#endif
 		default:
 			break;
 		}
@@ -1423,13 +1424,13 @@ static PVRSRV_ERROR SysUnmapRegisters(IMG_VOID)
 	}
 
 #if !(defined(NO_HARDWARE) || defined(__linux__))
-	
+
 	OSUnMapPhysToLin(gsPoulsboRegsCPUVaddr,
 				REG_SIZE,
 				PVRSRV_HAP_KERNEL_ONLY|PVRSRV_HAP_UNCACHED,
 				IMG_NULL);
 
-	
+
 #if defined(MAP_UNUSED_MAPPINGS)
 	OSUnMapPhysToLin(gsPoulsboDisplayRegsCPUVaddr,
 				DISPLAY_REG_SIZE,
@@ -1437,7 +1438,7 @@ static PVRSRV_ERROR SysUnmapRegisters(IMG_VOID)
 				IMG_NULL);
 #endif
 
-#endif	
+#endif
 
 #if defined(NO_HARDWARE)
 #ifdef SUPPORT_MSVDX
@@ -1462,7 +1463,7 @@ static PVRSRV_ERROR SysUnmapRegisters(IMG_VOID)
 
 		SYS_SPECIFIC_DATA_CLEAR(&gsSysSpecificData, SYS_SPECIFIC_DATA_ALLOC_DUMMY_SGX_REGS);
 	}
-#endif 
+#endif
 
 	return PVRSRV_OK;
 }
@@ -1477,7 +1478,7 @@ PVRSRV_ERROR SysSystemPrePowerState(PVRSRV_SYS_POWER_STATE eNewPowerState)
 		if ((eNewPowerState == PVRSRV_SYS_POWER_STATE_D3) &&
 			(gpsSysData->eCurrentPowerState < PVRSRV_SYS_POWER_STATE_D3))
 		{
-			
+
 			if (SYS_SPECIFIC_DATA_TEST(&gsSysSpecificData, SYS_SPECIFIC_DATA_IRQ_ENABLED))
 			{
 				SysDisableInterrupts(gpsSysData);
@@ -1497,9 +1498,9 @@ PVRSRV_ERROR SysSystemPrePowerState(PVRSRV_SYS_POWER_STATE eNewPowerState)
 				SYS_SPECIFIC_DATA_SET(&gsSysSpecificData, SYS_SPECIFIC_DATA_PM_UNINSTALL_LISR);
 				SYS_SPECIFIC_DATA_CLEAR(&gsSysSpecificData, SYS_SPECIFIC_DATA_LISR_INSTALLED);
 			}
-#endif 
+#endif
+
 
-			
 			SysUnmapRegisters();
 #ifdef	__linux__
 			eError = OSPCISuspendDev(gsSysSpecificData.hSGXPCI);
@@ -1530,7 +1531,7 @@ PVRSRV_ERROR SysSystemPostPowerState(PVRSRV_SYS_POWER_STATE eNewPowerState)
 				PVR_DPF((PVR_DBG_ERROR,"SysSystemPostPowerState: OSPCIResumeDev failed (%d)", eError));
 			}
 #endif
-			
+
 
 
 			eError = SysLocateDevices(gpsSysData);
@@ -1540,7 +1541,7 @@ PVRSRV_ERROR SysSystemPostPowerState(PVRSRV_SYS_POWER_STATE eNewPowerState)
 				return eError;
 			}
 
-			
+
 			eError = SysMapInRegisters();
 			if (eError != PVRSRV_OK)
 			{
@@ -1559,7 +1560,7 @@ PVRSRV_ERROR SysSystemPostPowerState(PVRSRV_SYS_POWER_STATE eNewPowerState)
 				SYS_SPECIFIC_DATA_SET(&gsSysSpecificData, SYS_SPECIFIC_DATA_LISR_INSTALLED);
 				SYS_SPECIFIC_DATA_CLEAR(&gsSysSpecificData, SYS_SPECIFIC_DATA_PM_UNINSTALL_LISR);
 			}
-#endif 
+#endif
 
 			if (SYS_SPECIFIC_DATA_TEST(&gsSysSpecificData, SYS_SPECIFIC_DATA_PM_IRQ_DISABLE))
 			{
@@ -1606,7 +1607,3 @@ PVRSRV_ERROR SysDevicePostPowerState(IMG_UINT32				ui32DeviceIndex,
 
 	return PVRSRV_OK;
 }
-
-
-
-
diff --git a/drivers/gpu/drm/emgd/pvr/services4/system/plb/sysconfig.c b/drivers/gpu/drm/emgd/pvr/services4/system/plb/sysconfig.c
index 0737aaf..63a1c96 100644
--- a/drivers/gpu/drm/emgd/pvr/services4/system/plb/sysconfig.c
+++ b/drivers/gpu/drm/emgd/pvr/services4/system/plb/sysconfig.c
@@ -1,35 +1,36 @@
 /* -*- syscommon-c -*-
-*-----------------------------------------------------------------------------
-* Filename: syscommon.c
-* $Revision: 1.2 $
-*-----------------------------------------------------------------------------
-* INTEL CONFIDENTIAL
-* Copyright 2010 Intel Corporation All Rights Reserved.
-* The source code contained or described herein and all documents related to
-* the source code ("Material") are owned by Intel Corporation or its suppliers
-* or licensors. Title to the Material remains with Intel Corporation or its
-* suppliers and licensors. The Material contains trade secrets and proprietary
-* and confidential information of Intel or its suppliers and licensors. The
-* Material is protected by worldwide copyright and trade secret laws and
-* treaty provisions. No part of the Material may be used, copied, reproduced,
-* modified, published, uploaded, posted, transmitted, distributed, or
-* disclosed in any way without Intel's prior express written permission.
-*
-* No license under any patent, copyright, trade secret or other intellectual
-* property right is granted to or conferred upon you by disclosure or
-* delivery of the Materials, either expressly, by implication, inducement,
-* estoppel or otherwise. Any license under such intellectual property rights
-* must be express and approved by Intel in writing.
-*
-*
-*-----------------------------------------------------------------------------
-* Description: platform detection, and sharing of correct platform interface.
-*
-*-----------------------------------------------------------------------------
-* Authors:
-*  Marcin Tomczyk
-*-----------------------------------------------------------------------------
-*/
+ *-----------------------------------------------------------------------------
+ * Filename: syscommon.c
+ * $Revision: 1.3 $
+ *-----------------------------------------------------------------------------
+ * Copyright � 2002-2010, Intel Corporation.
+ *
+ * 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
+ * AUTHORS OR COPYRIGHT HOLDERS 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.
+ *
+ *-----------------------------------------------------------------------------
+ * Description: platform detection, and sharing of correct platform interface.
+ *
+ *-----------------------------------------------------------------------------
+ * Authors:
+ *  Marcin Tomczyk
+ *-----------------------------------------------------------------------------
+ */
 
 #include "sysconfig.h"
 #include "sysplb.h"
@@ -47,4 +48,3 @@ SYS_PLATFORM_INTERFACE gpsSysPlatformInterfacePlb = {
 	SYS_SGX_CLOCK_SPEED_PLB,
 	SYS_SGX_ACTIVE_POWER_LATENCY_MS_PLB
 };
-
diff --git a/drivers/gpu/drm/emgd/pvr/services4/system/tnc/sysconfig.c b/drivers/gpu/drm/emgd/pvr/services4/system/tnc/sysconfig.c
index 5b94861..e4d9426 100644
--- a/drivers/gpu/drm/emgd/pvr/services4/system/tnc/sysconfig.c
+++ b/drivers/gpu/drm/emgd/pvr/services4/system/tnc/sysconfig.c
@@ -1,35 +1,36 @@
 /* -*- syscommon-c -*-
-*-----------------------------------------------------------------------------
-* Filename: syscommon.c
-* $Revision: 1.2 $
-*-----------------------------------------------------------------------------
-* INTEL CONFIDENTIAL
-* Copyright 2010 Intel Corporation All Rights Reserved.
-* The source code contained or described herein and all documents related to
-* the source code ("Material") are owned by Intel Corporation or its suppliers
-* or licensors. Title to the Material remains with Intel Corporation or its
-* suppliers and licensors. The Material contains trade secrets and proprietary
-* and confidential information of Intel or its suppliers and licensors. The
-* Material is protected by worldwide copyright and trade secret laws and
-* treaty provisions. No part of the Material may be used, copied, reproduced,
-* modified, published, uploaded, posted, transmitted, distributed, or
-* disclosed in any way without Intel's prior express written permission.
-*
-* No license under any patent, copyright, trade secret or other intellectual
-* property right is granted to or conferred upon you by disclosure or
-* delivery of the Materials, either expressly, by implication, inducement,
-* estoppel or otherwise. Any license under such intellectual property rights
-* must be express and approved by Intel in writing.
-*
-*
-*-----------------------------------------------------------------------------
-* Description: platform detection, and sharing of correct platform interface.
-*
-*-----------------------------------------------------------------------------
-* Authors:
-*  Marcin Tomczyk
-*-----------------------------------------------------------------------------
-*/
+ *-----------------------------------------------------------------------------
+ * Filename: syscommon.c
+ * $Revision: 1.3 $
+ *-----------------------------------------------------------------------------
+ * Copyright � 2002-2010, Intel Corporation.
+ *
+ * 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
+ * AUTHORS OR COPYRIGHT HOLDERS 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.
+ *
+ *-----------------------------------------------------------------------------
+ * Description: platform detection, and sharing of correct platform interface.
+ *
+ *-----------------------------------------------------------------------------
+ * Authors:
+ *  Marcin Tomczyk
+ *-----------------------------------------------------------------------------
+ */
 
 #include "sysconfig.h"
 #include "systnc.h"
@@ -47,4 +48,3 @@ SYS_PLATFORM_INTERFACE gpsSysPlatformInterfaceTnc = {
 	SYS_SGX_CLOCK_SPEED_TNC,
 	SYS_SGX_ACTIVE_POWER_LATENCY_MS_TNC
 };
-
diff --git a/drivers/gpu/drm/emgd/pvr/services4/system/tnc/systnc.h b/drivers/gpu/drm/emgd/pvr/services4/system/tnc/systnc.h
index 3f26d4c..7d5c2d6 100644
--- a/drivers/gpu/drm/emgd/pvr/services4/system/tnc/systnc.h
+++ b/drivers/gpu/drm/emgd/pvr/services4/system/tnc/systnc.h
@@ -1,40 +1,32 @@
 /**********************************************************************
- *
- * Copyright(c) 2008 Imagination Technologies Ltd. All rights reserved.
- * 
- * This program is free software; you can redistribute it and/or modify it
- * under the terms and conditions of the GNU General Public License,
- * version 2, as published by the Free Software Foundation.
- * 
- * This program is distributed in the hope it will be useful but, except 
- * as otherwise stated in writing, without any warranty; without even the 
- * implied warranty of merchantability or fitness for a particular purpose. 
- * See the GNU General Public License for more details.
- * 
- * You should have received a copy of the GNU General Public License along with
- * this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
- * 
- * The full GNU General Public License is included in this distribution in
- * the file called "COPYING".
- *
- * Contact Information:
- * Imagination Technologies Ltd. <gpl-support@imgtec.com>
- * Home Park Estate, Kings Langley, Herts, WD4 8LZ, UK 
- *
+ Copyright (c) Imagination Technologies Ltd.
+
+ 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
+ AUTHORS OR COPYRIGHT HOLDERS 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.
  ******************************************************************************/
-/* INTEL CONFIDENTIAL
- * Copyright 2010 Intel Corporation All Rights Reserved.
- */
 
 #ifndef _SYSTNC_H
 #define _SYSTNC_H
 
-#define SYS_SGX_DEV_DEVICE_ID_TNC	0x4108	
+#define SYS_SGX_DEV_DEVICE_ID_TNC	0x4108
 #define VS_PRODUCT_NAME_TNC     	"SGX Atom E6xx"
 #define SGX_REGS_OFFSET_TNC     	0x80000
 #define MSVDX_REGS_OFFSET_TNC   	0x90000
 #define SYS_SGX_CLOCK_SPEED_TNC                     (400000000)
 #define SYS_SGX_ACTIVE_POWER_LATENCY_MS_TNC         (50)
 #endif
-
-- 
1.7.0.4