aboutsummaryrefslogtreecommitdiff
path: root/device
diff options
context:
space:
mode:
Diffstat (limited to 'device')
-rw-r--r--device/ds_routines.c6
-rw-r--r--device/subrs.c44
2 files changed, 3 insertions, 47 deletions
diff --git a/device/ds_routines.c b/device/ds_routines.c
index e5dec6c7..6d629f69 100644
--- a/device/ds_routines.c
+++ b/device/ds_routines.c
@@ -467,7 +467,7 @@ device_deallocate (device_t dev)
* What follows is the interface for the native Mach devices.
*/
-ipc_port_t
+static ipc_port_t
mach_convert_device_to_port (mach_device_t device)
{
ipc_port_t port;
@@ -1429,7 +1429,7 @@ device_set_status(
status_count));
}
-io_return_t
+static io_return_t
mach_device_get_status(
void *dev,
dev_flavor_t flavor,
@@ -1545,7 +1545,7 @@ void iodone(io_req_t ior)
splx(s);
}
-void __attribute__ ((noreturn)) io_done_thread_continue(void)
+static void __attribute__ ((noreturn)) io_done_thread_continue(void)
{
for (;;) {
spl_t s;
diff --git a/device/subrs.c b/device/subrs.c
index 2cf7e6f4..6e90a810 100644
--- a/device/subrs.c
+++ b/device/subrs.c
@@ -39,18 +39,6 @@
/*
- * Print out disk name and block number for hard disk errors.
- */
-void harderr(const io_req_t ior, const char *cp)
-{
- printf("%s%d%c: hard error sn%lu ",
- cp,
- minor(ior->io_unit) >> 3,
- 'a' + (minor(ior->io_unit) & 0x7),
- ior->io_recnum);
-}
-
-/*
* Convert Ethernet address to printable (loggable) representation.
*/
char *
@@ -96,35 +84,3 @@ void wakeup(vm_offset_t channel)
{
thread_wakeup((event_t) channel);
}
-
-io_req_t
-geteblk(int size)
-{
- io_req_t ior;
-
- io_req_alloc(ior, 0);
- ior->io_device = (mach_device_t)0;
- ior->io_unit = 0;
- ior->io_op = 0;
- ior->io_mode = 0;
- ior->io_recnum = 0;
- ior->io_count = size;
- ior->io_residual = 0;
- ior->io_error = 0;
-
- size = round_page(size);
- ior->io_alloc_size = size;
- if (kmem_alloc(kernel_map, (vm_offset_t *)&ior->io_data, size)
- != KERN_SUCCESS)
- panic("geteblk");
-
- return (ior);
-}
-
-void brelse(io_req_t ior)
-{
- (void) vm_deallocate(kernel_map,
- (vm_offset_t) ior->io_data,
- ior->io_alloc_size);
- io_req_free(ior);
-}