Skip to content

Commit

Permalink
bus/bbc/modem/scsiaiv: cleanup, no functional changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pernod70 committed Sep 30, 2023
1 parent 175a719 commit 0499209
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
10 changes: 5 additions & 5 deletions src/devices/bus/bbc/modem/scsiaiv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ DEFINE_DEVICE_TYPE(BBC_SCSIAIV, bbc_scsiaiv_device, "bbc_scsiaiv", "Acorn AIV SC
// device_add_mconfig - add device configuration
//-------------------------------------------------

void bbc_scsiaiv_device::device_add_mconfig(machine_config& config)
void bbc_scsiaiv_device::device_add_mconfig(machine_config &config)
{
NSCSI_BUS(config, "scsi");
NSCSI_CONNECTOR(config, "scsi:0", default_scsi_devices, nullptr);
Expand All @@ -36,7 +36,7 @@ void bbc_scsiaiv_device::device_add_mconfig(machine_config& config)
});
}

//void bbc_vp415_device::device_add_mconfig(machine_config& config)
//void bbc_vp415_device::device_add_mconfig(machine_config &config)
//{
// bbc_scsiaiv_device::device_add_mconfig(config);
//
Expand All @@ -54,19 +54,19 @@ void bbc_scsiaiv_device::device_add_mconfig(machine_config& config)
// bbc_scsiaiv_device - constructor
//-------------------------------------------------

bbc_scsiaiv_device::bbc_scsiaiv_device(const machine_config& mconfig, device_type type, const char* tag, device_t* owner, uint32_t clock)
bbc_scsiaiv_device::bbc_scsiaiv_device(const machine_config &mconfig, device_type type, const char* tag, device_t* owner, uint32_t clock)
: device_t(mconfig, type, tag, owner, clock)
, device_bbc_modem_interface(mconfig, *this)
, m_scsi(*this, "scsi:7:scsicb")
{
}

bbc_scsiaiv_device::bbc_scsiaiv_device(const machine_config& mconfig, const char* tag, device_t* owner, uint32_t clock)
bbc_scsiaiv_device::bbc_scsiaiv_device(const machine_config &mconfig, const char* tag, device_t* owner, uint32_t clock)
: bbc_scsiaiv_device(mconfig, BBC_SCSIAIV, tag, owner, clock)
{
}

//bbc_vp415_device::bbc_vp415_device(const machine_config& mconfig, const char* tag, device_t* owner, uint32_t clock)
//bbc_vp415_device::bbc_vp415_device(const machine_config &mconfig, const char* tag, device_t* owner, uint32_t clock)
// : bbc_scsiaiv_device(mconfig, BBC_VP415, tag, owner, clock)
//{
//}
Expand Down
16 changes: 8 additions & 8 deletions src/devices/bus/bbc/modem/scsiaiv.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
**********************************************************************/


#ifndef MAME_BUS_BBC_1MHZBUS_SCSIAIV_H
#define MAME_BUS_BBC_1MHZBUS_SCSIAIV_H
#ifndef MAME_BUS_BBC_MODEM_SCSIAIV_H
#define MAME_BUS_BBC_MODEM_SCSIAIV_H

#include "modem.h"
#include "machine/nscsi_cb.h"
Expand All @@ -24,19 +24,19 @@ class bbc_scsiaiv_device:
{
public:
// construction/destruction
bbc_scsiaiv_device(const machine_config& mconfig, const char* tag, device_t* owner, uint32_t clock);
bbc_scsiaiv_device(const machine_config &mconfig, const char* tag, device_t* owner, uint32_t clock);

void bsy_w(int state);
void req_w(int state);

protected:
bbc_scsiaiv_device(const machine_config& mconfig, device_type type, const char* tag, device_t* owner, uint32_t clock);
bbc_scsiaiv_device(const machine_config &mconfig, device_type type, const char* tag, device_t* owner, uint32_t clock);

// device-level overrides
virtual void device_start() override;

// optional information overrides
virtual void device_add_mconfig(machine_config& config) override;
virtual void device_add_mconfig(machine_config &config) override;

virtual uint8_t read(offs_t offset) override;
virtual void write(offs_t offset, uint8_t data) override;
Expand All @@ -55,11 +55,11 @@ class bbc_scsiaiv_device:
//{
//public:
// // construction/destruction
// bbc_vp415_device(const machine_config& mconfig, const char* tag, device_t* owner, uint32_t clock);
// bbc_vp415_device(const machine_config &mconfig, const char* tag, device_t* owner, uint32_t clock);
//
//protected:
// // optional information overrides
// virtual void device_add_mconfig(machine_config& config) override;
// virtual void device_add_mconfig(machine_config &config) override;
//};


Expand All @@ -68,4 +68,4 @@ DECLARE_DEVICE_TYPE(BBC_SCSIAIV, bbc_scsiaiv_device);
//DECLARE_DEVICE_TYPE(BBC_VP415, bbc_vp415_device);


#endif /* MAME_BUS_BBC_1MHZBUS_SCSIAIV_H */
#endif /* MAME_BUS_BBC_MODEM_SCSIAIV_H */

0 comments on commit 0499209

Please sign in to comment.