mac_nvram.c (760df0d121a836dcbf3726b80b820115aef21b30) | mac_nvram.c (b69c3c21a5d11075d42100d5cfe0a736593fae6b) |
---|---|
1/* 2 * PowerMac NVRAM emulation 3 * 4 * Copyright (c) 2005-2007 Fabrice Bellard 5 * Copyright (c) 2007 Jocelyn Mayer 6 * 7 * Permission is hereby granted, free of charge, to any person obtaining a copy 8 * of this software and associated documentation files (the "Software"), to deal --- 93 unchanged lines hidden (view full) --- 102 103 s->data = g_malloc0(s->size); 104 105 memory_region_init_io(&s->mem, OBJECT(s), &macio_nvram_ops, s, 106 "macio-nvram", s->size << s->it_shift); 107 sysbus_init_mmio(d, &s->mem); 108} 109 | 1/* 2 * PowerMac NVRAM emulation 3 * 4 * Copyright (c) 2005-2007 Fabrice Bellard 5 * Copyright (c) 2007 Jocelyn Mayer 6 * 7 * Permission is hereby granted, free of charge, to any person obtaining a copy 8 * of this software and associated documentation files (the "Software"), to deal --- 93 unchanged lines hidden (view full) --- 102 103 s->data = g_malloc0(s->size); 104 105 memory_region_init_io(&s->mem, OBJECT(s), &macio_nvram_ops, s, 106 "macio-nvram", s->size << s->it_shift); 107 sysbus_init_mmio(d, &s->mem); 108} 109 |
110static void macio_nvram_unrealizefn(DeviceState *dev, Error **errp) | 110static void macio_nvram_unrealizefn(DeviceState *dev) |
111{ 112 MacIONVRAMState *s = MACIO_NVRAM(dev); 113 114 g_free(s->data); 115} 116 117static Property macio_nvram_properties[] = { 118 DEFINE_PROP_UINT32("size", MacIONVRAMState, size, 0), --- 78 unchanged lines hidden --- | 111{ 112 MacIONVRAMState *s = MACIO_NVRAM(dev); 113 114 g_free(s->data); 115} 116 117static Property macio_nvram_properties[] = { 118 DEFINE_PROP_UINT32("size", MacIONVRAMState, size, 0), --- 78 unchanged lines hidden --- |