Last change
on this file since 06f6615 was 5fa506d, checked in by Thomas Lopatic <thomas@…>, 7 years ago |
Include file cleanup.
|
-
Property mode
set to
100644
|
File size:
1.1 KB
|
Rev | Line | |
---|
[f40a309] | 1 | /*
|
---|
| 2 | ============================================================================
|
---|
| 3 | io.h -- Buchla 700 I/O library definitions
|
---|
| 4 | Version 12 -- 1987-09-25 -- D.N. Lynx Crowe
|
---|
| 5 | ============================================================================
|
---|
| 6 | */
|
---|
| 7 |
|
---|
[f7428b1] | 8 | #pragma once
|
---|
[5fa506d] | 9 |
|
---|
[f40a309] | 10 | #include "fspars.h" /* file system parameters */
|
---|
[5fa506d] | 11 | #include "stdint.h"
|
---|
[f40a309] | 12 |
|
---|
| 13 | struct channel { /* channel table entry */
|
---|
| 14 |
|
---|
[7258c6a] | 15 | int8_t c_read; /* read routine index */
|
---|
| 16 | int8_t c_write; /* write routine index */
|
---|
| 17 | int8_t c_ioctl; /* ioctl routine index */
|
---|
| 18 | int8_t c_seek; /* seek routine index */
|
---|
| 19 | int16_t (*c_close)(); /* close function pointer */
|
---|
[f40a309] | 20 | io_arg c_arg; /* argument to channel driver */
|
---|
| 21 | };
|
---|
| 22 |
|
---|
| 23 | struct device { /* device control structure */
|
---|
| 24 |
|
---|
[7258c6a] | 25 | int8_t d_read; /* read routine code */
|
---|
| 26 | int8_t d_write; /* write routine code */
|
---|
| 27 | int8_t d_ioctl; /* ioctl routine code */
|
---|
| 28 | int8_t d_seek; /* seek routine code */
|
---|
| 29 | int16_t (*d_open)(); /* special open function */
|
---|
[f40a309] | 30 | };
|
---|
| 31 |
|
---|
| 32 | struct devtabl { /* device table entry */
|
---|
| 33 |
|
---|
[7258c6a] | 34 | int8_t *d_name; /* device name */
|
---|
[f40a309] | 35 | struct device *d_dev; /* pointer to device structure */
|
---|
| 36 | io_arg d_arg; /* argument to device driver */
|
---|
| 37 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.