diff options
author | Thomas Doerfler <Thomas.Doerfler@embedded-brains.de> | 2008-07-10 06:03:15 +0000 |
---|---|---|
committer | Thomas Doerfler <Thomas.Doerfler@embedded-brains.de> | 2008-07-10 06:03:15 +0000 |
commit | 5e4831f1d2bde2053afbb045baaeb0aa75234073 (patch) | |
tree | 1e27f15dfcd3e4042e554b029977fbe4b7167d58 /cpukit/libi2c/libi2c.h | |
parent | 2008-07-09 Chris Johns <chrisj@rtems.org> (diff) | |
download | rtems-5e4831f1d2bde2053afbb045baaeb0aa75234073.tar.bz2 |
Modified error messages. Driver operations table is now constant. New
entry in the rtems_libi2c_tfr_mode_t structure:
idle_char. This character will be continuously transmitted in
read only functions.
Diffstat (limited to 'cpukit/libi2c/libi2c.h')
-rw-r--r-- | cpukit/libi2c/libi2c.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/cpukit/libi2c/libi2c.h b/cpukit/libi2c/libi2c.h index 560fd53174..20c4311d3a 100644 --- a/cpukit/libi2c/libi2c.h +++ b/cpukit/libi2c/libi2c.h @@ -100,7 +100,7 @@ rtems_i2c_ioctl ( rtems_device_minor_number minor, void *arg); -extern rtems_driver_address_table rtems_libi2c_io_ops; +extern const rtems_driver_address_table rtems_libi2c_io_ops; /* Unfortunately, if you want to add this driver to * a RTEMS configuration table then you need all the @@ -144,7 +144,7 @@ extern rtems_driver_address_table rtems_libi2c_io_ops; */ typedef struct rtems_libi2c_bus_t_ { - struct rtems_libi2c_bus_ops_ *ops; + const struct rtems_libi2c_bus_ops_ *ops; int size; /* size of whole structure */ } rtems_libi2c_bus_t; @@ -196,7 +196,7 @@ typedef struct rtems_libi2c_bus_ops_ * RETURNS: bus # (>=0) or -1 on error (errno set). */ -int rtems_libi2c_register_bus (char *name, rtems_libi2c_bus_t * bus); +int rtems_libi2c_register_bus (const char *name, rtems_libi2c_bus_t * bus); extern rtems_device_major_number rtems_libi2c_major; @@ -279,7 +279,7 @@ extern rtems_device_major_number rtems_libi2c_major; typedef struct rtems_libi2c_drv_t_ { - rtems_driver_address_table *ops; /* the driver ops */ + const rtems_driver_address_table *ops; /* the driver ops */ int size; /* size of whole structure (including appended private data) */ } rtems_libi2c_drv_t; @@ -297,7 +297,7 @@ typedef struct rtems_libi2c_drv_t_ * RETURNS minor number (FYI) or -1 on failure */ int -rtems_libi2c_register_drv (char *name, rtems_libi2c_drv_t * drvtbl, +rtems_libi2c_register_drv (const char *name, rtems_libi2c_drv_t * drvtbl, unsigned bus, unsigned i2caddr); /* Operations available to high level drivers */ @@ -440,6 +440,7 @@ typedef struct { boolean lsb_first; /* TRUE: send LSB first */ boolean clock_inv; /* TRUE: inverted clock (high active) */ boolean clock_phs; /* TRUE: clock starts toggling at start of data tfr */ + uint32_t idle_char; /* This character will be continuously transmitted in read only functions */ } rtems_libi2c_tfr_mode_t; typedef struct { |