diff options
Diffstat (limited to 'c/src/lib/libbsp/powerpc/mvme3100/i2c/mpc8540_i2c.c')
-rw-r--r-- | c/src/lib/libbsp/powerpc/mvme3100/i2c/mpc8540_i2c.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/c/src/lib/libbsp/powerpc/mvme3100/i2c/mpc8540_i2c.c b/c/src/lib/libbsp/powerpc/mvme3100/i2c/mpc8540_i2c.c index 1c57f5723e..e3f2524ea6 100644 --- a/c/src/lib/libbsp/powerpc/mvme3100/i2c/mpc8540_i2c.c +++ b/c/src/lib/libbsp/powerpc/mvme3100/i2c/mpc8540_i2c.c @@ -1,19 +1,19 @@ /* I2C bus driver for mpc8540-based boards */ -/* +/* * Authorship * ---------- * This software ('mvme3100' RTEMS BSP) was created by * * Till Straumann <strauman@slac.stanford.edu>, 2005-2007, * Stanford Linear Accelerator Center, Stanford University. - * + * * Acknowledgement of sponsorship * ------------------------------ * The 'mvme3100' BSP was produced by * the Stanford Linear Accelerator Center, Stanford University, * under Contract DE-AC03-76SFO0515 with the Department of Energy. - * + * * Government disclaimer of liability * ---------------------------------- * Neither the United States nor the United States Department of Energy, @@ -22,18 +22,18 @@ * completeness, or usefulness of any data, apparatus, product, or process * disclosed, or represents that its use would not infringe privately owned * rights. - * + * * Stanford disclaimer of liability * -------------------------------- * Stanford University makes no representations or warranties, express or * implied, nor assumes any liability for the use of this software. - * + * * Stanford disclaimer of copyright * -------------------------------- * Stanford University, owner of the copyright, hereby disclaims its * copyright and all other rights in this software. Hence, anyone may - * freely use it for any purpose without restriction. - * + * freely use it for any purpose without restriction. + * * Maintenance of notices * ---------------------- * In the interest of clarity regarding the origin and status of this @@ -42,9 +42,9 @@ * or distributed by the recipient and are to be affixed to any copy of * software made or distributed by the recipient that contains a copy or * derivative of this software. - * + * * ------------------ SLAC Software Notices, Set 4 OTT.002a, 2004 FEB 03 - */ + */ /* Note: We maintain base address, IRQ etc. statically and * globally. We don't bother creating driver-specific @@ -64,7 +64,7 @@ #include "mpc8540_i2c_busdrv.h" -#define STATIC +#define STATIC /* I2C controller register definitions */ #define I2CADR 0x3000 @@ -205,7 +205,7 @@ i2c_xfer(int rw, uint8_t *buf, int len) { int i; rtems_status_code sc; - + if ( rw ) { i2c_clr( I2CCR, I2CCR_MTX ); } else { @@ -233,7 +233,7 @@ rtems_status_code sc; return i; } -/* +/* * This bus controller gives us lagging data, i.e., * when we read a byte from the data reg then that * issues a read cycle on the bus and gives us the |