head	1.5;
access;
symbols
	netbsd-11-0-RC4:1.5
	netbsd-11-0-RC3:1.5
	netbsd-11-0-RC2:1.5
	netbsd-11-0-RC1:1.5
	perseant-exfatfs-base-20250801:1.5
	netbsd-11:1.5.0.66
	netbsd-11-base:1.5
	netbsd-10-1-RELEASE:1.5
	perseant-exfatfs-base-20240630:1.5
	perseant-exfatfs:1.5.0.64
	perseant-exfatfs-base:1.5
	netbsd-8-3-RELEASE:1.5
	netbsd-9-4-RELEASE:1.5
	netbsd-10-0-RELEASE:1.5
	netbsd-10-0-RC6:1.5
	netbsd-10-0-RC5:1.5
	netbsd-10-0-RC4:1.5
	netbsd-10-0-RC3:1.5
	netbsd-10-0-RC2:1.5
	thorpej-ifq:1.5.0.62
	thorpej-ifq-base:1.5
	thorpej-altq-separation:1.5.0.60
	thorpej-altq-separation-base:1.5
	netbsd-10-0-RC1:1.5
	netbsd-10:1.5.0.58
	netbsd-10-base:1.5
	bouyer-sunxi-drm:1.5.0.56
	bouyer-sunxi-drm-base:1.5
	netbsd-9-3-RELEASE:1.5
	thorpej-i2c-spi-conf2:1.5.0.54
	thorpej-i2c-spi-conf2-base:1.5
	thorpej-futex2:1.5.0.52
	thorpej-futex2-base:1.5
	thorpej-cfargs2:1.5.0.50
	thorpej-cfargs2-base:1.5
	cjep_sun2x-base1:1.5
	cjep_sun2x:1.5.0.48
	cjep_sun2x-base:1.5
	cjep_staticlib_x-base1:1.5
	netbsd-9-2-RELEASE:1.5
	cjep_staticlib_x:1.5.0.46
	cjep_staticlib_x-base:1.5
	thorpej-i2c-spi-conf:1.5.0.44
	thorpej-i2c-spi-conf-base:1.5
	thorpej-cfargs:1.5.0.42
	thorpej-cfargs-base:1.5
	thorpej-futex:1.5.0.40
	thorpej-futex-base:1.5
	netbsd-9-1-RELEASE:1.5
	bouyer-xenpvh-base2:1.5
	phil-wifi-20200421:1.5
	bouyer-xenpvh-base1:1.5
	phil-wifi-20200411:1.5
	bouyer-xenpvh:1.5.0.38
	bouyer-xenpvh-base:1.5
	is-mlppp:1.5.0.36
	is-mlppp-base:1.5
	phil-wifi-20200406:1.5
	netbsd-8-2-RELEASE:1.5
	ad-namecache-base3:1.5
	netbsd-9-0-RELEASE:1.5
	netbsd-9-0-RC2:1.5
	ad-namecache-base2:1.5
	ad-namecache-base1:1.5
	ad-namecache:1.5.0.34
	ad-namecache-base:1.5
	netbsd-9-0-RC1:1.5
	phil-wifi-20191119:1.5
	netbsd-9:1.5.0.32
	netbsd-9-base:1.5
	phil-wifi-20190609:1.5
	netbsd-8-1-RELEASE:1.5
	netbsd-8-1-RC1:1.5
	isaki-audio2:1.5.0.30
	isaki-audio2-base:1.5
	pgoyette-compat-merge-20190127:1.5
	pgoyette-compat-20190127:1.5
	pgoyette-compat-20190118:1.5
	pgoyette-compat-1226:1.5
	pgoyette-compat-1126:1.5
	pgoyette-compat-1020:1.5
	pgoyette-compat-0930:1.5
	pgoyette-compat-0906:1.5
	netbsd-7-2-RELEASE:1.5
	pgoyette-compat-0728:1.5
	netbsd-8-0-RELEASE:1.5
	phil-wifi:1.5.0.28
	phil-wifi-base:1.5
	pgoyette-compat-0625:1.5
	netbsd-8-0-RC2:1.5
	pgoyette-compat-0521:1.5
	pgoyette-compat-0502:1.5
	pgoyette-compat-0422:1.5
	netbsd-8-0-RC1:1.5
	pgoyette-compat-0415:1.5
	pgoyette-compat-0407:1.5
	pgoyette-compat-0330:1.5
	pgoyette-compat-0322:1.5
	pgoyette-compat-0315:1.5
	netbsd-7-1-2-RELEASE:1.5
	pgoyette-compat:1.5.0.26
	pgoyette-compat-base:1.5
	netbsd-7-1-1-RELEASE:1.5
	tls-maxphys-base-20171202:1.5
	matt-nb8-mediatek:1.5.0.24
	matt-nb8-mediatek-base:1.5
	nick-nhusb-base-20170825:1.5
	perseant-stdc-iso10646:1.5.0.22
	perseant-stdc-iso10646-base:1.5
	netbsd-8:1.5.0.20
	netbsd-8-base:1.5
	prg-localcount2-base3:1.5
	prg-localcount2-base2:1.5
	prg-localcount2-base1:1.5
	prg-localcount2:1.5.0.18
	prg-localcount2-base:1.5
	pgoyette-localcount-20170426:1.5
	bouyer-socketcan-base1:1.5
	jdolecek-ncq:1.5.0.16
	jdolecek-ncq-base:1.5
	pgoyette-localcount-20170320:1.5
	netbsd-7-1:1.5.0.14
	netbsd-7-1-RELEASE:1.5
	netbsd-7-1-RC2:1.5
	nick-nhusb-base-20170204:1.5
	netbsd-7-nhusb-base-20170116:1.5
	bouyer-socketcan:1.5.0.12
	bouyer-socketcan-base:1.5
	pgoyette-localcount-20170107:1.5
	netbsd-7-1-RC1:1.5
	nick-nhusb-base-20161204:1.5
	pgoyette-localcount-20161104:1.5
	netbsd-7-0-2-RELEASE:1.5
	nick-nhusb-base-20161004:1.5
	localcount-20160914:1.5
	netbsd-7-nhusb:1.5.0.10
	netbsd-7-nhusb-base:1.5
	pgoyette-localcount-20160806:1.5
	pgoyette-localcount-20160726:1.5
	pgoyette-localcount:1.5.0.8
	pgoyette-localcount-base:1.5
	nick-nhusb-base-20160907:1.5
	nick-nhusb-base-20160529:1.5
	netbsd-7-0-1-RELEASE:1.5
	nick-nhusb-base-20160422:1.5
	nick-nhusb-base-20160319:1.5
	nick-nhusb-base-20151226:1.5
	netbsd-7-0:1.5.0.6
	netbsd-7-0-RELEASE:1.5
	nick-nhusb-base-20150921:1.5
	netbsd-7-0-RC3:1.5
	netbsd-7-0-RC2:1.5
	netbsd-7-0-RC1:1.5
	nick-nhusb-base-20150606:1.5
	nick-nhusb-base-20150406:1.5
	nick-nhusb:1.5.0.4
	nick-nhusb-base:1.5
	netbsd-6-0-6-RELEASE:1.2
	netbsd-6-1-5-RELEASE:1.2
	netbsd-7:1.5.0.2
	netbsd-7-base:1.5
	yamt-pagecache-base9:1.4
	yamt-pagecache-tag8:1.2.2.1
	netbsd-6-1-4-RELEASE:1.2
	netbsd-6-0-5-RELEASE:1.2
	tls-earlyentropy:1.4.0.10
	tls-earlyentropy-base:1.5
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.4
	riastradh-drm2-base3:1.4
	netbsd-6-1-3-RELEASE:1.2
	netbsd-6-0-4-RELEASE:1.2
	netbsd-6-1-2-RELEASE:1.2
	netbsd-6-0-3-RELEASE:1.2
	rmind-smpnet-nbase:1.4
	netbsd-6-1-1-RELEASE:1.2
	riastradh-drm2-base2:1.4
	riastradh-drm2-base1:1.4
	riastradh-drm2:1.4.0.8
	riastradh-drm2-base:1.4
	rmind-smpnet:1.4.0.6
	rmind-smpnet-base:1.4
	netbsd-6-1:1.2.0.14
	netbsd-6-0-2-RELEASE:1.2
	netbsd-6-1-RELEASE:1.2
	khorben-n900:1.4.0.4
	netbsd-6-1-RC4:1.2
	netbsd-6-1-RC3:1.2
	agc-symver:1.4.0.2
	agc-symver-base:1.4
	netbsd-6-1-RC2:1.2
	netbsd-6-1-RC1:1.2
	yamt-pagecache-base8:1.3
	netbsd-6-0-1-RELEASE:1.2
	yamt-pagecache-base7:1.3
	matt-nb6-plus-nbase:1.2
	yamt-pagecache-base6:1.3
	netbsd-6-0:1.2.0.12
	netbsd-6-0-RELEASE:1.2
	netbsd-6-0-RC2:1.2
	tls-maxphys:1.3.0.2
	tls-maxphys-base:1.5
	matt-nb6-plus:1.2.0.10
	matt-nb6-plus-base:1.2
	netbsd-6-0-RC1:1.2
	jmcneill-usbmp-base10:1.3
	yamt-pagecache-base5:1.3
	jmcneill-usbmp-base9:1.3
	yamt-pagecache-base4:1.3
	jmcneill-usbmp-base8:1.3
	jmcneill-usbmp-base7:1.3
	jmcneill-usbmp-base6:1.3
	jmcneill-usbmp-base5:1.2
	jmcneill-usbmp-base4:1.3
	jmcneill-usbmp-base3:1.2
	jmcneill-usbmp-pre-base2:1.2
	jmcneill-usbmp-base2:1.2
	netbsd-6:1.2.0.8
	netbsd-6-base:1.2
	jmcneill-usbmp:1.2.0.6
	jmcneill-usbmp-base:1.2
	jmcneill-audiomp3:1.2.0.4
	jmcneill-audiomp3-base:1.2
	yamt-pagecache-base3:1.2
	yamt-pagecache-base2:1.2
	yamt-pagecache:1.2.0.2
	yamt-pagecache-base:1.2;
