omap_sx1.c (940d5b132fab085bd8ec2bcfa5c1dd119785b217) | omap_sx1.c (ce14710f4fdfca32123d7efd3ddcbee984ef0ae5) |
---|---|
1/* omap_sx1.c Support for the Siemens SX1 smartphone emulation. 2 * 3 * Copyright (C) 2008 4 * Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> 5 * Copyright (C) 2007 Vladimir Ananiev <vovan888@gmail.com> 6 * 7 * based on PalmOne's (TM) PDAs support (palm.c) 8 */ --- 141 unchanged lines hidden (view full) --- 150#else 151 be = 0; 152#endif 153 154 if ((dinfo = drive_get(IF_PFLASH, 0, fl_idx)) != NULL) { 155 if (!pflash_cfi01_register(OMAP_CS0_BASE, 156 "omap_sx1.flash0-1", flash_size, 157 blk_by_legacy_dinfo(dinfo), | 1/* omap_sx1.c Support for the Siemens SX1 smartphone emulation. 2 * 3 * Copyright (C) 2008 4 * Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> 5 * Copyright (C) 2007 Vladimir Ananiev <vovan888@gmail.com> 6 * 7 * based on PalmOne's (TM) PDAs support (palm.c) 8 */ --- 141 unchanged lines hidden (view full) --- 150#else 151 be = 0; 152#endif 153 154 if ((dinfo = drive_get(IF_PFLASH, 0, fl_idx)) != NULL) { 155 if (!pflash_cfi01_register(OMAP_CS0_BASE, 156 "omap_sx1.flash0-1", flash_size, 157 blk_by_legacy_dinfo(dinfo), |
158 sector_size, flash_size / sector_size, 159 4, 0, 0, 0, 0, be)) { | 158 sector_size, 4, 0, 0, 0, 0, be)) { |
160 fprintf(stderr, "qemu: Error registering flash memory %d.\n", 161 fl_idx); 162 } 163 fl_idx++; 164 } 165 166 if ((version == 1) && 167 (dinfo = drive_get(IF_PFLASH, 0, fl_idx)) != NULL) { --- 6 unchanged lines hidden (view full) --- 174 memory_region_init_io(&cs[1], NULL, &static_ops, &cs1val, 175 "sx1.cs1", OMAP_CS1_SIZE - flash1_size); 176 memory_region_add_subregion(address_space, 177 OMAP_CS1_BASE + flash1_size, &cs[1]); 178 179 if (!pflash_cfi01_register(OMAP_CS1_BASE, 180 "omap_sx1.flash1-1", flash1_size, 181 blk_by_legacy_dinfo(dinfo), | 159 fprintf(stderr, "qemu: Error registering flash memory %d.\n", 160 fl_idx); 161 } 162 fl_idx++; 163 } 164 165 if ((version == 1) && 166 (dinfo = drive_get(IF_PFLASH, 0, fl_idx)) != NULL) { --- 6 unchanged lines hidden (view full) --- 173 memory_region_init_io(&cs[1], NULL, &static_ops, &cs1val, 174 "sx1.cs1", OMAP_CS1_SIZE - flash1_size); 175 memory_region_add_subregion(address_space, 176 OMAP_CS1_BASE + flash1_size, &cs[1]); 177 178 if (!pflash_cfi01_register(OMAP_CS1_BASE, 179 "omap_sx1.flash1-1", flash1_size, 180 blk_by_legacy_dinfo(dinfo), |
182 sector_size, flash1_size / sector_size, 183 4, 0, 0, 0, 0, be)) { | 181 sector_size, 4, 0, 0, 0, 0, be)) { |
184 fprintf(stderr, "qemu: Error registering flash memory %d.\n", 185 fl_idx); 186 } 187 fl_idx++; 188 } else { 189 memory_region_init_io(&cs[1], NULL, &static_ops, &cs1val, 190 "sx1.cs1", OMAP_CS1_SIZE); 191 memory_region_add_subregion(address_space, --- 67 unchanged lines hidden --- | 182 fprintf(stderr, "qemu: Error registering flash memory %d.\n", 183 fl_idx); 184 } 185 fl_idx++; 186 } else { 187 memory_region_init_io(&cs[1], NULL, &static_ops, &cs1val, 188 "sx1.cs1", OMAP_CS1_SIZE); 189 memory_region_add_subregion(address_space, --- 67 unchanged lines hidden --- |