virtio.h (09999a5f7fc8e3636feda4358a79a25a09467594) | virtio.h (9d5b731dd2d64deb3bc798ef4e3c08603d54ae02) |
---|---|
1/* 2 * Virtio Support 3 * 4 * Copyright IBM, Corp. 2007 5 * 6 * Authors: 7 * Anthony Liguori <aliguori@us.ibm.com> 8 * --- 87 unchanged lines hidden (view full) --- 96typedef struct VirtioDeviceClass { 97 /*< private >*/ 98 DeviceClass parent; 99 /*< public >*/ 100 101 /* This is what a VirtioDevice must implement */ 102 DeviceRealize realize; 103 DeviceUnrealize unrealize; | 1/* 2 * Virtio Support 3 * 4 * Copyright IBM, Corp. 2007 5 * 6 * Authors: 7 * Anthony Liguori <aliguori@us.ibm.com> 8 * --- 87 unchanged lines hidden (view full) --- 96typedef struct VirtioDeviceClass { 97 /*< private >*/ 98 DeviceClass parent; 99 /*< public >*/ 100 101 /* This is what a VirtioDevice must implement */ 102 DeviceRealize realize; 103 DeviceUnrealize unrealize; |
104 uint64_t (*get_features)(VirtIODevice *vdev, uint64_t requested_features); | 104 uint64_t (*get_features)(VirtIODevice *vdev, 105 uint64_t requested_features, 106 Error **errp); |
105 uint64_t (*bad_features)(VirtIODevice *vdev); 106 void (*set_features)(VirtIODevice *vdev, uint64_t val); 107 int (*validate_features)(VirtIODevice *vdev); 108 void (*get_config)(VirtIODevice *vdev, uint8_t *config); 109 void (*set_config)(VirtIODevice *vdev, const uint8_t *config); 110 void (*reset)(VirtIODevice *vdev); 111 void (*set_status)(VirtIODevice *vdev, uint8_t val); 112 /* Test and clear event pending status. --- 170 unchanged lines hidden --- | 107 uint64_t (*bad_features)(VirtIODevice *vdev); 108 void (*set_features)(VirtIODevice *vdev, uint64_t val); 109 int (*validate_features)(VirtIODevice *vdev); 110 void (*get_config)(VirtIODevice *vdev, uint8_t *config); 111 void (*set_config)(VirtIODevice *vdev, const uint8_t *config); 112 void (*reset)(VirtIODevice *vdev); 113 void (*set_status)(VirtIODevice *vdev, uint8_t val); 114 /* Test and clear event pending status. --- 170 unchanged lines hidden --- |