Changeset 1e62bd9 in rtems


Ignore:
Timestamp:
Dec 22, 2008, 4:36:04 AM (10 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, master
Children:
52cece8
Parents:
26cc5909
Message:

Change header guard to RTEMS conventions.
Add extern's.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libi2c/libi2c.h

    r26cc5909 r1e62bd9  
    1 #ifndef RTEMS_LIBI2C_H
    2 #define RTEMS_LIBI2C_H
     1#ifndef _RTEMS_LIBI2C_H
     2#define _RTEMS_LIBI2C_H
    33/*$Id$*/
    44
     
    5959
    6060/* Initialize the libary - may fail if no semaphore or no driver slot is available */
    61 int rtems_libi2c_initialize (void);
     61extern int rtems_libi2c_initialize (void);
    6262
    6363/* Alternatively to rtems_libi2c_initialize() the library can also be
     
    6565 * the following entry points:
    6666 */
    67 rtems_status_code
     67extern rtems_status_code
    6868rtems_i2c_init (
    6969        rtems_device_major_number major,
     
    7171    void *arg);
    7272
    73 rtems_status_code
     73extern rtems_status_code
    7474rtems_i2c_open (
    7575        rtems_device_major_number major,
     
    7777    void *arg);
    7878
    79 rtems_status_code
     79extern rtems_status_code
    8080rtems_i2c_close (
    8181        rtems_device_major_number major,
     
    8383    void *arg);
    8484
    85 rtems_status_code
     85extern rtems_status_code
    8686rtems_i2c_read (
    8787        rtems_device_major_number major,
     
    8989    void *arg);
    9090
    91 rtems_status_code
     91extern rtems_status_code
    9292rtems_i2c_write (
    9393        rtems_device_major_number major,
     
    9595    void *arg);
    9696
    97 rtems_status_code
     97extern rtems_status_code
    9898rtems_i2c_ioctl (
    9999        rtems_device_major_number major,
     
    197197 */
    198198
    199 int rtems_libi2c_register_bus (const char *name, rtems_libi2c_bus_t * bus);
     199extern int rtems_libi2c_register_bus (const char *name, rtems_libi2c_bus_t * bus);
    200200
    201201extern rtems_device_major_number rtems_libi2c_major;
     
    297297 * RETURNS minor number (FYI) or -1 on failure
    298298 */
    299 int
     299extern int
    300300rtems_libi2c_register_drv (const char *name, rtems_libi2c_drv_t * drvtbl,
    301301                           unsigned bus, unsigned i2caddr);
     
    322322 * Drivers just pass the minor number on to these routines...
    323323 */
    324 rtems_status_code rtems_libi2c_send_start (rtems_device_minor_number minor);
    325 
    326 rtems_status_code rtems_libi2c_send_stop (rtems_device_minor_number minor);
    327 
    328 rtems_status_code
     324extern rtems_status_code rtems_libi2c_send_start (rtems_device_minor_number minor);
     325
     326extern rtems_status_code rtems_libi2c_send_stop (rtems_device_minor_number minor);
     327
     328extern rtems_status_code
    329329rtems_libi2c_send_addr (rtems_device_minor_number minor, int rw);
    330330
     
    332332 * or -(status_code) on error.
    333333 */
    334 int
     334extern int
    335335rtems_libi2c_read_bytes (rtems_device_minor_number minor,
    336336                         unsigned char *bytes, int nbytes);
    337337
    338 int
     338extern int
    339339rtems_libi2c_write_bytes (rtems_device_minor_number minor,
    340340                          const unsigned char *bytes, int nbytes);
    341341
    342342/* Send start, send address and read bytes */
    343 int
     343extern int
    344344rtems_libi2c_start_read_bytes (rtems_device_minor_number minor,
    345345                               unsigned char *bytes,
     
    347347
    348348/* Send start, send address and write bytes */
    349 int
     349extern int
    350350rtems_libi2c_start_write_bytes (rtems_device_minor_number minor,
    351351                                const unsigned char *bytes,
     
    354354
    355355/* call misc iocontrol function */
    356 int
     356extern int
    357357rtems_libi2c_ioctl (rtems_device_minor_number minor,
    358358                    int cmd,
Note: See TracChangeset for help on using the changeset viewer.