xilinx_intc.c (2c9b15cab12c21e32dffb67c5e18f3dc407ca224) xilinx_intc.c (1437c94b2689c2010362f84d14f14feaa1d8dba3)
1/*
2 * QEMU Xilinx OPB Interrupt Controller.
3 *
4 * Copyright (c) 2009 Edgar E. Iglesias.
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

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

155
156static int xilinx_intc_init(SysBusDevice *dev)
157{
158 struct xlx_pic *p = FROM_SYSBUS(typeof (*p), dev);
159
160 qdev_init_gpio_in(&dev->qdev, irq_handler, 32);
161 sysbus_init_irq(dev, &p->parent_irq);
162
1/*
2 * QEMU Xilinx OPB Interrupt Controller.
3 *
4 * Copyright (c) 2009 Edgar E. Iglesias.
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

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

155
156static int xilinx_intc_init(SysBusDevice *dev)
157{
158 struct xlx_pic *p = FROM_SYSBUS(typeof (*p), dev);
159
160 qdev_init_gpio_in(&dev->qdev, irq_handler, 32);
161 sysbus_init_irq(dev, &p->parent_irq);
162
163 memory_region_init_io(&p->mmio, NULL, &pic_ops, p, "xlnx.xps-intc", R_MAX * 4);
163 memory_region_init_io(&p->mmio, OBJECT(p), &pic_ops, p, "xlnx.xps-intc",
164 R_MAX * 4);
164 sysbus_init_mmio(dev, &p->mmio);
165 return 0;
166}
167
168static Property xilinx_intc_properties[] = {
169 DEFINE_PROP_UINT32("kind-of-intr", struct xlx_pic, c_kind_of_intr, 0),
170 DEFINE_PROP_END_OF_LIST(),
171};

--- 23 unchanged lines hidden ---
165 sysbus_init_mmio(dev, &p->mmio);
166 return 0;
167}
168
169static Property xilinx_intc_properties[] = {
170 DEFINE_PROP_UINT32("kind-of-intr", struct xlx_pic, c_kind_of_intr, 0),
171 DEFINE_PROP_END_OF_LIST(),
172};

--- 23 unchanged lines hidden ---