summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/lpci/northbridge.h
blob: 49174e07575d1d77a33a1627c0b81f4b24c06f31 (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
// license:BSD-3-Clause
// copyright-holders:Miodrag Milanovic
#ifndef MAME_BUS_LPCI_NORTHBRIDGE_H
#define MAME_BUS_LPCI_NORTHBRIDGE_H

#pragma once


#include "machine/ram.h"

//**************************************************************************
//  TYPE DEFINITIONS
//**************************************************************************

// ======================> northbridge_device

class northbridge_device : public device_t
{
public:
	template <typename T>
	void set_cpu(T &&tag) { m_cpu.set_tag(std::forward<T>(tag)); }

protected:
	// construction/destruction
	northbridge_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, const XTAL &clock);

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

	required_device<cpu_device> m_cpu;
	required_device<ram_device> m_ram;
};

#endif // MAME_BUS_LPCI_NORTHBRIDGE_H