summaryrefslogtreecommitdiffstats
path: root/src/devices/machine/dp8390.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/dp8390.cpp')
-rw-r--r--src/devices/machine/dp8390.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/devices/machine/dp8390.cpp b/src/devices/machine/dp8390.cpp
index 32d41d73896..64f6fcbb407 100644
--- a/src/devices/machine/dp8390.cpp
+++ b/src/devices/machine/dp8390.cpp
@@ -9,17 +9,17 @@
const device_type DP8390D = &device_creator<dp8390d_device>;
const device_type RTL8019A = &device_creator<rtl8019a_device>;
-dp8390d_device::dp8390d_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
+dp8390d_device::dp8390d_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
: dp8390_device(mconfig, DP8390D, "DP8390D", tag, owner, clock, 10.0f, "dp8390d", __FILE__) {
m_type = TYPE_DP8390D;
}
-rtl8019a_device::rtl8019a_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
+rtl8019a_device::rtl8019a_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
: dp8390_device(mconfig, RTL8019A, "RTL8019A", tag, owner, clock, 10.0f, "rtl8019a", __FILE__) {
m_type = TYPE_RTL8019A;
}
-dp8390_device::dp8390_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, float bandwidth, const char *shortname, const char *source)
+dp8390_device::dp8390_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, uint32_t clock, float bandwidth, const char *shortname, const char *source)
: device_t(mconfig, type, name, tag, owner, clock, shortname, source),
device_network_interface(mconfig, *this, bandwidth), m_type(0),
m_irq_cb(*this),
@@ -64,9 +64,9 @@ void dp8390_device::check_dma_complete() {
}
void dp8390_device::do_tx() {
- std::vector<UINT8> buf;
+ std::vector<uint8_t> buf;
int i;
- UINT32 high16 = (m_regs.dcr & 4)?m_regs.rsar<<16:0;
+ uint32_t high16 = (m_regs.dcr & 4)?m_regs.rsar<<16:0;
if(m_reset) return;
if(LOOPBACK) return; // TODO: loopback
m_regs.tsr = 0;
@@ -91,7 +91,7 @@ void dp8390_device::do_tx() {
check_irq();
}
-void dp8390_device::set_cr(UINT8 newcr) {
+void dp8390_device::set_cr(uint8_t newcr) {
int ostate = ((m_regs.cr & 3) == 2);
m_regs.cr = newcr;
if((newcr & 1) && (ostate == 1)) return stop();
@@ -117,10 +117,10 @@ void dp8390_device::recv_overflow() {
return;
}
-void dp8390_device::recv(UINT8 *buf, int len) {
+void dp8390_device::recv(uint8_t *buf, int len) {
int i;
- UINT16 start = (m_regs.curr << 8), offset;
- UINT32 high16;
+ uint16_t start = (m_regs.curr << 8), offset;
+ uint32_t high16;
if(m_reset) return;
if(m_regs.curr == m_regs.pstop) start = m_regs.pstart << 8;
offset = start + 4;
@@ -162,7 +162,7 @@ void dp8390_device::recv(UINT8 *buf, int len) {
check_irq();
}
-void dp8390_device::recv_cb(UINT8 *buf, int len) {
+void dp8390_device::recv_cb(uint8_t *buf, int len) {
if(!LOOPBACK) recv(buf, len);
}
@@ -175,9 +175,9 @@ WRITE_LINE_MEMBER(dp8390_device::dp8390_reset) {
}
READ16_MEMBER(dp8390_device::dp8390_r) {
- UINT16 data;
+ uint16_t data;
if(m_cs) {
- UINT32 high16 = (m_regs.dcr & 4)?m_regs.rsar<<16:0;
+ uint32_t high16 = (m_regs.dcr & 4)?m_regs.rsar<<16:0;
if(m_regs.dcr & 1) {
m_regs.crda &= ~1;
data = m_mem_read_cb(high16 + m_regs.crda++);
@@ -346,7 +346,7 @@ READ16_MEMBER(dp8390_device::dp8390_r) {
WRITE16_MEMBER(dp8390_device::dp8390_w) {
if(m_cs) {
- UINT32 high16 = (m_regs.dcr & 4)?m_regs.rsar<<16:0;
+ uint32_t high16 = (m_regs.dcr & 4)?m_regs.rsar<<16:0;
if(m_regs.dcr & 1) {
data = DP8390_BYTE_ORDER(data);
m_regs.crda &= ~1;