locks; strict;
comment	@# @;


1.5
date	2014.07.20.10.22.54;	author alnsn;	state Exp;
branches;
next	1.4;
commitid	WA5oNXrfReRIp6Jx;

1.4
date	2013.02.28.13.21.15;	author macallan;	state Exp;
branches
	1.4.10.1;
next	1.3;

1.3
date	2012.03.02.13.20.57;	author nonaka;	state Exp;
branches
	1.3.2.1;
next	1.2;

1.2
date	2011.09.01.14.07.36;	author macallan;	state Exp;
branches
	1.2.2.1
	1.2.6.1;
next	1.1;

1.1
date	2011.08.27.13.42.44;	author bouyer;	state Exp;
branches;
next	;

1.4.10.1
date	2014.08.10.06.53.56;	author tls;	state Exp;
branches;
next	;
commitid	7fY3uHKSIbCABMLx;

1.3.2.1
date	2013.06.23.06.20.04;	author tls;	state Exp;
branches;
next	1.3.2.2;
commitid	eVjr9caYRQbRGHUw;

1.3.2.2
date	2014.08.20.00.02.58;	author tls;	state Exp;
branches;
next	;
commitid	jTnpym9Qu0o4R1Nx;

1.2.2.1
date	2012.04.17.00.06.17;	author yamt;	state Exp;
branches;
next	1.2.2.2;

