Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Currently IOAPIC pins are represented using various types, including uint16_t, int, uint8_t and uint32_t. This patch converts all pins to uint8_t since the maximum number of interrupt input pins per IOAPIC is limited to 240. The special value IOAPIC_INVALID_PIN is defined to indicate that a valid pin cannot be found. This type clean up also has the following impacts. * The values in the ''legacy_irq_to_pin'' table are piggybacked with their trigger mode. This patch splits them as the piggyback prevents us from using a uint8_t[] for this table, and these two information are never used at the same time. * The ''offset'' parameter in ioapic_read_reg32 & ioapic_write_reg32 are promoted to uint32_t to minimize explicit type conversions and keep aligned with the type of formal parameters of mmio_(read|write)_long. Tracked-on: ccm0001001-247033 Signed-off-by: Junjie Mao <junjie.mao@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
- Loading branch information
1 parent
49d1dc1
commit c477138
Showing
2 changed files
with
67 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters