Changeset 8973acd in buchla-68k for include/io.h


Ignore:
Timestamp:
07/15/2017 03:12:10 PM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
ea232f9
Parents:
7d0d347
Message:

No more warnings in libcio.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/io.h

    r7d0d347 r8973acd  
    1515
    1616typedef int16_t (*chclo)(io_arg arg);
    17 typedef int16_t (*devop)(int8_t *name, int16_t flag, int16_t mode, struct channel *chp, struct devtabl *dp);
     17typedef int16_t (*devop)(int8_t *name, uint16_t flag, struct channel *chp, struct devtabl *dp);
    1818
    1919struct channel {                /* channel table entry */
    2020
    21         int8_t  c_read;         /* read routine index */
    22         int8_t  c_write;        /* write routine index */
    23         int8_t  c_ioctl;        /* ioctl routine index */
    24         int8_t  c_seek;         /* seek routine index */
     21        int16_t c_read;         /* read routine index */
     22        int16_t c_write;        /* write routine index */
     23        int16_t c_ioctl;        /* ioctl routine index */
     24        int16_t c_seek;         /* seek routine index */
    2525        chclo   c_close;        /* close function pointer */
    2626        io_arg  c_arg;          /* argument to channel driver */
     
    2929struct device {                 /* device control structure */
    3030
    31         int8_t  d_read;         /* read routine code */
    32         int8_t  d_write;        /* write routine code */
    33         int8_t  d_ioctl;        /* ioctl routine code */
    34         int8_t  d_seek;         /* seek routine code */
     31        int16_t d_read;         /* read routine code */
     32        int16_t d_write;        /* write routine code */
     33        int16_t d_ioctl;        /* ioctl routine code */
     34        int16_t d_seek;         /* seek routine code */
    3535        devop   d_open;         /* special open function */
    3636};
     
    4141        struct  device  *d_dev; /* pointer to device structure */
    4242        io_arg  d_arg;          /* argument to device driver */
     43        int16_t d_kind;         /* kind of device */
    4344};
Note: See TracChangeset for help on using the changeset viewer.