1.2.2.2
date	2014.05.22.11.39.44;	author yamt;	state Exp;
branches;
next	;
commitid	VUUXuyNWnt3AKwBx;

1.2.6.1
date	2012.03.04.00.46.04;	author mrg;	state Exp;
branches;
next	1.2.6.2;

1.2.6.2
date	2012.03.06.09.56.06;	author mrg;	state Exp;
branches;
next	1.2.6.3;

1.2.6.3
date	2012.03.06.18.26.35;	author mrg;	state Exp;
branches;
next	;


desc
@@


1.5
log
@Include sljit files.
@
text
@#	$NetBSD: files.loongson,v 1.4 2013/02/28 13:21:15 macallan Exp $

# Standard stanzas config(8) can't run without
maxpartitions 16
maxusers 8 16 64

file	arch/evbmips/loongson/autoconf.c
file	arch/evbmips/loongson/loongson_bus_io.c
file	arch/evbmips/loongson/loongson_bus_mem.c
file	kern/subr_disk_mbr.c
file	arch/evbmips/loongson/loongson_intr.c
file	arch/evbmips/evbmips/interrupt.c
file	arch/evbmips/loongson/gdium_machdep.c
file	arch/evbmips/loongson/generic2e_machdep.c
file	arch/evbmips/loongson/yeeloong_machdep.c
file	arch/evbmips/loongson/isa_machdep.c	isa
file	arch/evbmips/loongson/loongson2_machdep.c
file	arch/evbmips/loongson/machdep.c

