diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-07-28 18:41:00 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-07-28 18:41:00 +0200 |
commit | cc0dffd12bbf19cc2f7f3480db4987b2dd9039b9 (patch) | |
tree | 980b16c974629cf5005a1febc65b91097bb53c9b /device/dev_hdr.h | |
parent | 4962b90a59b550525856a8eaa31104493407dc84 (diff) | |
download | gnumach-cc0dffd12bbf19cc2f7f3480db4987b2dd9039b9.tar.gz gnumach-cc0dffd12bbf19cc2f7f3480db4987b2dd9039b9.tar.bz2 gnumach-cc0dffd12bbf19cc2f7f3480db4987b2dd9039b9.zip |
Fix dev_ops types
* device/conf.h: Include <device/device_types.h>.
(dev_ops): Make d_getstat and d_setstat fields use dev_flavor_t,
dev_status_t, and mach_msg_type_number_t types.
* device/tty.h: (t_getstat, t_setstat): Likewise.
* device/conf.h (nulldev_getstat, nulldev_setstat): Fix parameter types
accordingly.
* device/dev_name.c (nulldev_getstat, nulldev_setstat): Likewise.
* device/kmsg.c (kmsggetstat): Likewise.
* device/kmsg.h (kmsggetstat): Likewise.
* device/net_io.c (net_getstat): Likewise.
* device/net_io.h (net_getstat): Likewise.
* i386/i386at/com.c (comgetstat, comsetstat): Likewise.
* i386/i386at/com.h (comgetstat, comsetstat): Likewise.
* i386/i386at/kd.c (kdgetstat, kdsetstat): Likewise.
* i386/i386at/kd.h (kdgetstat, kdsetstat): Likewise.
* i386/i386at/kd_event.c (kbdgetstat, kbdsetstat): Likewise.
* i386/i386at/kd_event.h (kbdgetstat, kbdsetstat): Likewise.
* i386/i386at/kd_mouse.c (mousegetstat): Likewise.
* i386/i386at/kd_mouse.h (mousegetstat): Likewise.
* i386/i386at/lpr.c (lprgetstat, lprsetstat): Likewise.
* i386/i386at/lpr.h (lprgetstat, lprsetstat): Likewise.
* xen/console.c (hypcngetstat, hypcnsetstat): Likewise.
* xen/console.h (hypcngetstat, hypcnsetstat): Likewise.
* device/dev_hdr.h: Forward-declare struct dev_ops and dev_ops_t type
instead of including <device/conf.h>.
* device/dev_pager.c: Include <device/conf.h>
* i386/i386/pcb.h: Include <machine/io_perm.h>
* i386/i386/thread.h: Do not include <i386/tss.h>
Diffstat (limited to 'device/dev_hdr.h')
-rw-r--r-- | device/dev_hdr.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/device/dev_hdr.h b/device/dev_hdr.h index ff7d2ef5..ad98e0bb 100644 --- a/device/dev_hdr.h +++ b/device/dev_hdr.h @@ -61,7 +61,7 @@ #include <kern/lock.h> #include <kern/queue.h> -#include <device/conf.h> +typedef struct dev_ops *dev_ops_t; /* This structure is associated with each open device port. The port representing the device points to this structure. */ |