source: buchla-68k/include/io.h@ 7258c6a

Last change on this file since 7258c6a was 7258c6a, checked in by Thomas Lopatic <thomas@…>, 7 years ago

Use standard integer types.

  • Property mode set to 100644
File size: 1.2 KB
RevLine 
[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
8#include "fspars.h" /* file system parameters */
9
10struct channel { /* channel table entry */
11
[7258c6a]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 */
[f40a309]17 io_arg c_arg; /* argument to channel driver */
18};
19
20struct device { /* device control structure */
21
[7258c6a]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 */
[f40a309]27};
28
29struct devtabl { /* device table entry */
30
[7258c6a]31 int8_t *d_name; /* device name */
[f40a309]32 struct device *d_dev; /* pointer to device structure */
33 io_arg d_arg; /* argument to device driver */
34};
35
36#ifndef _FS_DEF_
37
38extern struct channel chantab[MAXCHAN]; /* defined in fsinit.c */
[7258c6a]39extern int8_t Wrkbuf[BPSEC]; /* defined in fsinit.c */
[f40a309]40
41#endif
Note: See TracBrowser for help on using the repository browser.