2 * Copyright (C) 2015, Bin Meng <bmeng.cn@gmail.com>
4 * SPDX-License-Identifier: GPL-2.0+
29 /* PIRQ link number and value conversion */
30 #define LINK_V2N(link) (link - 0x60)
31 #define LINK_N2V(link) (link + 0x60)
33 #define PIRQ_BITMAP 0xdee0
38 * board_fill_irq_info() - Board-specific irq_info fill routine
40 * This fills the irq_info table for any board-specific add-in cards.
42 * @slot: pointer to the struct irq_info that is to be filled in
43 * @return: number of entries were written to the struct irq_info
45 int board_fill_irq_info(struct irq_info *slot);
48 * pirq_init() - Initialize platform PIRQ routing
50 * This initializes the PIRQ routing on the platform and configures all PCI
51 * devices' interrupt line register to a working IRQ number on the 8259 PIC.
55 #endif /* _ARCH_IRQ_H_ */