1.1 --- a/pkg/devices/util/include/memory.h Sat Jun 06 01:22:58 2020 +0200
1.2 +++ b/pkg/devices/util/include/memory.h Sat Jun 13 18:04:14 2020 +0200
1.3 @@ -1,7 +1,7 @@
1.4 /*
1.5 - * Memory allocation utility functions.
1.6 + * Memory and resource allocation utility functions.
1.7 *
1.8 - * Copyright (C) 2018 Paul Boddie <paul@boddie.org.uk>
1.9 + * Copyright (C) 2018, 2019 Paul Boddie <paul@boddie.org.uk>
1.10 *
1.11 * This program is free software; you can redistribute it and/or
1.12 * modify it under the terms of the GNU General Public License as
1.13 @@ -25,10 +25,16 @@
1.14 #include <l4/re/env.h>
1.15 #include <l4/util/util.h>
1.16
1.17 +EXTERN_C_BEGIN
1.18 +
1.19 int get_device(char const *hid, l4io_device_handle_t *dh,
1.20 l4io_resource_handle_t *rh);
1.21
1.22 +int get_irq(char const *hid, l4_uint32_t *start, l4_uint32_t *end);
1.23 +
1.24 int get_resource(l4io_device_handle_t dh, l4io_resource_t *res,
1.25 enum l4io_resource_types_t type);
1.26
1.27 int get_memory(char const *hid, l4_addr_t *start, l4_addr_t *end);
1.28 +
1.29 +EXTERN_C_END