Lines Matching full:pic
2 * Heathrow PIC support (OldWorld PowerMac)
33 static inline int heathrow_check_irq(HeathrowPICState *pic) in heathrow_check_irq() argument
35 return (pic->events | (pic->levels & pic->level_triggered)) & pic->mask; in heathrow_check_irq()
53 HeathrowPICState *pic; in heathrow_write() local
60 pic = &s->pics[n]; in heathrow_write()
63 pic->mask = value; in heathrow_write()
68 value &= ~pic->level_triggered; in heathrow_write()
69 pic->events &= ~value; in heathrow_write()
81 HeathrowPICState *pic; in heathrow_read() local
89 pic = &s->pics[n]; in heathrow_read()
92 value = pic->events; in heathrow_read()
95 value = pic->mask; in heathrow_read()
98 value = pic->levels; in heathrow_read()
118 HeathrowPICState *pic; in heathrow_set_irq() local
122 pic = &s->pics[1 - (num >> 5)]; in heathrow_set_irq()
124 last_level = (pic->levels & irq_bit) ? 1 : 0; in heathrow_set_irq()
127 pic->events |= irq_bit & ~pic->level_triggered; in heathrow_set_irq()
128 pic->levels |= irq_bit; in heathrow_set_irq()
130 pic->levels &= ~irq_bit; in heathrow_set_irq()
183 "heathrow-pic", 0x1000); in heathrow_init()