summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/dp8390.h
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2016-10-22 13:13:17 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2016-10-22 13:13:17 +0200
commitddb290d5f615019c33c42b8d94e5a5254cabcf33 (patch)
treea70f688b0df3acd19da7b1151e5902e3c6af3fa5 /src/devices/machine/dp8390.h
parent333bff8de64dfaeb98134000412796b4fdef970b (diff)
NOTICE (TYPE NAME CONSOLIDATION)
Use standard uint64_t, uint32_t, uint16_t or uint8_t instead of UINT64, UINT32, UINT16 or UINT8 also use standard int64_t, int32_t, int16_t or int8_t instead of INT64, INT32, INT16 or INT8
Diffstat (limited to 'src/devices/machine/dp8390.h')
-rw-r--r--src/devices/machine/dp8390.h90
1 files changed, 45 insertions, 45 deletions
diff --git a/src/devices/machine/dp8390.h b/src/devices/machine/dp8390.h
index 49341e30e49..9f21cee9e75 100644
--- a/src/devices/machine/dp8390.h
+++ b/src/devices/machine/dp8390.h
@@ -38,7 +38,7 @@ class dp8390_device : public device_t,
{
public:
// construction/destruction
- 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(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);
template<class _Object> static devcb_base &set_irq_callback(device_t &device, _Object object) { return downcast<dp8390_device &>(device).m_irq_cb.set_callback(object); }
template<class _Object> static devcb_base &set_breq_callback(device_t &device, _Object object) { return downcast<dp8390_device &>(device).m_breq_cb.set_callback(object); }
@@ -49,7 +49,7 @@ public:
DECLARE_READ16_MEMBER( dp8390_r );
DECLARE_WRITE_LINE_MEMBER( dp8390_cs );
DECLARE_WRITE_LINE_MEMBER( dp8390_reset );
- void recv_cb(UINT8 *buf, int len) override;
+ void recv_cb(uint8_t *buf, int len) override;
protected:
// device-level overrides
@@ -69,74 +69,74 @@ private:
devcb_read8 m_mem_read_cb;
devcb_write8 m_mem_write_cb;
- void set_cr(UINT8 newcr);
+ void set_cr(uint8_t newcr);
void check_dma_complete();
void do_tx();
void check_irq() { m_irq_cb((m_regs.imr & m_regs.isr & 0x7f)?ASSERT_LINE:CLEAR_LINE); }
void recv_overflow();
void stop();
- void recv(UINT8 *buf, int len);
+ void recv(uint8_t *buf, int len);
int m_reset;
bool m_cs;
int m_rdma_active;
struct {
- UINT8 cr;
- UINT16 clda;
- UINT8 pstart;
- UINT8 pstop;
- UINT8 bnry;
- UINT8 tsr;
- UINT8 tpsr;
- UINT8 ncr;
- UINT8 fifo;
- UINT16 tbcr;
- UINT8 isr;
- UINT16 crda;
- UINT16 rsar;
- UINT16 rbcr;
- UINT8 rsr;
- UINT8 rcr;
- UINT8 cntr0;
- UINT8 tcr;
- UINT8 cntr1;
- UINT8 dcr;
- UINT8 cntr2;
- UINT8 imr;
-
- UINT8 par[6];
- UINT8 curr;
- UINT8 mar[8];
-
- UINT8 rnpp;
- UINT8 lnpp;
- UINT16 ac;
+ uint8_t cr;
+ uint16_t clda;
+ uint8_t pstart;
+ uint8_t pstop;
+ uint8_t bnry;
+ uint8_t tsr;
+ uint8_t tpsr;
+ uint8_t ncr;
+ uint8_t fifo;
+ uint16_t tbcr;
+ uint8_t isr;
+ uint16_t crda;
+ uint16_t rsar;
+ uint16_t rbcr;
+ uint8_t rsr;
+ uint8_t rcr;
+ uint8_t cntr0;
+ uint8_t tcr;
+ uint8_t cntr1;
+ uint8_t dcr;
+ uint8_t cntr2;
+ uint8_t imr;
+
+ uint8_t par[6];
+ uint8_t curr;
+ uint8_t mar[8];
+
+ uint8_t rnpp;
+ uint8_t lnpp;
+ uint16_t ac;
} m_regs;
struct {
- UINT8 cr9346;
- UINT8 bpage;
- UINT8 config0;
- UINT8 config1;
- UINT8 config2;
- UINT8 config3;
- UINT8 config4;
- UINT8 csnsav;
- UINT8 intr;
+ uint8_t cr9346;
+ uint8_t bpage;
+ uint8_t config0;
+ uint8_t config1;
+ uint8_t config2;
+ uint8_t config3;
+ uint8_t config4;
+ uint8_t csnsav;
+ uint8_t intr;
} m_8019regs;
};
class rtl8019a_device : public dp8390_device
{
public:
- rtl8019a_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+ rtl8019a_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
};
class dp8390d_device : public dp8390_device
{
public:
- dp8390d_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+ dp8390d_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
};
// device type definition