Changeset 7258c6a in buchla-68k for include/io.h


Ignore:
Timestamp:
07/09/2017 04:45:34 PM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
8618599
Parents:
0292fbb
Message:

Use standard integer types.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/io.h

    r0292fbb r7258c6a  
    1010struct channel {                /* channel table entry */
    1111
    12         char    c_read;         /* read routine index */
    13         char    c_write;        /* write routine index */
    14         char    c_ioctl;        /* ioctl routine index */
    15         char    c_seek;         /* seek routine index */
    16         int     (*c_close)();   /* close function pointer */
     12        int8_t  c_read;         /* read routine index */
     13        int8_t  c_write;        /* write routine index */
     14        int8_t  c_ioctl;        /* ioctl routine index */
     15        int8_t  c_seek;         /* seek routine index */
     16        int16_t (*c_close)();   /* close function pointer */
    1717        io_arg  c_arg;          /* argument to channel driver */
    1818};
     
    2020struct device {                 /* device control structure */
    2121
    22         char    d_read;         /* read routine code */
    23         char    d_write;        /* write routine code */
    24         char    d_ioctl;        /* ioctl routine code */
    25         char    d_seek;         /* seek routine code */
    26         int     (*d_open)();    /* special open function */
     22        int8_t  d_read;         /* read routine code */
     23        int8_t  d_write;        /* write routine code */
     24        int8_t  d_ioctl;        /* ioctl routine code */
     25        int8_t  d_seek;         /* seek routine code */
     26        int16_t (*d_open)();    /* special open function */
    2727};
    2828
    2929struct devtabl {                /* device table entry */
    3030
    31         char    *d_name;        /* device name */
     31        int8_t  *d_name;        /* device name */
    3232        struct  device  *d_dev; /* pointer to device structure */
    3333        io_arg  d_arg;          /* argument to device driver */
     
    3737
    3838extern  struct channel chantab[MAXCHAN];        /* defined in fsinit.c */
    39 extern  char    Wrkbuf[BPSEC];                  /* defined in fsinit.c */
     39extern  int8_t  Wrkbuf[BPSEC];                  /* defined in fsinit.c */
    4040
    4141#endif
Note: See TracChangeset for help on using the changeset viewer.