Show
Ignore:
Timestamp:
07/18/99 16:01:33 (14 years ago)
Author:
frodo
Message:

Namespace and copyright clean-up

* All copyright headers now have the right filename in them
* Files without copyrights now have them
* All copyrights are now until 1999
* Copyright owners were not changed; files into which Kyösti or Frodo made

signifiant changes mention them now, though.

* External module symbols now all begin with i2c_ for all modules, except

some names which can't be changed (init_module and other module related
symbols).

* Header files define nothing which does not begin with i2c_ or I2C_.

That means some symbols have changed names!

The current files are completely namespace-clean. This will lessen the
chance of (future) clashes with other kernel symbols, especially if it
is patched into the kernel.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • i2c/trunk/kernel/i2c.h

    r3317 r3318  
    44/*                                                                           */ 
    55/* ------------------------------------------------------------------------- */ 
    6 /*   Copyright (C) 1995 Simon G. Vogl 
     6/*   Copyright (C) 1995-1999 Simon G. Vogl 
    77 
    88    This program is free software; you can redistribute it and/or modify 
     
    2020    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.                */ 
    2121/* ------------------------------------------------------------------------- */ 
    22 #ifndef _I2C_H 
    23 #define _I2C_H 
     22 
     23/* With some changes from Kyösti Mälkki <kmalkki@cc.hut.fi> and even 
     24   Frodo Looijaard <frodol@dds.nl> */ 
     25 
     26#ifndef I2C_H 
     27#define I2C_H 
    2428 
    2529#ifdef __KERNEL__ 
     
    348352 */ 
    349353 
    350 #define ALGO_NONE       0x000000 
    351 #define ALGO_BIT        0x010000        /* bit style adapters           */ 
    352 #define ALGO_PCF        0x020000        /* PCF 8584 style adapters      */ 
    353 #define ALGO_SMBUS      0x040000 
    354 #define ALGO_ISA        0x050000 
    355 #define ALGO_SAA7146A   0x060000        /* SAA 7146 video decoder bus   */ 
    356  
    357  
    358 #define ALGO_EXP        0x800000        /* experimental                 */ 
    359  
    360 #define ALGO_MASK       0xff0000        /* Mask for algorithms          */ 
    361 #define ALGO_SHIFT      0x10    /* right shift to get index values      */ 
     354#define I2C_ALGO_NONE   0x000000 
     355#define I2C_ALGO_BIT    0x010000        /* bit style adapters           */ 
     356#define I2C_ALGO_PCF    0x020000        /* PCF 8584 style adapters      */ 
     357#define I2C_ALGO_SMBUS  0x040000 
     358#define I2C_ALGO_ISA    0x050000 
     359#define I2C_ALGO_SAA7146A 0x060000      /* SAA 7146 video decoder bus   */ 
     360 
     361 
     362#define I2C_ALGO_EXP    0x800000        /* experimental                 */ 
     363 
     364#define I2C_ALGO_MASK   0xff0000        /* Mask for algorithms          */ 
     365#define I2C_ALGO_SHIFT  0x10    /* right shift to get index values      */ 
    362366 
    363367#define I2C_HW_ADAPS    0x10000         /* # adapter types              */ 
     
    369373 
    370374/* --- Bit algorithm adapters                                           */ 
    371 #define HW_B_LP         0x00    /* Parallel port Philips style adapter  */ 
    372 #define HW_B_LPC        0x01    /* Parallel port, over control reg.     */ 
    373 #define HW_B_SER        0x02    /* Serial line interface                */ 
    374 #define HW_B_ELV        0x03    /* ELV Card                             */ 
    375 #define HW_B_VELLE      0x04    /* Vellemann K8000                      */ 
    376 #define HW_B_BT848      0x05    /* BT848 video boards                   */ 
    377 #define HW_B_WNV        0x06    /* Winnov Videums                       */ 
    378 #define HW_B_VIA        0x07    /* Via vt82c586b                        */ 
    379 #define HW_B_HYDRA      0x08    /* Apple Hydra Mac I/O                  */ 
     375#define I2C_HW_B_LP     0x00    /* Parallel port Philips style adapter  */ 
     376#define I2C_HW_B_LPC    0x01    /* Parallel port, over control reg.     */ 
     377#define I2C_HW_B_SER    0x02    /* Serial line interface                */ 
     378#define I2C_HW_B_ELV    0x03    /* ELV Card                             */ 
     379#define I2C_HW_B_VELLE  0x04    /* Vellemann K8000                      */ 
     380#define I2C_HW_B_BT848  0x05    /* BT848 video boards                   */ 
     381#define I2C_HW_B_WNV    0x06    /* Winnov Videums                       */ 
     382#define I2C_HW_B_VIA    0x07    /* Via vt82c586b                        */ 
     383#define I2C_HW_B_HYDRA  0x08    /* Apple Hydra Mac I/O                  */ 
    380384 
    381385/* --- PCF 8584 based algorithms                                        */ 
    382 #define HW_P_LP         0x00    /* Parallel port interface              */ 
    383 #define HW_P_ISA        0x01    /* generic ISA Bus inteface card        */ 
    384 #define HW_P_ELEK       0x02    /* Elektor ISA Bus inteface card        */ 
     386#define I2C_HW_P_LP     0x00    /* Parallel port interface              */ 
     387#define I2C_HW_P_ISA    0x01    /* generic ISA Bus inteface card        */ 
     388#define I2C_HW_P_ELEK   0x02    /* Elektor ISA Bus inteface card        */ 
    385389 
    386390 
     
    413417#    include <asm/errno.h> 
    414418#  endif 
    415 #endif 
     419#endif /* I2C_H */