summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/i82541.h
blob: 1614bf0b01ceee22bc1a7402052305c51d01296b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// license:BSD-3-Clause
// copyright-holders:Olivier Galibert
// Intel I82541 ethernet controller

#ifndef MAME_MACHINE_I82541_H
#define MAME_MACHINE_I82541_H

#include "pci.h"

class i82541_device : public pci_device {
public:
	i82541_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock, uint32_t subdevice_id)
		: i82541_device(mconfig, tag, owner, clock)
	{
		set_ids(0x8086107c, 0x05, 0x020000, subdevice_id);
	}
	i82541_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);

protected:
	virtual void device_start() override;
	virtual void device_reset() override;

private:
	void registers_map(address_map &map);
	void flash_map(address_map &map);
	void registers_io_map(address_map &map);
};

DECLARE_DEVICE_TYPE(I82541, i82541_device)

#endif // MAME_MACHINE_I82541_H