summaryrefslogtreecommitdiffstats
path: root/src/devices/machine/atahle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/atahle.cpp')
-rw-r--r--src/devices/machine/atahle.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/devices/machine/atahle.cpp b/src/devices/machine/atahle.cpp
index ce25fdcd679..df2714dd407 100644
--- a/src/devices/machine/atahle.cpp
+++ b/src/devices/machine/atahle.cpp
@@ -39,7 +39,7 @@ enum
#define DEVICE1_PDIAG_TIME (attotime::from_msec(2))
#define DIAGNOSTIC_TIME (attotime::from_msec(2))
-ata_hle_device::ata_hle_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock,const char *shortname, const char *source)
+ata_hle_device::ata_hle_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, uint32_t clock,const char *shortname, const char *source)
: device_t(mconfig, type, name, tag, owner, clock, shortname, source),
ata_device_interface(mconfig, *this),
device_slot_card_interface(mconfig, *this),
@@ -326,7 +326,7 @@ bool ata_hle_device::set_features()
return false;
}
-int ata_hle_device::bit_to_mode(UINT16 word)
+int ata_hle_device::bit_to_mode(uint16_t word)
{
switch (word>>8)
{
@@ -369,10 +369,10 @@ int ata_hle_device::ultra_dma_mode()
return bit_to_mode(m_identify_buffer[88]);
}
-UINT16 ata_hle_device::read_data()
+uint16_t ata_hle_device::read_data()
{
/* fetch the correct amount of data */
- UINT16 result = m_buffer[m_buffer_offset++];
+ uint16_t result = m_buffer[m_buffer_offset++];
if (!m_8bit_data_transfers)
result |= m_buffer[m_buffer_offset++] << 8;
@@ -386,7 +386,7 @@ UINT16 ata_hle_device::read_data()
return result;
}
-void ata_hle_device::write_data(UINT16 data)
+void ata_hle_device::write_data(uint16_t data)
{
/* store the correct amount of data */
m_buffer[m_buffer_offset++] = data;
@@ -542,9 +542,9 @@ WRITE_LINE_MEMBER( ata_hle_device::write_pdiag )
}
}
-UINT16 ata_hle_device::read_dma()
+uint16_t ata_hle_device::read_dma()
{
- UINT16 result = 0xffff;
+ uint16_t result = 0xffff;
if (device_selected())
{
@@ -590,7 +590,7 @@ READ16_MEMBER( ata_hle_device::read_cs0 )
// if (offset != IDE_CS0_DATA_RW && offset != IDE_CS0_STATUS_R)
LOG(("%s:IDE cs0 read at %X, mem_mask=%d\n", machine().describe_context(), offset, mem_mask));
- UINT16 result = 0xffff;
+ uint16_t result = 0xffff;
if (device_selected() || m_single_device)
{
@@ -708,7 +708,7 @@ READ16_MEMBER( ata_hle_device::read_cs1 )
// if (offset != IDE_CS1_ALTERNATE_STATUS_R)
LOG(("%s:IDE cs1 read at %X, mem_mask=%d\n", machine().describe_context(), offset, mem_mask));
- UINT16 result = 0xffff;
+ uint16_t result = 0xffff;
if (device_selected() || m_single_device)
{
@@ -768,7 +768,7 @@ READ16_MEMBER( ata_hle_device::read_cs1 )
return result;
}
-void ata_hle_device::write_dma( UINT16 data )
+void ata_hle_device::write_dma( uint16_t data )
{
if (device_selected())
{
@@ -827,7 +827,7 @@ WRITE16_MEMBER( ata_hle_device::write_cs0 )
}
else
{
- UINT8 old;
+ uint8_t old;
switch (offset)
{
@@ -926,7 +926,7 @@ WRITE16_MEMBER( ata_hle_device::write_cs1 )
}
else
{
- UINT8 old;
+ uint8_t old;
switch (offset)
{