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

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

No more warnings in libcio.

  • Property mode set to 100644
File size: 1.3 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
[f7428b1]8#pragma once
[5fa506d]9
[f40a309]10#include "fspars.h" /* file system parameters */
[5fa506d]11#include "stdint.h"
[f40a309]12
[4a17aeb]13struct devtabl;
14struct channel;
15
16typedef int16_t (*chclo)(io_arg arg);
[8973acd]17typedef int16_t (*devop)(int8_t *name, uint16_t flag, struct channel *chp, struct devtabl *dp);
[4a17aeb]18
[f40a309]19struct channel { /* channel table entry */
20
[8973acd]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 */
[4a17aeb]25 chclo c_close; /* close function pointer */
[f40a309]26 io_arg c_arg; /* argument to channel driver */
27};
28
29struct device { /* device control structure */
30
[8973acd]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 */
[4a17aeb]35 devop d_open; /* special open function */
[f40a309]36};
37
38struct devtabl { /* device table entry */
39
[7258c6a]40 int8_t *d_name; /* device name */
[f40a309]41 struct device *d_dev; /* pointer to device structure */
42 io_arg d_arg; /* argument to device driver */
[8973acd]43 int16_t d_kind; /* kind of device */
[f40a309]44};
Note: See TracBrowser for help on using the repository browser.