file	arch/mips/mips/bus_dma.c
file	arch/mips/mips/mips3_clock.c
file	arch/mips/mips/mips3_clockintr.c

# Memory Disk
file	dev/md_root.c				memory_disk_hooks

# Stack-less Just-In-Time compiler
include	"external/bsd/sljit/conf/files.sljit"

include "dev/ata/files.ata"
include "dev/scsipi/files.scsipi"
include "dev/i2o/files.i2o"
include "dev/isa/files.isa"
include "dev/pci/files.pci"
include "dev/pci/files.agp"
include "dev/usb/files.usb"
include "dev/bluetooth/files.bluetooth"
include "dev/pckbport/files.pckbport"

device	mainbus {[addr = -1] }
attach	mainbus at root
file	arch/evbmips/loongson/mainbus.c		mainbus

file	arch/evbmips/loongson/bonito_mainbus.c	bonito_mainbus

device	cpu
attach	cpu at mainbus
file	arch/evbmips/evbmips/cpu.c		cpu

device	clock
attach	clock at mainbus

include "arch/mips/conf/files.bonito"

# AMD Geode CS5536 companion chip
file	arch/evbmips/loongson/dev/glx.c		bonito & pci

# AMD Geode CS5535/CS5536 PCI-ISA bridge
device	gcscpcib: isabus, sysmon_wdog, gpiobus
attach	gcscpcib at pci with gcscpcib_pci
file	arch/evbmips/loongson/dev/gcscpcib_pci.c gcscpcib_pci
file	dev/ic/gcscpcib.c			gcscpcib

# Other PCI-ISA bridges
device	pcib: isabus
attach	pcib at pci
file	arch/evbmips/loongson/dev/pcib.c	pcib | gcscpcib

file	arch/mips/pci/pciide_machdep.c		pciide_common

device	mcclock: mc146818
attach	mcclock at isa with mcclock_isa
file	arch/evbmips/isa/mcclock_isa.c		mcclock_isa

# Lemote Yeeloong KB3310B Embedded Controller
device	ykbec
attach	ykbec at isa
file	arch/evbmips/loongson/dev/kb3310.c	ykbec needs-flag

# Gdium ST7 controller
device	stvii
attach	stvii at iic
file	arch/evbmips/loongson/dev/stvii.c			stvii needs-flag
defflag opt_stvii.h STVII_DEBUG

# SM502 OHCI
#attach	ohci at voyager with ohci_voyager
#file	arch/loongson/dev/ohci_voyager.c	ohci_voyager
@


1.4
log
@add poweroff support, make sure we actually charge the battery
@
text
@d1 1
a1 1
#	$NetBSD: files.loongson,v 1.3 2012/03/02 13:20:57 nonaka Exp $
d27 3
@


1.4.10.1
log
@Rebase.
@
text
@d1 1
a1 1
#	$NetBSD: files.loongson,v 1.5 2014/07/20 10:22:54 alnsn Exp $
a26 3
# Stack-less Just-In-Time compiler
include	"external/bsd/sljit/conf/files.sljit"

@


1.3
log
@Added Lemote Yeeloong Notebook support.
@
text
@d1 1
a1 1
#	$NetBSD: files.loongson,v 1.2 2011/09/01 14:07:36 macallan Exp $
d80 1
a80 1
file	arch/evbmips/loongson/dev/stvii.c	stvii
@


