From 4ef693ac89cb514f75fd8643322a36d15474902a Mon Sep 17 00:00:00 2001 From: Justus Winter <4winter@informatik.uni-hamburg.de> Date: Wed, 26 Nov 2014 15:06:21 +0100 Subject: sync libmachdev --- libmachdev/ds_routines.c | 45 --------------------------------------------- 1 file changed, 45 deletions(-) (limited to 'libmachdev/ds_routines.c') diff --git a/libmachdev/ds_routines.c b/libmachdev/ds_routines.c index 6bd5a129..e9fbe944 100644 --- a/libmachdev/ds_routines.c +++ b/libmachdev/ds_routines.c @@ -87,52 +87,7 @@ boolean_t is_master_device (mach_port_t port); * What follows is the interface for the native Mach devices. */ -static inline mach_port_t -mach_convert_device_to_port (mach_device_t device) -{ - if (device == NULL) - return MACH_PORT_NULL; - - // TODO I have to somehow dereference it when it is called at the first time. - return ports_get_right (device); -} - /* Implementation of device interface */ -kern_return_t -ds_xxx_device_set_status (struct mach_device *device, dev_flavor_t flavor, - dev_status_t status, size_t statu_cnt) -{ - return D_INVALID_OPERATION; -} - -kern_return_t -ds_xxx_device_get_status (struct mach_device *device, dev_flavor_t flavor, - dev_status_t status, size_t *statuscnt) -{ - return D_INVALID_OPERATION; -} - -kern_return_t -ds_xxx_device_set_filter (struct mach_device *device, mach_port_t rec, - int pri, filter_array_t filt, size_t len) -{ - return D_INVALID_OPERATION; -} - -io_return_t -ds_device_intr_register (mach_port_t master_port, int irq, - int flags, int id, mach_port_t receive_port) -{ - return D_INVALID_OPERATION; -} - -kern_return_t -ds_device_intr_enable (mach_port_t master_port, - int line, char status) -{ - return D_INVALID_OPERATION; -} - io_return_t ds_device_open (mach_port_t open_port, mach_port_t reply_port, mach_msg_type_name_t reply_port_type, dev_mode_t mode, -- cgit v1.2.3