summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/lpci/vt82c505.h
blob: 7c34567c62de353d13ef574cdd85bc52cad5c340 (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
32
33
34
35
36
37
38
// license:BSD-3-Clause
// copyright-holders:Barry Rodewald
/*

	VIA VT82C505 PCI bridge

*/

#ifndef __VT82C505_H__
#define __VT82C505_H__

#include "pci.h"

class vt82c505_device :  public device_t,
							public pci_device_interface
{
public:
	// construction/destruction
	vt82c505_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);

	virtual UINT32 pci_read(pci_bus_device *pcibus, int function, int offset, UINT32 mem_mask);
	virtual void pci_write(pci_bus_device *pcibus, int function, int offset, UINT32 data, UINT32 mem_mask);

protected:
	// device-level overrides
	virtual void device_start();
	virtual void device_reset();

private:
	UINT16 m_window_addr[3];
	UINT8 m_window_attr[3];
};

// device type definition
extern const device_type VT82C505;


#endif /* __VT82C505_H__ */