summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/pci-usb.cpp
blob: 0b45c1bd9ee56ae5691c8907a8015fef4dd8a259 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
// license:BSD-3-Clause
// copyright-holders:Olivier Galibert
#include "emu.h"
#include "pci-usb.h"

DEFINE_DEVICE_TYPE(USB_OHCI, usb_ohci_device, "usb_ohci", "USB 1.1 OHCI interface")
DEFINE_DEVICE_TYPE(USB_UHCI, usb_uhci_device, "usb_uhci", "USB 1.1 UHCI interface")
DEFINE_DEVICE_TYPE(USB_EHCI, usb_ehci_device, "usb_ehci", "USB 2.0 EHCI interface")

void usb_ohci_device::map(address_map &map)
{
}

usb_ohci_device::usb_ohci_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
	: pci_device(mconfig, USB_OHCI, tag, owner, clock)
{
}

void usb_ohci_device::device_start()
{
	pci_device::device_start();
	add_map(4096, M_MEM, FUNC(usb_ohci_device::map));
}

void usb_ohci_device::device_reset()
{
	pci_device::device_reset();
}

void usb_uhci_device::map(address_map &map)
{
}

usb_uhci_device::usb_uhci_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
	: pci_device(mconfig, USB_UHCI, tag, owner, clock)
{
}

void usb_uhci_device::device_start()
{
	pci_device::device_start();
	add_map(32, M_IO, FUNC(usb_uhci_device::map));
}

void usb_uhci_device::device_reset()
{
	pci_device::device_reset();
}

void usb_ehci_device::map(address_map &map)
{
}

usb_ehci_device::usb_ehci_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
	: pci_device(mconfig, USB_EHCI, tag, owner, clock)
{
}

void usb_ehci_device::device_start()
{
	pci_device::device_start();
	add_map(1024, M_MEM, FUNC(usb_ehci_device::map));
}

void usb_ehci_device::device_reset()
{
	pci_device::device_reset();
}