diff options
author | Daniel Hellstrom <daniel@gaisler.com> | 2011-12-20 16:27:54 +0100 |
---|---|---|
committer | Daniel Hellstrom <daniel@gaisler.com> | 2015-04-17 01:10:17 +0200 |
commit | 3681925508c0da88fee6325ea35ead7b112856c6 (patch) | |
tree | 0886351bec0218ed4689c68e5442b75341cbc169 /c/src/lib/libbsp/sparc/shared/include/i2cmst.h | |
parent | LEON: updated and added PCI peripherals for LEON BSPs (diff) | |
download | rtems-3681925508c0da88fee6325ea35ead7b112856c6.tar.bz2 |
LEON: updated shared drivers to Driver Manger framework
Some bugfixes at the same time. After this patch the drivers
may be used on RASTA systems having a big-endian PCI layout.
Removed not up to date changelogs, rely on git log instead.
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libbsp/sparc/shared/include/i2cmst.h | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/c/src/lib/libbsp/sparc/shared/include/i2cmst.h b/c/src/lib/libbsp/sparc/shared/include/i2cmst.h index 2db5cd0f4f..e63d2f8274 100644 --- a/c/src/lib/libbsp/sparc/shared/include/i2cmst.h +++ b/c/src/lib/libbsp/sparc/shared/include/i2cmst.h @@ -7,13 +7,12 @@ */ /* - * COPYRIGHT (c) 2007 Gaisler Research + * COPYRIGHT (c) 2007 Cobham Gaisler AB * with parts from the RTEMS MPC83xx I2C driver (c) 2007 Embedded Brains GmbH. * * The license and distribution terms for this file may be * found in the file LICENSE in this distribution or at * http://www.rtems.org/license/LICENSE. - * */ #ifndef _I2CMST_H @@ -56,26 +55,6 @@ typedef struct gr_i2cmst_regs { #define GRI2C_STATUS_IDLE 0x00000000 -/* The OC I2C core will perform a write after a start unless the RD bit - in the command register has been set. Since the rtems framework has - a send_start function we buffer that command and use it when the first - data is written. The START is buffered in the sendstart member below */ -typedef struct gr_i2cmst_prv { - gr_i2cmst_regs_t *reg_ptr; - unsigned int sysfreq; /* System clock frequency in kHz */ - unsigned char sendstart; /* START events are buffered here */ - /* rtems_irq_number irq_number; */ - /* rtems_id irq_sema_id; */ -} gr_i2cmst_prv_t; - -typedef struct gr_i2cmst_desc { - rtems_libi2c_bus_t bus_desc; - gr_i2cmst_prv_t prv; -} gr_i2cmst_desc_t; - -/* Scans for I2CMST core and initalizes i2c library */ -rtems_status_code leon_register_i2c(struct ambapp_bus *abus); - #ifdef __cplusplus } #endif |