1.3.2.1
log
@resync from head
@
text
@d1 1
a1 1
#	$NetBSD$
d80 1
a80 1
file	arch/evbmips/loongson/dev/stvii.c			stvii needs-flag
@


1.3.2.2
log
@Rebase to HEAD as of a few days ago.
@
text
@a26 3
# Stack-less Just-In-Time compiler
include	"external/bsd/sljit/conf/files.sljit"

@


1.2
log
@a driver for the gdium's ST7 microcontroller
so far it only reports AC and lid switch events to sysmon
@
text
@d1 1
a1 1
#	$NetBSD: files.loongson,v 1.1 2011/08/27 13:42:44 bouyer Exp $
d16 1
a16 1
file	arch/evbmips/loongson/isa_machdep.c		isa
d29 5
a33 5
include	"dev/i2o/files.i2o"
include	"dev/isa/files.isa"
include	"dev/pci/files.pci"
include	"dev/pci/files.agp"
include	"dev/usb/files.usb"
d35 1
d39 1
a39 1
file	arch/evbmips/loongson/mainbus.c			mainbus
d41 1
a41 1
file   arch/evbmips/loongson/bonito_mainbus.c		bonito_mainbus
d56 2
a57 2
device  gcscpcib: isabus, sysmon_wdog, gpiobus
attach  gcscpcib at pci with gcscpcib_pci
d75 1
a75 1
file	arch/evbmips/loongson/dev/kb3310.c		ykbec needs-flag
d80 1
a80 1
file	arch/evbmips/loongson/dev/stvii.c			stvii
d85 1
a85 1
#file	arch/loongson/dev/ohci_voyager.c		ohci_voyager
@


1.2.2.1
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: files.loongson,v 1.2 2011/09/01 14:07:36 macallan Exp $
d16 1
a16 1
file	arch/evbmips/loongson/isa_machdep.c	isa
d29 5
a33 5
include "dev/i2o/files.i2o"
include "dev/isa/files.isa"
include "dev/pci/files.pci"
include "dev/pci/files.agp"
include "dev/usb/files.usb"
a34 1
include "dev/pckbport/files.pckbport"
d38 1
a38 1
file	arch/evbmips/loongson/mainbus.c		mainbus
d40 1
a40 1
file	arch/evbmips/loongson/bonito_mainbus.c	bonito_mainbus
d55 2
a56 2
device	gcscpcib: isabus, sysmon_wdog, gpiobus
attach	gcscpcib at pci with gcscpcib_pci
d74 1
a74 1
file	arch/evbmips/loongson/dev/kb3310.c	ykbec needs-flag
d79 1
a79 1
file	arch/evbmips/loongson/dev/stvii.c	stvii
d84 1
a84 1
#file	arch/loongson/dev/ohci_voyager.c	ohci_voyager
@


1.2.2.2
log
@sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")
@
text
@d1 1
a1 1
#	$NetBSD: files.loongson,v 1.2.2.1 2012/04/17 00:06:17 yamt Exp $
d80 1
a80 1
file	arch/evbmips/loongson/dev/stvii.c			stvii needs-flag
@


1.2.6.1
log
@sync to latest -current.
@
text
@d1 1
a1 1
#	$NetBSD$
d16 1
a16 1
file	arch/evbmips/loongson/isa_machdep.c	isa
d29 5
a33 5
include "dev/i2o/files.i2o"
include "dev/isa/files.isa"
include "dev/pci/files.pci"
include "dev/pci/files.agp"
include "dev/usb/files.usb"
a34 1
include "dev/pckbport/files.pckbport"
d38 1
a38 1
file	arch/evbmips/loongson/mainbus.c		mainbus
d40 1
a40 1
file	arch/evbmips/loongson/bonito_mainbus.c	bonito_mainbus
d55 2
a56 2
device	gcscpcib: isabus, sysmon_wdog, gpiobus
attach	gcscpcib at pci with gcscpcib_pci
d74 1
a74 1
file	arch/evbmips/loongson/dev/kb3310.c	ykbec needs-flag
d79 1
a79 1
file	arch/evbmips/loongson/dev/stvii.c	stvii
d84 1
a84 1
#file	arch/loongson/dev/ohci_voyager.c	ohci_voyager
@


