xics.c (7ce0f7dc87e50ebf58ac756ff6be17ec97d3ba4e) | xics.c (67cc32ebfd8c0ee3fcdb26780a8991baf5eb1d45) |
---|---|
1/* 2 * QEMU PowerPC pSeries Logical Partition (aka sPAPR) hardware System Emulator 3 * 4 * PAPR Virtualized Interrupt System, aka ICS/ICP aka xics 5 * 6 * Copyright (c) 2010,2011 David Gibson, IBM Corporation. 7 * 8 * Permission is hereby granted, free of charge, to any person obtaining a copy --- 725 unchanged lines hidden (view full) --- 734 735 ics_set_irq_type(ics, irq - ics->offset, lsi); 736 trace_xics_alloc(src, irq); 737 738 return irq; 739} 740 741/* | 1/* 2 * QEMU PowerPC pSeries Logical Partition (aka sPAPR) hardware System Emulator 3 * 4 * PAPR Virtualized Interrupt System, aka ICS/ICP aka xics 5 * 6 * Copyright (c) 2010,2011 David Gibson, IBM Corporation. 7 * 8 * Permission is hereby granted, free of charge, to any person obtaining a copy --- 725 unchanged lines hidden (view full) --- 734 735 ics_set_irq_type(ics, irq - ics->offset, lsi); 736 trace_xics_alloc(src, irq); 737 738 return irq; 739} 740 741/* |
742 * Allocate block of consequtive IRQs, returns a number of the first. | 742 * Allocate block of consecutive IRQs, and return the number of the first IRQ in the block. |
743 * If align==true, aligns the first IRQ number to num. 744 */ 745int xics_alloc_block(XICSState *icp, int src, int num, bool lsi, bool align) 746{ 747 int i, first = -1; 748 ICSState *ics = &icp->ics[src]; 749 750 assert(src == 0); --- 334 unchanged lines hidden --- | 743 * If align==true, aligns the first IRQ number to num. 744 */ 745int xics_alloc_block(XICSState *icp, int src, int num, bool lsi, bool align) 746{ 747 int i, first = -1; 748 ICSState *ics = &icp->ics[src]; 749 750 assert(src == 0); --- 334 unchanged lines hidden --- |