sysbus.h (776346cd63e5a1ceeeb4d81fa111d911abb73a69) | sysbus.h (0b336b3b98d8983d821ef9b0f159acc7c77cbac7) |
---|---|
1#ifndef HW_SYSBUS_H 2#define HW_SYSBUS_H 1 3 4/* Devices attached directly to the main system bus. */ 5 6#include "hw/qdev.h" 7#include "exec/memory.h" 8 --- 27 unchanged lines hidden (view full) --- 36#define SYSBUS_DEVICE_GPIO_IRQ "sysbus-irq" 37 38typedef struct SysBusDeviceClass { 39 /*< private >*/ 40 DeviceClass parent_class; 41 /*< public >*/ 42 43 int (*init)(SysBusDevice *dev); | 1#ifndef HW_SYSBUS_H 2#define HW_SYSBUS_H 1 3 4/* Devices attached directly to the main system bus. */ 5 6#include "hw/qdev.h" 7#include "exec/memory.h" 8 --- 27 unchanged lines hidden (view full) --- 36#define SYSBUS_DEVICE_GPIO_IRQ "sysbus-irq" 37 38typedef struct SysBusDeviceClass { 39 /*< private >*/ 40 DeviceClass parent_class; 41 /*< public >*/ 42 43 int (*init)(SysBusDevice *dev); |
44 45 /* 46 * Let the sysbus device format its own non-PIO, non-MMIO unit address. 47 * 48 * Sometimes a class of SysBusDevices has neither MMIO nor PIO resources, 49 * yet instances of it would like to distinguish themselves, in 50 * OpenFirmware device paths, from other instances of the same class on the 51 * sysbus. For that end we expose this callback. 52 * 53 * The implementation is not supposed to change *@dev, or incur other 54 * observable change. 55 * 56 * The function returns a dynamically allocated string. On error, NULL 57 * should be returned; the unit address portion of the OFW node will be 58 * omitted then. (This is not considered a fatal error.) 59 */ 60 char *(*explicit_ofw_unit_address)(const SysBusDevice *dev); |
|
44} SysBusDeviceClass; 45 46struct SysBusDevice { 47 /*< private >*/ 48 DeviceState parent_obj; 49 /*< public >*/ 50 51 int num_mmio; --- 52 unchanged lines hidden --- | 61} SysBusDeviceClass; 62 63struct SysBusDevice { 64 /*< private >*/ 65 DeviceState parent_obj; 66 /*< public >*/ 67 68 int num_mmio; --- 52 unchanged lines hidden --- |