diff options
author | Bernhard Beschow <shentey@gmail.com> | 2022-08-22 19:02:12 +0200 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-02-27 22:29:02 +0100 |
commit | 3e5f247e36631bef9cc2c35381a01f7b6e6449be (patch) | |
tree | 760e0587f1691dc312f2b20688b05fe88c85be15 /hw/ide/pci.c | |
parent | 2435503ab7cc5f02a8b7c74f9b15ba26878e3e24 (diff) | |
download | qemu-3e5f247e36631bef9cc2c35381a01f7b6e6449be.zip qemu-3e5f247e36631bef9cc2c35381a01f7b6e6449be.tar.gz qemu-3e5f247e36631bef9cc2c35381a01f7b6e6449be.tar.bz2 |
hw/ide/pci: Unexport bmdma_active_if()
The function is only used inside ide/pci.c, so doesn't need to be exported.
Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20230215112712.23110-18-philmd@linaro.org>
Diffstat (limited to 'hw/ide/pci.c')
-rw-r--r-- | hw/ide/pci.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/hw/ide/pci.c b/hw/ide/pci.c index 2ddcb49..fc9224b 100644 --- a/hw/ide/pci.c +++ b/hw/ide/pci.c @@ -104,6 +104,12 @@ const MemoryRegionOps pci_ide_data_le_ops = { .endianness = DEVICE_LITTLE_ENDIAN, }; +static IDEState *bmdma_active_if(BMDMAState *bmdma) +{ + assert(bmdma->bus->retry_unit != (uint8_t)-1); + return bmdma->bus->ifs + bmdma->bus->retry_unit; +} + static void bmdma_start_dma(const IDEDMA *dma, IDEState *s, BlockCompletionFunc *dma_cb) { |