Changeset 430

Show
Ignore:
Timestamp:
04/28/99 20:18:12 (10 years ago)
Author:
frodo
Message:

Geert's PPC support and Hydra driver

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • lm-sensors/trunk/CHANGES

    r415 r430  
    1313    for example: 
    1414      cvs diff -r V2-0-0 -r V2-0-1 -u 
     15 
     162.3.1 (199904??) 
     17  All: Now compiles on PPC 
     18  Module i2c-hydra: NEW 
    1519 
    16202.3.0 (19990422) 
  • lm-sensors/trunk/CONTRIBUTORS

    r380 r430  
    2525* Mark D. Studebaker <mds@eng.paradyne.com> 
    2626  Author of the i2c-ali15x3 driver, as well as other drivers. 
     27* Geert Uytterhoeven <geert@linux-m68k.org> 
     28  Author of the i2c-hydra driver. 
    2729* Adrian Baugh <adrian.baugh@keble.ox.ac.uk> 
    2830  Author of wmsensors (get it at http://users.ox.ac.uk/~kebl0850/wmlm78); 
  • lm-sensors/trunk/INSTALL

    r421 r430  
    170170not installed. doc/progs contains some documentation for each of them. 
    171171Most important are prog/mkdev/mkdev.sh, which creates /dev/i2c-* files, 
    172 and prog/detect/dectect.pl, which tries to detect what adapters are 
     172and prog/detect/detect.pl, which tries to detect what adapters are 
    173173present on your system. 
  • lm-sensors/trunk/TODO

    r429 r430  
    44============== 
    55 
     6* `modprobe w83781d force_w38781d=0,0x49' let to strange beeping on Frodo's 
     7   computer. Why? 
    68* Increase use count of adapter driver if directory of chip is entered 
    79* maxilife.c: Introduce new insmod variables 
  • lm-sensors/trunk/doc/developers/design

    r414 r430  
    184184 
    185185This is Simon Vogl's i2c module (this one is different from the i2c module 
    186 included in kernels around 1.2.120!).  
     186included in kernels around 2.1.120!).  
    187187 
    188188A driver 
  • lm-sensors/trunk/i2c/MODIFICATIONS

    r399 r430  
    4949  Everywhere, remakeable files are removed, to keep the source distribution 
    5050  small and lean. 
     51 
     52* algo-bit.h: Removed comment typo (Geert) 
     53 
     54* bit-lp.c: Added #include <linux/stddef> (Geert) 
     55 
     56* i2c.h: Added HW_B_HYDRA, removed two comment typos (Geert) 
  • lm-sensors/trunk/i2c/algo-bit.h

    r387 r430  
    1212        char name[32];          /* give it a nice name                  */ 
    1313        unsigned int id;        /* not used yet, maybe later            */ 
    14         void *data;             /* private data for lolevel routines  */ 
     14        void *data;             /* private data for lowlevel routines */ 
    1515        void (*setsda) (void *data, int state); 
    1616        void (*setscl) (void *data, int state); 
  • lm-sensors/trunk/i2c/bit-lp.c

    r347 r430  
    2525#include <linux/module.h> 
    2626#include <asm/io.h> 
     27#include <linux/stddef.h> 
    2728 
    2829#include "i2c.h" 
  • lm-sensors/trunk/i2c/i2c.h

    r399 r430  
    340340#define HW_B_WNV        0x06    /* Winnov Videums                       */ 
    341341#define HW_B_VIA        0x07    /* Via vt82c586b                        */ 
     342#define HW_B_HYDRA      0x08    /* Apple Hydra Mac I/O                  */ 
    342343 
    343344/* --- PCF 8584 based algorithms                                        */ 
    344345#define HW_P_LP         0x00    /* Parallel port interface              */ 
    345 #define HW_P_ISA        0x01    /* generic ISA Bus inteface card      */ 
    346 #define HW_P_ELEK       0x02    /* Elektor ISA Bus inteface card      */ 
     346#define HW_P_ISA        0x01    /* generic ISA Bus interface card     */ 
     347#define HW_P_ELEK       0x02    /* Elektor ISA Bus interface card     */ 
    347348 
    348349 
  • lm-sensors/trunk/kernel/busses/Module.mk

    r211 r430  
    2424# defined value verbatim into the command-list of rules... 
    2525KERNELBUSSESTARGETS := $(MODULE_DIR)/i2c-piix4.o $(MODULE_DIR)/i2c-isa.o \ 
    26                        $(MODULE_DIR)/i2c-via.o $(MODULE_DIR)/i2c-ali15x3.o 
     26                       $(MODULE_DIR)/i2c-via.o $(MODULE_DIR)/i2c-ali15x3.o \ 
     27                       $(MODULE_DIR)/i2c-hydra.o 
    2728 
    2829KERNELBUSSESOLD := bit-via.o bit-mb.o isa.o piix4.o 
  • lm-sensors/trunk/kernel/smbus.c

    r396 r430  
    2222#include <linux/kernel.h> 
    2323#include <linux/stddef.h> 
     24#include <asm/system.h> 
    2425 
    2526#include "i2c.h" 
  • lm-sensors/trunk/prog/detect/sensors-detect

    r410 r430  
    7979       match => sub { $_[0] =~ /^SMBus ALI15X3 adapter at [0-9,a-f]{4}/ }, 
    8080     } 
     81     {  
     82       vendid => 0x106b, 
     83       devid  => 0x000e, 
     84       func => 0, 
     85       procid => "Apple Computer Inc. Hydra Mac I/O", 
     86       driver => "i2c-hydra", 
     87       match => sub { $_[0] =~ /^Hydra i2c/ }, 
     88     }, 
    8189); 
    8290 
  • lm-sensors/trunk/prog/dump/isadump.c

    r168 r430  
    2323#include <asm/io.h> 
    2424 
     25 
    2526/* To keep glibc2 happy */ 
    26 #ifdef __GLIBC__ 
     27#if defined(__GLIBC__) && __GLIBC__ == 2 && __GLIBC_MINOR__ == 0 
    2728#include <sys/perm.h> 
    2829#endif 
     30 
     31#ifdef __powerpc__ 
     32unsigned long isa_io_base = 0; /* XXX for now */ 
     33#endif /* __powerpc__ */ 
    2934 
    3035char hexchar(int i) 
     
    9499  sleep(5); 
    95100 
     101#ifndef __powerpc__ 
    96102  if ((datareg < 0x400) && (datareg < 0x400)) { 
    97103    if(ioperm(datareg,1,1)) { 
     
    109115    } 
    110116  } 
     117#endif 
    111118 
    112119  printf("     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f\n");