[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 4/8] hw/ide: Move MAX_IDE_BUS define to one header
From: |
Markus Armbruster |
Subject: |
Re: [PATCH 4/8] hw/ide: Move MAX_IDE_BUS define to one header |
Date: |
Mon, 16 Mar 2020 07:53:45 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) |
BALATON Zoltan <address@hidden> writes:
> There are several definitions of MAX_IDE_BUS in different boards (some
> of them unused) with the same value. Move it to include/hw/ide/internal.h
> to have it in a central place.
>
> Signed-off-by: BALATON Zoltan <address@hidden>
This one feels a bit questionable.
The number of (PATA) IDE buses provides by a host bus adapter depends on
the HBA. It happens to be 2 for all HBAs we implement, but it could
really be anything.
Similar for SATA, where the common number is 6, but could really be
anything. I can't see offhand whether any HBA we implement provides a
different number.
By moving MAX_IDE_BUS to include/hw/ide/internal.h, you bake the
accidental commonality into the interface to the IDE core. I'd prefer
not to.
- [PATCH 2/8] hw/ide: Get rid of piix4_init function, (continued)
- [PATCH 2/8] hw/ide: Get rid of piix4_init function, BALATON Zoltan, 2020/03/13
- [PATCH 8/8] hw/ide: Remove unneeded inclusion of hw/ide.h, BALATON Zoltan, 2020/03/13
- [PATCH 5/8] hw/ide/pci.c: Coding style update to fix checkpatch errors, BALATON Zoltan, 2020/03/13
- [PATCH 7/8] hw/ide: Move MAX_IDE_DEVS define to hw/ide/internal.h, BALATON Zoltan, 2020/03/13
- [PATCH 4/8] hw/ide: Move MAX_IDE_BUS define to one header, BALATON Zoltan, 2020/03/13
- Re: [PATCH 4/8] hw/ide: Move MAX_IDE_BUS define to one header,
Markus Armbruster <=
- [PATCH 6/8] hw/ide: Do ide_drive_get() within pci_ide_create_devs(), BALATON Zoltan, 2020/03/13
Re: [PATCH 0/8] Misc hw/ide legacy clean up, Mark Cave-Ayland, 2020/03/14
Re: [PATCH 0/8] Misc hw/ide legacy clean up, Markus Armbruster, 2020/03/16