summaryrefslogtreecommitdiff
blob: e96b1727a2295c97f6cea86e68a2be79ce15070e (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
--- xf86-video-tdfx-1.2.1/src/tdfx_priv.c.getsecs	2006-04-04 08:06:58.000000000 -0400
+++ xf86-video-tdfx-1.2.1/src/tdfx_priv.c	2006-06-07 13:36:32.000000000 -0400
@@ -114,16 +114,16 @@
   /* Toggle the reset bits */
   oldValue=TDFXReadLongMMIO(pTDFX, MISCINIT0);
   TDFXWriteLongMMIO(pTDFX, MISCINIT0, oldValue|0x23);
-  getsecs(&start_sec, &dummy);
+  xf86getsecs(&start_sec, &dummy);
   do {
-    getsecs(&end_sec, &dummy);
+    xf86getsecs(&end_sec, &dummy);
   } while (end_sec-start_sec<2);
   TDFXWriteLongMMIO(pTDFX, MISCINIT0, oldValue);
   oldValue=TDFXReadLongMMIO(pTDFX, MISCINIT1);
   TDFXWriteLongMMIO(pTDFX, MISCINIT1, oldValue|BIT(19));
-  getsecs(&start_sec, &dummy);
+  xf86getsecs(&start_sec, &dummy);
   do {
-    getsecs(&end_sec, &dummy);
+    xf86getsecs(&end_sec, &dummy);
   } while (end_sec-start_sec<2);
   TDFXWriteLongMMIO(pTDFX, MISCINIT1, oldValue);
   InstallFifo(pScrn);
@@ -158,9 +158,9 @@
     cnt++;
     if (cnt==1000) {
       if (!start_sec) {
-	getsecs(&start_sec, &dummy);
+	xf86getsecs(&start_sec, &dummy);
       } else {
-	getsecs(&end_sec, &dummy);
+	xf86getsecs(&end_sec, &dummy);
 	if (end_sec-start_sec>3) {
 	  dummy=TDFXReadLongMMIO(pTDFX, SST_FIFO_RDPTRL0);
 	  if (dummy==readptr) {