CVS commit: xsrc/external/mit/xf86-video-ati/dist/src/AtomBios

2019-01-03 Thread matthew green
Module Name:xsrc
Committed By:   mrg
Date:   Fri Jan  4 00:09:11 UTC 2019

Modified Files:
xsrc/external/mit/xf86-video-ati/dist/src/AtomBios: CD_Operations.c

Log Message:
redo previous slightly: restore packed attribute.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 \
xsrc/external/mit/xf86-video-ati/dist/src/AtomBios/CD_Operations.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/xf86-video-ati/dist/src/AtomBios/CD_Operations.c
diff -u xsrc/external/mit/xf86-video-ati/dist/src/AtomBios/CD_Operations.c:1.7 xsrc/external/mit/xf86-video-ati/dist/src/AtomBios/CD_Operations.c:1.8
--- xsrc/external/mit/xf86-video-ati/dist/src/AtomBios/CD_Operations.c:1.7	Wed Jan  2 18:51:58 2019
+++ xsrc/external/mit/xf86-video-ati/dist/src/AtomBios/CD_Operations.c	Fri Jan  4 00:09:11 2019
@@ -215,8 +215,10 @@ VOID IndirectIOCommand_CLEAR(PARSER_TEMP
 pParserTempData->IndirectData &= ~((0x >> (32-pParserTempData->IndirectIOTablePointer[1])) << pParserTempData->IndirectIOTablePointer[2]);
 }
 
-/* Avoid conflicts with older versions of compiler.h */
+/* from xorg-server 1.18 compiler.h */
+struct local__una_u32 { uint32_t x __attribute__((packed)); };
 
+/* Avoid conflicts with older versions of compiler.h */
 #define ldw_u xldw_u
 #define ldl_u xldl_u
 #define stl_u xstl_u
