grlib_irqmp.c (2c9b15cab12c21e32dffb67c5e18f3dc407ca224) | grlib_irqmp.c (1437c94b2689c2010362f84d14f14feaa1d8dba3) |
---|---|
1/* 2 * QEMU GRLIB IRQMP Emulator 3 * 4 * (Multiprocessor and extended interrupt not supported) 5 * 6 * Copyright (c) 2010-2011 AdaCore 7 * 8 * Permission is hereby granted, free of charge, to any person obtaining a copy --- 330 unchanged lines hidden (view full) --- 339 340 assert(irqmp != NULL); 341 342 /* Check parameters */ 343 if (irqmp->set_pil_in == NULL) { 344 return -1; 345 } 346 | 1/* 2 * QEMU GRLIB IRQMP Emulator 3 * 4 * (Multiprocessor and extended interrupt not supported) 5 * 6 * Copyright (c) 2010-2011 AdaCore 7 * 8 * Permission is hereby granted, free of charge, to any person obtaining a copy --- 330 unchanged lines hidden (view full) --- 339 340 assert(irqmp != NULL); 341 342 /* Check parameters */ 343 if (irqmp->set_pil_in == NULL) { 344 return -1; 345 } 346 |
347 memory_region_init_io(&irqmp->iomem, NULL, &grlib_irqmp_ops, irqmp, | 347 memory_region_init_io(&irqmp->iomem, OBJECT(dev), &grlib_irqmp_ops, irqmp, |
348 "irqmp", IRQMP_REG_SIZE); 349 350 irqmp->state = g_malloc0(sizeof *irqmp->state); 351 352 sysbus_init_mmio(dev, &irqmp->iomem); 353 354 return 0; 355} --- 30 unchanged lines hidden --- | 348 "irqmp", IRQMP_REG_SIZE); 349 350 irqmp->state = g_malloc0(sizeof *irqmp->state); 351 352 sysbus_init_mmio(dev, &irqmp->iomem); 353 354 return 0; 355} --- 30 unchanged lines hidden --- |