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

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

Started to rework include files.

  • Property mode set to 100644
File size: 1.1 KB
Line 
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#pragma once
9#include "stdint.h"
10#include "fspars.h" /* file system parameters */
11
12struct channel { /* channel table entry */
13
14 int8_t c_read; /* read routine index */
15 int8_t c_write; /* write routine index */
16 int8_t c_ioctl; /* ioctl routine index */
17 int8_t c_seek; /* seek routine index */
18 int16_t (*c_close)(); /* close function pointer */
19 io_arg c_arg; /* argument to channel driver */
20};
21
22struct device { /* device control structure */
23
24 int8_t d_read; /* read routine code */
25 int8_t d_write; /* write routine code */
26 int8_t d_ioctl; /* ioctl routine code */
27 int8_t d_seek; /* seek routine code */
28 int16_t (*d_open)(); /* special open function */
29};
30
31struct devtabl { /* device table entry */
32
33 int8_t *d_name; /* device name */
34 struct device *d_dev; /* pointer to device structure */
35 io_arg d_arg; /* argument to device driver */
36};
Note: See TracBrowser for help on using the repository browser.