1#	$OpenBSD: files.loongson,v 1.26 2020/09/30 22:23:41 patrick Exp $
2
3# Standard stanzas config(8) can't run without
4maxpartitions 16
5maxusers 2 8 64
6
7# Major number for block devices, for ``root on'' lines
8major	{ sd = 0 }
9major	{ cd = 3 }
10major	{ wd = 4 }
11major	{ rd = 8 }
12
13file	dev/cninit.c
14
15file	arch/loongson/loongson/autoconf.c
16file	arch/loongson/loongson/bus_dma.c
17file	arch/loongson/loongson/bus_space.c
18file	arch/loongson/loongson/conf.c
19file	arch/loongson/loongson/disksubr.c		disk
20file	arch/loongson/loongson/gdium_machdep.c		cpu_loongson2
21file	arch/loongson/loongson/generic2e_machdep.c	cpu_loongson2
22file	arch/loongson/loongson/generic3a_machdep.c	cpu_loongson3
23file	arch/loongson/loongson/isa_machdep.c		isa
24file	arch/loongson/loongson/locore.S
25file	arch/loongson/loongson/loongson2_machdep.c
26file	arch/loongson/loongson/loongson3_intr.c		cpu_loongson3
27file	arch/loongson/loongson/loongson3_machdep.c	cpu_loongson3
28file	arch/loongson/loongson/machdep.c
29file	arch/loongson/loongson/hibernate_machdep.c	hibernate
30file	arch/loongson/loongson/pciide_machdep.c		pciide
31file	arch/loongson/loongson/pmon.c
32file	arch/loongson/loongson/pmon32.S
33file	arch/loongson/loongson/wscons_machdep.c		wsdisplay
34file	arch/loongson/loongson/yeeloong_machdep.c	cpu_loongson2
35
36include "dev/ata/files.ata"
37include "dev/atapiscsi/files.atapiscsi"
38include	"dev/hid/files.hid"
39include	"dev/i2c/files.i2c"
40include	"dev/gpio/files.gpio"
41include	"dev/isa/files.isa"
42include	"dev/isa/files.isapnp"
43include	"dev/mii/files.mii"
44include	"dev/pci/files.pci"
45include	"dev/pckbc/files.pckbc"
46include	"dev/usb/files.usb"
47include "dev/rasops/files.rasops"
48include "dev/wscons/files.wscons"
49include "dev/wsfont/files.wsfont"
50include	"scsi/files.scsi"
51
52define	mainbus {}
53device	mainbus
54attach	mainbus at root
55file	arch/loongson/dev/mainbus.c			mainbus
56
57device	cpu
58attach	cpu at mainbus
59
60device	clock
61attach	clock at mainbus
62
63device	bonito {}: pcibus
64attach	bonito at mainbus
65file	arch/loongson/dev/bonito.c			bonito
66
67device	htb {}: pcibus
68attach	htb at mainbus
69file	arch/loongson/dev/htb.c				htb
70
71# AMD Geode CS5536 companion chip
72file	arch/loongson/dev/glx.c				bonito & pci
73
74# Other PCI-ISA bridges
75device	pcib: isabus
76attach	pcib at pci
77file	arch/loongson/dev/pcib.c			pcib | glxpcib
78
79# Lemote Yeeloong RTC
80device	mcclock
81attach	mcclock at isa with mcclock_isa
82file	arch/loongson/dev/mcclock.c			mcclock
83file	arch/loongson/dev/mcclock_isa.c			mcclock_isa
84
85# Lemote Yeeloong KB3310B Embedded Controller
86device	ykbec
87attach	ykbec at isa
88file	arch/loongson/dev/kb3310.c			ykbec needs-flag
89
90# Silicon Motion SM502 master device
91device	voyager {}: gpiobus
92attach	voyager at pci
93file	arch/loongson/dev/voyager.c			voyager
94
95# SM502 specific I2C bus bit-banging
96device	gdiumiic: i2cbus, i2c_bitbang
97attach	gdiumiic at gpio
98file	arch/loongson/dev/gdiumiic.c			gdiumiic
99
100# Gdium ST7 controller
101device	stsec
102attach	stsec at i2c
103file	arch/loongson/dev/stsec.c			stsec
104
105# SM502 OHCI
106attach	ohci at voyager with ohci_voyager
107file	arch/loongson/dev/ohci_voyager.c		ohci_voyager
108
109# Silicon Motion SM502/SM712 frame buffer
110device	smfb: wsemuldisplaydev, rasops16
111attach	smfb at pci with smfb_pci
112attach	smfb at voyager with smfb_voyager
113file	arch/loongson/dev/smfb.c			smfb	needs-flag
114
115# SIS 315 Pro frame buffer
116device	sisfb: wsemuldisplaydev, rasops8, rasops15, rasops16, rasops32
117attach	sisfb at pci
118file	arch/loongson/dev/sisfb.c			sisfb	needs-flag
119
120# Radeon frame buffer
121device	radeonfb: wsemuldisplaydev, rasops16
122attach	radeonfb at pci
123file	arch/loongson/dev/radeonfb.c			radeonfb needs-flag
124
125device	apm
126attach	apm at mainbus
127file	arch/loongson/dev/apm.c				apm	needs-flag
128
129device	glxclk
130attach	glxclk at glxpcib
131file	arch/loongson/dev/glxclk.c			glxclk
132
133define	leiobus {}
134
135device	leioc: leiobus
136attach	leioc at mainbus
137file	arch/loongson/dev/leioc.c			leioc
138
139attach	com at leiobus with com_leioc
140file	arch/loongson/dev/com_leioc.c			com_leioc
141