1.1 --- a/libmem/include/mem/memory_incremental.h Tue Feb 27 17:20:22 2024 +0100
1.2 +++ b/libmem/include/mem/memory_incremental.h Wed Feb 28 17:46:20 2024 +0100
1.3 @@ -1,7 +1,7 @@
1.4 /*
1.5 * A memory pool allocating a region at a time from the system.
1.6 *
1.7 - * Copyright (C) 2021, 2022 Paul Boddie <paul@boddie.org.uk>
1.8 + * Copyright (C) 2021, 2022, 2024 Paul Boddie <paul@boddie.org.uk>
1.9 *
1.10 * This program is free software; you can redistribute it and/or
1.11 * modify it under the terms of the GNU General Public License as
1.12 @@ -39,6 +39,7 @@
1.13
1.14 unsigned int _limit;
1.15 offset_t _region_size;
1.16 + l4_cap_idx_t _dma;
1.17 bool _limited;
1.18
1.19 Region *allocate(offset_t size);
1.20 @@ -46,9 +47,11 @@
1.21 void deallocate(Region *region);
1.22
1.23 public:
1.24 - explicit MemoryIncremental(unsigned int limit, offset_t region_size=PAGE_SIZE);
1.25 + explicit MemoryIncremental(unsigned int limit,
1.26 + offset_t region_size=PAGE_SIZE,
1.27 + l4_cap_idx_t dma=L4_INVALID_CAP);
1.28
1.29 - explicit MemoryIncremental();
1.30 + explicit MemoryIncremental(l4_cap_idx_t dma=L4_INVALID_CAP);
1.31
1.32 virtual Region *region(offset_t size);
1.33