@@ -63,6 +63,8 @@ enum {
WCYCLE_AUTOSELECT_CFI = 8,
};
+OBJECT_DECLARE_SIMPLE_TYPE(PFlashCFI02, PFLASH_CFI02)
+
struct PFlashCFI02 {
/*< private >*/
SysBusDevice parent_obj;
@@ -6,9 +6,8 @@
#include "exec/hwaddr.h"
#include "qom/object.h"
-/* pflash_cfi01.c */
-
#define TYPE_PFLASH_CFI01 "cfi.pflash01"
+#define TYPE_PFLASH_CFI02 "cfi.pflash02"
OBJECT_DECLARE_SIMPLE_TYPE(PFlashCFI01, PFLASH_CFI01)
@@ -25,11 +24,6 @@ BlockBackend *pflash_cfi01_get_blk(DeviceState *dev);
MemoryRegion *pflash_cfi01_get_memory(DeviceState *dev);
void pflash_cfi01_legacy_drive(DeviceState *dev, DriveInfo *dinfo);
-/* pflash_cfi02.c */
-
-#define TYPE_PFLASH_CFI02 "cfi.pflash02"
-OBJECT_DECLARE_SIMPLE_TYPE(PFlashCFI02, PFLASH_CFI02)
-
/* nand.c */
DeviceState *nand_init(BlockBackend *blk, int manf_id, int chip_id);