1.2.6.2
log
@sync to -current
@
text
@d1 1
a1 1
#	$NetBSD: files.loongson,v 1.2.6.1 2012/03/04 00:46:04 mrg Exp $
d16 1
a16 1
file	arch/evbmips/loongson/isa_machdep.c		isa
d29 5
a33 5
include	"dev/i2o/files.i2o"
include	"dev/isa/files.isa"
include	"dev/pci/files.pci"
include	"dev/pci/files.agp"
include	"dev/usb/files.usb"
d35 1
d39 1
a39 1
file	arch/evbmips/loongson/mainbus.c			mainbus
d41 1
a41 1
file   arch/evbmips/loongson/bonito_mainbus.c		bonito_mainbus
d56 2
a57 2
device  gcscpcib: isabus, sysmon_wdog, gpiobus
attach  gcscpcib at pci with gcscpcib_pci
d75 1
a75 1
file	arch/evbmips/loongson/dev/kb3310.c		ykbec needs-flag
d80 1
a80 1
file	arch/evbmips/loongson/dev/stvii.c			stvii
d85 1
a85 1
#file	arch/loongson/dev/ohci_voyager.c		ohci_voyager
@


1.2.6.3
log
@sync to -current
@
text
@d1 1
a1 1
#	$NetBSD: files.loongson,v 1.2.6.2 2012/03/06 09:56:06 mrg Exp $
d16 1
a16 1
file	arch/evbmips/loongson/isa_machdep.c	isa
d29 5
a33 5
include "dev/i2o/files.i2o"
include "dev/isa/files.isa"
include "dev/pci/files.pci"
include "dev/pci/files.agp"
include "dev/usb/files.usb"
a34 1
include "dev/pckbport/files.pckbport"
d38 1
a38 1
file	arch/evbmips/loongson/mainbus.c		mainbus
d40 1
a40 1
file	arch/evbmips/loongson/bonito_mainbus.c	bonito_mainbus
d55 2
a56 2
device	gcscpcib: isabus, sysmon_wdog, gpiobus
attach	gcscpcib at pci with gcscpcib_pci
d74 1
a74 1
file	arch/evbmips/loongson/dev/kb3310.c	ykbec needs-flag
d79 1
a79 1
file	arch/evbmips/loongson/dev/stvii.c	stvii
d84 1
a84 1
#file	arch/loongson/dev/ohci_voyager.c	ohci_voyager
@


1.1
log
@Add loongson support to evbmips, based on the OpenBSD loongson port
and the existing evbmips/gdium support.
This has been tested on a lemote fuloong device (boots multiuser),
should also support other lemote devices (maybe with minor adjustments,
or adding missing drivers). There is some gdium support here too, but it
may not be yet complete (someone with a gdium would need to have a look,
hi macallan@@ :)
loongson kernels are 64bits only: the loongson2f has ressources located
above the 2Gb physical address, and it's much easier to access it
using XKPHYS than trying to make it fit in the limited 32bit kernel
virtual space.
@
text
@d1 1
a1 1
#	$NetBSD: $
a75 10
# Silicon Motion SM502 master device
#device	voyager {}: gpiobus
#attach	voyager at pci
#file	arch/loongson/dev/voyager.c			voyager

# SM502 specific I2C bus bit-banging
#device	gdiumiic: i2cbus, i2c_bitbang
#attach	gdiumiic at gpio
#file	arch/loongson/dev/gdiumiic.c			gdiumiic

d77 4
a80 8
#device	stsec
#attach	stsec at i2c
#file	arch/loongson/dev/stsec.c			stsec

# Gdium M41T8x RTC
#device	mfokclock
#attach	mfokclock at i2c
#file	arch/loongson/dev/m41t8xclock.c			mfokclock
a84 6

# Silicon Motion SM502/SM712 frame buffer
#device	smfb: wsemuldisplaydev, rasops16
#attach	smfb at pci with smfb_pci
#attach	smfb at voyager with smfb_voyager
#file	arch/loongson/dev/smfb.c			smfb	needs-flag
@

