pm_smbus.c (2c9b15cab12c21e32dffb67c5e18f3dc407ca224) | pm_smbus.c (1437c94b2689c2010362f84d14f14feaa1d8dba3) |
---|---|
1/* 2 * PC SMBus implementation 3 * splitted from acpi.c 4 * 5 * Copyright (c) 2006 Fabrice Bellard 6 * 7 * This library is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU Lesser General Public --- 167 unchanged lines hidden (view full) --- 176 .valid.min_access_size = 1, 177 .valid.max_access_size = 1, 178 .endianness = DEVICE_LITTLE_ENDIAN, 179}; 180 181void pm_smbus_init(DeviceState *parent, PMSMBus *smb) 182{ 183 smb->smbus = i2c_init_bus(parent, "i2c"); | 1/* 2 * PC SMBus implementation 3 * splitted from acpi.c 4 * 5 * Copyright (c) 2006 Fabrice Bellard 6 * 7 * This library is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU Lesser General Public --- 167 unchanged lines hidden (view full) --- 176 .valid.min_access_size = 1, 177 .valid.max_access_size = 1, 178 .endianness = DEVICE_LITTLE_ENDIAN, 179}; 180 181void pm_smbus_init(DeviceState *parent, PMSMBus *smb) 182{ 183 smb->smbus = i2c_init_bus(parent, "i2c"); |
184 memory_region_init_io(&smb->io, NULL, &pm_smbus_ops, smb, "pm-smbus", 64); | 184 memory_region_init_io(&smb->io, OBJECT(parent), &pm_smbus_ops, smb, 185 "pm-smbus", 64); |
185} | 186} |