Changeset 8973acd in buchla-68k for include/io.h
- Timestamp:
- 07/15/2017 03:12:10 PM (7 years ago)
- Branches:
- master
- Children:
- ea232f9
- Parents:
- 7d0d347
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
include/io.h
r7d0d347 r8973acd 15 15 16 16 typedef 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);17 typedef int16_t (*devop)(int8_t *name, uint16_t flag, struct channel *chp, struct devtabl *dp); 18 18 19 19 struct channel { /* channel table entry */ 20 20 21 int 8_t c_read; /* read routine index */22 int 8_t c_write; /* write routine index */23 int 8_t c_ioctl; /* ioctl routine index */24 int 8_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 */ 25 25 chclo c_close; /* close function pointer */ 26 26 io_arg c_arg; /* argument to channel driver */ … … 29 29 struct device { /* device control structure */ 30 30 31 int 8_t d_read; /* read routine code */32 int 8_t d_write; /* write routine code */33 int 8_t d_ioctl; /* ioctl routine code */34 int 8_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 */ 35 35 devop d_open; /* special open function */ 36 36 }; … … 41 41 struct device *d_dev; /* pointer to device structure */ 42 42 io_arg d_arg; /* argument to device driver */ 43 int16_t d_kind; /* kind of device */ 43 44 };
Note:
See TracChangeset
for help on using the changeset viewer.