i8259.c (2c9b15cab12c21e32dffb67c5e18f3dc407ca224) i8259.c (1437c94b2689c2010362f84d14f14feaa1d8dba3)
1/*
2 * QEMU 8259 interrupt controller emulation
3 *
4 * Copyright (c) 2003-2004 Fabrice Bellard
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

--- 403 unchanged lines hidden (view full) ---

412 },
413};
414
415static void pic_realize(DeviceState *dev, Error **err)
416{
417 PICCommonState *s = PIC_COMMON(dev);
418 PICClass *pc = PIC_GET_CLASS(dev);
419
1/*
2 * QEMU 8259 interrupt controller emulation
3 *
4 * Copyright (c) 2003-2004 Fabrice Bellard
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

--- 403 unchanged lines hidden (view full) ---

412 },
413};
414
415static void pic_realize(DeviceState *dev, Error **err)
416{
417 PICCommonState *s = PIC_COMMON(dev);
418 PICClass *pc = PIC_GET_CLASS(dev);
419
420 memory_region_init_io(&s->base_io, NULL, &pic_base_ioport_ops, s, "pic", 2);
421 memory_region_init_io(&s->elcr_io, NULL, &pic_elcr_ioport_ops, s, "elcr", 1);
420 memory_region_init_io(&s->base_io, OBJECT(s), &pic_base_ioport_ops, s,
421 "pic", 2);
422 memory_region_init_io(&s->elcr_io, OBJECT(s), &pic_elcr_ioport_ops, s,
423 "elcr", 1);
422
423 qdev_init_gpio_out(dev, s->int_out, ARRAY_SIZE(s->int_out));
424 qdev_init_gpio_in(dev, pic_set_irq, 8);
425
426 pc->parent_realize(dev, err);
427}
428
429void pic_info(Monitor *mon, const QDict *qdict)

--- 91 unchanged lines hidden ---
424
425 qdev_init_gpio_out(dev, s->int_out, ARRAY_SIZE(s->int_out));
426 qdev_init_gpio_in(dev, pic_set_irq, 8);
427
428 pc->parent_realize(dev, err);
429}
430
431void pic_info(Monitor *mon, const QDict *qdict)

--- 91 unchanged lines hidden ---