/[VMELinux]/driver/ca91c042.c
ViewVC logotype

Diff of /driver/ca91c042.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by jhuggins, Wed Oct 24 17:29:01 2001 UTC revision 1.5 by jhuggins, Sat Oct 27 03:50:07 2001 UTC
# Line 16  Line 16 
16  // RCS:  // RCS:
17  // $Id$  // $Id$
18  // $Log$  // $Log$
19  // Revision 1.4  2001/10/24 17:29:01  jhuggins  // Revision 1.5  2001/10/27 03:50:07  jhuggins
20  // This version works with 2.4.x kernels with backward compatibility with 2.2.x.  This will not work with 2.0.x kernels.  // These changes add support for the extra images offered by the Universe II.
21  // CV: ----------------------------------------------------------------------  // CVS : ----------------------------------------------------------------------
22  //  //
23  // Revision 1.6  2001/10/16 15:16:53  wyrick  // Revision 1.6  2001/10/16 15:16:53  wyrick
24  // Minor Cleanup of Comments  // Minor Cleanup of Comments
# Line 27  Line 27 
27  //-----------------------------------------------------------------------------  //-----------------------------------------------------------------------------
28  #define MODULE  #define MODULE
29    
30  static char Version[] = "1.1 2001Oct16";  static char Version[] = "1.2 2001Oct17";
31    
32  #include <linux/config.h>  #include <linux/config.h>
33  #include <linux/version.h>  #include <linux/version.h>
# Line 78  static struct file_operations uni_fops = Line 78  static struct file_operations uni_fops =
78    release:  uni_release    release:  uni_release
79  };  };
80    
81  static int aCTL[] = {LSI0_CTL, LSI1_CTL, LSI2_CTL, LSI3_CTL};  static int aCTL[] = {LSI0_CTL, LSI1_CTL, LSI2_CTL, LSI3_CTL,
82  static int aBS[]  = {LSI0_BS,  LSI1_BS,  LSI2_BS,  LSI3_BS};                       LSI4_CTL, LSI5_CTL, LSI6_CTL, LSI7_CTL};
83  static int aBD[]  = {LSI0_BD,  LSI1_BD,  LSI2_BD,  LSI3_BD};  
84  static int aTO[]  = {LSI0_TO,  LSI1_TO,  LSI2_TO,  LSI3_TO};  static int aBS[]  = {LSI0_BS,  LSI1_BS,  LSI2_BS,  LSI3_BS,
85                         LSI4_BS,  LSI5_BS,  LSI6_BS,  LSI7_BS};
86    
87    static int aBD[]  = {LSI0_BD,  LSI1_BD,  LSI2_BD,  LSI3_BD,
88                         LSI4_BD,  LSI5_BD,  LSI6_BD,  LSI7_BD};
89    
90    static int aTO[]  = {LSI0_TO,  LSI1_TO,  LSI2_TO,  LSI3_TO,
91                         LSI4_TO,  LSI5_TO,  LSI6_TO,  LSI7_TO};
92    
93  //----------------------------------------------------------------------------  //----------------------------------------------------------------------------
94  // Vars and Defines  // Vars and Defines
# Line 146  static int uni_procinfo(char *buf, char Line 153  static int uni_procinfo(char *buf, char
153    p += sprintf(p,"  Stats  reads = %i  writes = %i  ioctls = %i\n",    p += sprintf(p,"  Stats  reads = %i  writes = %i  ioctls = %i\n",
154                   reads,writes,ioctls);                   reads,writes,ioctls);
155    
156    for (x=0;x<4;x+=2) {    for (x=0;x<8;x+=2) {
157      temp1 = readl(baseaddr+aCTL[x]);      temp1 = readl(baseaddr+aCTL[x]);
158      temp2 = readl(baseaddr+aCTL[x+1]);      temp2 = readl(baseaddr+aCTL[x+1]);
159      p += sprintf(p,"  LSI%i_CTL = %08X    LSI%i_CTL = %08X\n",x,temp1,x+1,temp2);      p += sprintf(p,"  LSI%i_CTL = %08X    LSI%i_CTL = %08X\n",x,temp1,x+1,temp2);
# Line 161  static int uni_procinfo(char *buf, char Line 168  static int uni_procinfo(char *buf, char
168      p += sprintf(p,"  LSI%i_TO  = %08X    LSI%i_TO  = %08X\n",x,temp1,x+1,temp2);      p += sprintf(p,"  LSI%i_TO  = %08X    LSI%i_TO  = %08X\n",x,temp1,x+1,temp2);
169    }    }
170    
171    for (x=0;x<3;x+=2)    for (x=0;x<8;x+=2)
172      p += sprintf(p,"  image_va%i   = %08X     image_va%i   = %08X\n",      p += sprintf(p,"  image_va%i   = %08X     image_va%i   = %08X\n",
173                   x,image_va[x],x+1,image_va[x+1]);                   x,image_va[x],x+1,image_va[x+1]);
174    p += sprintf(p,"\nDriver Program Status:\n");    p += sprintf(p,"\nDriver Program Status:\n");
175    
176    for (x=0;x<3;x+=2)    for (x=0;x<8;x+=2)
177      p += sprintf(p,"  DMACTL %i    = %08lX DMACTL %i    = %08lX\n",      p += sprintf(p,"  DMACTL %i    = %08lX DMACTL %i    = %08lX\n",
178                   x,DMA[x],x+1,DMA[x+1]);                   x,DMA[x],x+1,DMA[x+1]);
179    for (x=0;x<3;x+=2)    for (x=0;x<8;x+=2)
180      p += sprintf(p,"  OkToWrite %i = %1X        OkToWrite %i = %1X\n",      p += sprintf(p,"  OkToWrite %i = %1X        OkToWrite %i = %1X\n",
181                   x,OkToWrite[x],x+1,OkToWrite[x+1]);                   x,OkToWrite[x],x+1,OkToWrite[x+1]);
182    for (x=0;x<3;x+=2)    for (x=0;x<8;x+=2)
183      p += sprintf(p,"  Mode %i      = %1X        Mode %i      = %1X\n",      p += sprintf(p,"  Mode %i      = %1X        Mode %i      = %1X\n",
184                   x,mode[x],x+1,mode[x+1]);                   x,mode[x],x+1,mode[x+1]);
185    

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.2-dev