@@ -224,20 +226,21 @@ VOID IndirectIOCommand_CLEAR(PARSER_TEMP
 static __inline__ uint16_t ldw_u(uint16_t *p)
 {
 	uint16_t ret;
-	memmove(, p, sizeof(ret));
+	memmove(, p, sizeof(*p));
 	return ret;
 }
 
 static __inline__ uint32_t ldl_u(uint32_t *p)
 {
 	uint32_t ret;
-	memmove(, p, sizeof(ret));
+	memmove(, p, sizeof(*p));
 	return ret;
 }
 
 static __inline__ void stl_u(uint32_t val, uint32_t *p)
 {
-	memmove(p, , sizeof(*p));
+	struct local__una_u32 *ptr = (struct local__una_u32 *) p;
+	ptr->x = val;
 }
 
 UINT32 IndirectInputOutput(PARSER_TEMP_DATA STACK_BASED * pParserTempData)



CVS commit: xsrc/external/mit/xf86-video-ati/dist/src/AtomBios

2019-01-02 Thread Christos Zoulas
Module Name:xsrc
Committed By:   christos
Date:   Wed Jan  2 18:51:58 UTC 2019

Modified Files:
xsrc/external/mit/xf86-video-ati/dist/src/AtomBios: CD_Operations.c

Log Message:
make this work with both the old and the new version of compiler.h


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 \
xsrc/external/mit/xf86-video-ati/dist/src/AtomBios/CD_Operations.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/xf86-video-ati/dist/src/AtomBios/CD_Operations.c
diff -u xsrc/external/mit/xf86-video-ati/dist/src/AtomBios/CD_Operations.c:1.6 xsrc/external/mit/xf86-video-ati/dist/src/AtomBios/CD_Operations.c:1.7
--- xsrc/external/mit/xf86-video-ati/dist/src/AtomBios/CD_Operations.c:1.6	Wed Jan  2 10:54:24 2019
+++ xsrc/external/mit/xf86-video-ati/dist/src/AtomBios/CD_Operations.c	Wed Jan  2 13:51:58 2019
@@ -215,28 +215,29 @@ VOID IndirectIOCommand_CLEAR(PARSER_TEMP
 pParserTempData->IndirectData &= ~((0x >> (32-pParserTempData->IndirectIOTablePointer[1])) << pParserTempData->IndirectIOTablePointer[2]);
 }
 
-/* from xorg-server 1.18 compiler.h */
-struct __una_u64 { uint64_t x __attribute__((packed)); };
-struct __una_u32 { uint32_t x __attribute__((packed)); };
+/* Avoid conflicts with older versions of compiler.h */
+
+#define ldw_u xldw_u
+#define ldl_u xldl_u
+#define stl_u xstl_u
 
 static __inline__ uint16_t ldw_u(uint16_t *p)
 {
 	uint16_t ret;
-	memmove(, p, sizeof(*p));
+	memmove(, p, sizeof(ret));
 	return ret;
 }
 
 static __inline__ uint32_t ldl_u(uint32_t *p)
 {
 	uint32_t ret;
-	memmove(, p, sizeof(*p));
+	memmove(, p, sizeof(ret));
 	return ret;
 }
 
 static __inline__ void stl_u(uint32_t val, uint32_t *p)
 {
-	struct __una_u32 *ptr = (struct __una_u32 *) p;
-	ptr->x = val;
+	memmove(p, , sizeof(*p));
 }
 
 UINT32 IndirectInputOutput(PARSER_TEMP_DATA STACK_BASED * pParserTempData)



CVS commit: xsrc/external/mit/xf86-video-ati/dist/src/AtomBios

2019-01-02 Thread Christos Zoulas
Module Name:xsrc
Committed By:   christos
Date:   Wed Jan  2 15:54:24 UTC 2019

Modified Files:
xsrc/external/mit/xf86-video-ati/dist/src/AtomBios: CD_Operations.c

Log Message:
put back compatibility code for now; needed for sparc (from martin@)


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 \
xsrc/external/mit/xf86-video-ati/dist/src/AtomBios/CD_Operations.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/xf86-video-ati/dist/src/AtomBios/CD_Operations.c
diff -u xsrc/external/mit/xf86-video-ati/dist/src/AtomBios/CD_Operations.c:1.5 xsrc/external/mit/xf86-video-ati/dist/src/AtomBios/CD_Operations.c:1.6
--- xsrc/external/mit/xf86-video-ati/dist/src/AtomBios/CD_Operations.c:1.5	Tue Jan  1 21:58:48 2019
+++ xsrc/external/mit/xf86-video-ati/dist/src/AtomBios/CD_Operations.c	Wed Jan  2 10:54:24 2019
@@ -215,6 +215,30 @@ VOID IndirectIOCommand_CLEAR(PARSER_TEMP
 pParserTempData->IndirectData &= ~((0x >> (32-pParserTempData->IndirectIOTablePointer[1])) << pParserTempData->IndirectIOTablePointer[2]);
 }
 
+/* from xorg-server 1.18 compiler.h */
+struct __una_u64 { uint64_t x __attribute__((packed)); };
+struct __una_u32 { uint32_t x __attribute__((packed)); };
+
+static __inline__ uint16_t ldw_u(uint16_t *p)
+{
+	uint16_t ret;
+	memmove(, p, sizeof(*p));
+	return ret;
+}
+
+static __inline__ uint32_t ldl_u(uint32_t *p)
+{
+	uint32_t ret;
+	memmove(, p, sizeof(*p));
+	return ret;
+}
+
+static __inline__ void stl_u(uint32_t val, uint32_t *p)
+{
+	struct __una_u32 *ptr = (struct __una_u32 *) p;
+	ptr->x = val;
+}
+
 UINT32 IndirectInputOutput(PARSER_TEMP_DATA STACK_BASED * pParserTempData)
 {
 // if ((pParserTempData->IndirectData & 0x7f)==INDIRECT_IO_MM) pParserTempData->IndirectData|=pParserTempData->CurrentPortID;



CVS commit: xsrc/external/mit/xf86-video-ati/dist/src/AtomBios

2019-01-01 Thread Christos Zoulas
Module Name:xsrc
Committed By:   christos
Date:   Wed Jan  2 02:58:48 UTC 2019

Modified Files:
xsrc/external/mit/xf86-video-ati/dist/src/AtomBios: CD_Operations.c

Log Message:
Remove compatibility code.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 \
xsrc/external/mit/xf86-video-ati/dist/src/AtomBios/CD_Operations.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/xf86-video-ati/dist/src/AtomBios/CD_Operations.c
diff -u xsrc/external/mit/xf86-video-ati/dist/src/AtomBios/CD_Operations.c:1.4 xsrc/external/mit/xf86-video-ati/dist/src/AtomBios/CD_Operations.c:1.5
--- xsrc/external/mit/xf86-video-ati/dist/src/AtomBios/CD_Operations.c:1.4	Mon Dec 31 19:34:52 2018
+++ xsrc/external/mit/xf86-video-ati/dist/src/AtomBios/CD_Operations.c	Tue Jan  1 21:58:48 2019
@@ -215,30 +215,6 @@ VOID IndirectIOCommand_CLEAR(PARSER_TEMP
 pParserTempData->IndirectData &= ~((0x >> (32-pParserTempData->IndirectIOTablePointer[1])) << pParserTempData->IndirectIOTablePointer[2]);
 }
 
-/* from xorg-server 1.18 compiler.h */
-struct __una_u64 { uint64_t x __attribute__((packed)); };
-struct __una_u32 { uint32_t x __attribute__((packed)); };
-
-static __inline__ uint16_t ldw_u(uint16_t *p)
-{
-	uint16_t ret;
-	memmove(, p, sizeof(*p));
-	return ret;
-}
-
-static __inline__ uint32_t ldl_u(uint32_t *p)
-{
-	uint32_t ret;
-	memmove(, p, sizeof(*p));
-	return ret;
-}
-
-static __inline__ void stl_u(uint32_t val, uint32_t *p)
-{
-	struct __una_u32 *ptr = (struct __una_u32 *) p;
-	ptr->x = val;
-}
-
 UINT32 IndirectInputOutput(PARSER_TEMP_DATA STACK_BASED * pParserTempData)
 {
 // if ((pParserTempData->IndirectData & 0x7f)==INDIRECT_IO_MM) pParserTempData->IndirectData|=pParserTempData->CurrentPortID;



CVS commit: xsrc/external/mit/xf86-video-ati/dist/src/AtomBios

2010-08-09 Thread matthew green
Module Name:xsrc
Committed By:   mrg
Date:   Tue Aug 10 02:57:44 UTC 2010

Modified Files:
xsrc/external/mit/xf86-video-ati/dist/src/AtomBios: CD_Operations.c

Log Message:
pull across a patch from git 11005146d6defa876a988daad587ae558f04ecbb:

From: Alex Deucher alexdeuc...@gmail.com
Date: Tue, 10 Aug 2010 02:18:53 +
Subject: atom: upstream parser update

fixes digital output problems on evergreen asics


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.3 -r1.2 \
xsrc/external/mit/xf86-video-ati/dist/src/AtomBios/CD_Operations.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/xf86-video-ati/dist/src/AtomBios/CD_Operations.c
diff -u xsrc/external/mit/xf86-video-ati/dist/src/AtomBios/CD_Operations.c:1.1.1.3 xsrc/external/mit/xf86-video-ati/dist/src/AtomBios/CD_Operations.c:1.2
--- xsrc/external/mit/xf86-video-ati/dist/src/AtomBios/CD_Operations.c:1.1.1.3	Sun May 23 06:09:26 2010
+++ xsrc/external/mit/xf86-video-ati/dist/src/AtomBios/CD_Operations.c	Tue Aug 10 02:57:44 2010
@@ -505,13 +505,16 @@
 
 VOID ProcessMask(PARSER_TEMP_DATA STACK_BASED * pParserTempData)
 {
+UINT8 src;
 
 pParserTempData-DestData32=GetDestination[pParserTempData-ParametersType.Destination](pParserTempData);
+src = pParserTempData-CD_Mask.SrcAlignment;
 pParserTempData-SourceData32=GetParametersDirect(pParserTempData);
 pParserTempData-Index=GetSource[pParserTempData-ParametersType.Source](pParserTempData);
 pParserTempData-SourceData32 = DestinationAlignmentShift[pParserTempData-CD_Mask.DestAlignment];
 pParserTempData-SourceData32 |= ~(AlignmentMask[pParserTempData-CD_Mask.SrcAlignment]  DestinationAlignmentShift[pParserTempData-CD_Mask.DestAlignment]);
 pParserTempData-DestData32   = pParserTempData-SourceData32;
+pParserTempData-Index= SourceAlignmentShift[src];
 pParserTempData-Index= AlignmentMask[pParserTempData-CD_Mask.SrcAlignment];
 pParserTempData-Index= DestinationAlignmentShift[pParserTempData-CD_Mask.DestAlignment];
 pParserTempData-DestData32   |= pParserTempData-Index;