Previous 199869 Revisions Next

r19161 Tuesday 27th November, 2012 at 10:12:36 UTC by Miodrag Milanović
Set interface name to scsi harddisks so they can be mounted as softlist items (no whatsnew)
Fixed mac harddisk list to use new interface
Also added interface for scsi cdrom, but named it "cdrom" since medium is always same.
[hash]mac_hdd.xml
[src/emu/machine]nscsi_cd.c nscsi_hd.c scsicd.c scsihd.c scsihd.h

trunk/hash/mac_hdd.xml
r19160r19161
55      <description>System Software 6.0.8</description>
66      <year>1988</year>
77      <publisher>Apple</publisher>
8      <part name="hdd" interface="mac_hdd">
8      <part name="hdd" interface="scsi_hdd">
99         <diskarea name="harddriv">
1010            <disk name="mac608" sha1="0eff82806f671484ec0c91cdc95ad90aa3157885" writeable="yes"/>
1111         </diskarea>
r19160r19161
1515      <description>System Software 7.0</description>
1616      <year>1991</year>
1717      <publisher>Apple</publisher>
18      <part name="hdd" interface="mac_hdd">
18      <part name="hdd" interface="scsi_hdd">
1919         <diskarea name="harddriv">
2020            <disk name="mac700" sha1="a4c7777125331339afcd47dda5adca26ff57a427" writeable="yes"/>
2121         </diskarea>
r19160r19161
2525      <description>System Software 7.0.1</description>
2626      <year>1991</year>
2727      <publisher>Apple</publisher>
28      <part name="hdd" interface="mac_hdd">
28      <part name="hdd" interface="scsi_hdd">
2929         <diskarea name="harddriv">
3030            <disk name="mac701" sha1="f867db45d7543ba87ca0e762bc920fe11d2a0753" writeable="yes"/>
3131         </diskarea>
r19160r19161
3535      <description>System Software 7.1.1</description>
3636      <year>1993</year>
3737      <publisher>Apple</publisher>
38      <part name="hdd" interface="mac_hdd">
38      <part name="hdd" interface="scsi_hdd">
3939         <diskarea name="harddriv">
4040            <disk name="mac711" sha1="b1625378d1ba00861a07ebe47f4b6b54c849c61f" writeable="yes"/>
4141         </diskarea>
r19160r19161
4545      <description>System Software 7.5</description>
4646      <year>1994</year>
4747      <publisher>Apple</publisher>
48      <part name="hdd" interface="mac_hdd">
48      <part name="hdd" interface="scsi_hdd">
4949         <diskarea name="harddriv">
5050            <disk name="mac750" sha1="9b59a611f0fddd560bc8b72c1dae07d0f2e10dcc" writeable="yes"/>
5151         </diskarea>
r19160r19161
5555      <description>System Software 7.5.3 Revision 2</description>
5656      <year>1996</year>
5757      <publisher>Apple</publisher>
58      <part name="hdd" interface="mac_hdd">
58      <part name="hdd" interface="scsi_hdd">
5959         <diskarea name="harddriv">
6060            <disk name="mac753" sha1="757e4c69281993871bb7a199583f8f0c042c0ac7" writeable="yes"/>
6161         </diskarea>
r19160r19161
6565      <description>System Software 7.5.5</description>
6666      <year>1996</year>
6767      <publisher>Apple</publisher>
68      <part name="hdd" interface="mac_hdd">
68      <part name="hdd" interface="scsi_hdd">
6969         <diskarea name="harddriv">
7070            <disk name="mac755" sha1="45990ff07419555d576eaa4f2293d62e74d055b6" writeable="yes"/>
7171         </diskarea>
r19160r19161
7575      <description>System Software 7.6</description>
7676      <year>1997</year>
7777      <publisher>Apple</publisher>
78      <part name="hdd" interface="mac_hdd">
78      <part name="hdd" interface="scsi_hdd">
7979         <diskarea name="harddriv">
8080            <disk name="mac760" sha1="7e5ac00619dbf2395611f19658fab8e029d64bc7" writeable="yes"/>
8181         </diskarea>
r19160r19161
8585      <description>System Software 7.6.1</description>
8686      <year>1997</year>
8787      <publisher>Apple</publisher>
88      <part name="hdd" interface="mac_hdd">
88      <part name="hdd" interface="scsi_hdd">
8989         <diskarea name="harddriv">
9090            <disk name="mac761" sha1="fa41734a26c37dea26f5d5590a8545afe26005ac" writeable="yes"/>
9191         </diskarea>
trunk/src/emu/machine/nscsi_hd.c
r19160r19161
2828   cur_lba = -1;
2929}
3030
31harddisk_interface nscsi_harddisk_device::hd_intf = { 0, 0 };
31harddisk_interface nscsi_harddisk_device::hd_intf = { NULL, NULL, "scsi_hdd", NULL };
3232
3333static MACHINE_CONFIG_FRAGMENT(scsi_harddisk)
3434   MCFG_HARDDISK_CONFIG_ADD("image", nscsi_harddisk_device::hd_intf)
trunk/src/emu/machine/nscsi_cd.c
r19160r19161
2323   cur_lba = -1;
2424}
2525
26cdrom_interface nscsi_cdrom_device::cd_intf = { 0, 0 };
26cdrom_interface nscsi_cdrom_device::cd_intf = { "cdrom", NULL };
2727
2828static MACHINE_CONFIG_FRAGMENT(scsi_cdrom)
2929   MCFG_CDROM_ADD("image", nscsi_cdrom_device::cd_intf)
trunk/src/emu/machine/scsihd.c
r19160r19161
5252   }
5353}
5454
55harddisk_interface scsihd_device::hd_intf = { NULL, NULL, "scsi_hdd", NULL };
56
5557static MACHINE_CONFIG_FRAGMENT(scsi_harddisk)
56   MCFG_HARDDISK_ADD("image")
58   MCFG_HARDDISK_CONFIG_ADD("image", scsihd_device::hd_intf)
5759MACHINE_CONFIG_END
5860
5961machine_config_constructor scsihd_device::device_mconfig_additions() const
trunk/src/emu/machine/scsihd.h
r19160r19161
2424   virtual void WriteData( UINT8 *data, int dataLength );
2525   virtual void ReadData( UINT8 *data, int dataLength );
2626   virtual int GetSectorBytes();
27
27   
28   static struct harddisk_interface hd_intf;
29   
2830protected:
2931   // device-level overrides
3032   virtual void device_start();
trunk/src/emu/machine/scsicd.c
r19160r19161
6464   play_err_flag = 0;
6565}
6666
67cdrom_interface scsicd_device::cd_intf = { 0, 0 };
67cdrom_interface scsicd_device::cd_intf = { "cdrom", NULL };
6868
6969static MACHINE_CONFIG_FRAGMENT(scsi_cdrom)
7070   MCFG_CDROM_ADD("image", scsicd_device::cd_intf)

Previous 199869 Revisions Next


© 1997-2024 The MAME Team