head	1.3;
access;
symbols
	netbsd-11-0-RC6:1.3
	netbsd-11-0-RC5:1.3
	netbsd-11-0-RC4:1.3
	netbsd-11-0-RC3:1.3
	netbsd-11-0-RC2:1.3
	netbsd-11-0-RC1:1.3
	perseant-exfatfs-base-20250801:1.3
	netbsd-11:1.3.0.2
	netbsd-11-base:1.3
	netbsd-10-1-RELEASE:1.1
	perseant-exfatfs-base-20240630:1.1
	perseant-exfatfs:1.1.0.58
	perseant-exfatfs-base:1.1
	netbsd-8-3-RELEASE:1.1
	netbsd-9-4-RELEASE:1.1
	netbsd-10-0-RELEASE:1.1
	netbsd-10-0-RC6:1.1
	netbsd-10-0-RC5:1.1
	netbsd-10-0-RC4:1.1
	netbsd-10-0-RC3:1.1
	netbsd-10-0-RC2:1.1
	thorpej-ifq:1.1.0.56
	thorpej-ifq-base:1.1
	thorpej-altq-separation:1.1.0.54
	thorpej-altq-separation-base:1.1
	netbsd-10-0-RC1:1.1
	netbsd-10:1.1.0.52
	netbsd-10-base:1.1
	bouyer-sunxi-drm:1.1.0.50
	bouyer-sunxi-drm-base:1.1
	netbsd-9-3-RELEASE:1.1
	thorpej-i2c-spi-conf2:1.1.0.48
	thorpej-i2c-spi-conf2-base:1.1
	thorpej-futex2:1.1.0.46
	thorpej-futex2-base:1.1
	thorpej-cfargs2:1.1.0.44
	thorpej-cfargs2-base:1.1
	cjep_sun2x-base1:1.1
	cjep_sun2x:1.1.0.42
	cjep_sun2x-base:1.1
	cjep_staticlib_x-base1:1.1
	netbsd-9-2-RELEASE:1.1
	cjep_staticlib_x:1.1.0.40
	cjep_staticlib_x-base:1.1
	thorpej-i2c-spi-conf:1.1.0.38
	thorpej-i2c-spi-conf-base:1.1
	thorpej-cfargs:1.1.0.36
	thorpej-cfargs-base:1.1
	thorpej-futex:1.1.0.34
	thorpej-futex-base:1.1
	netbsd-9-1-RELEASE:1.1
	bouyer-xenpvh-base2:1.1
	phil-wifi-20200421:1.1
	bouyer-xenpvh-base1:1.1
	phil-wifi-20200411:1.1
	bouyer-xenpvh:1.1.0.32
	bouyer-xenpvh-base:1.1
	is-mlppp:1.1.0.30
	is-mlppp-base:1.1
	phil-wifi-20200406:1.1
	netbsd-8-2-RELEASE:1.1
	ad-namecache-base3:1.1
	netbsd-9-0-RELEASE:1.1
	netbsd-9-0-RC2:1.1
	ad-namecache-base2:1.1
	ad-namecache-base1:1.1
	ad-namecache:1.1.0.28
	ad-namecache-base:1.1
	netbsd-9-0-RC1:1.1
	phil-wifi-20191119:1.1
	netbsd-9:1.1.0.26
	netbsd-9-base:1.1
	phil-wifi-20190609:1.1
	netbsd-8-1-RELEASE:1.1
	netbsd-8-1-RC1:1.1
	isaki-audio2:1.1.0.24
	isaki-audio2-base:1.1
	pgoyette-compat-merge-20190127:1.1
	pgoyette-compat-20190127:1.1
	pgoyette-compat-20190118:1.1
	pgoyette-compat-1226:1.1
	pgoyette-compat-1126:1.1
	pgoyette-compat-1020:1.1
	pgoyette-compat-0930:1.1
	pgoyette-compat-0906:1.1
	pgoyette-compat-0728:1.1
	netbsd-8-0-RELEASE:1.1
	phil-wifi:1.1.0.22
	phil-wifi-base:1.1
	pgoyette-compat-0625:1.1
	netbsd-8-0-RC2:1.1
	pgoyette-compat-0521:1.1
	pgoyette-compat-0502:1.1
	pgoyette-compat-0422:1.1
	netbsd-8-0-RC1:1.1
	pgoyette-compat-0415:1.1
	pgoyette-compat-0407:1.1
	pgoyette-compat-0330:1.1
	pgoyette-compat-0322:1.1
	pgoyette-compat-0315:1.1
	pgoyette-compat:1.1.0.20
	pgoyette-compat-base:1.1
	tls-maxphys:1.1.0.18
	tls-maxphys-base-20171202:1.1
	matt-nb8-mediatek:1.1.0.16
	matt-nb8-mediatek-base:1.1
	nick-nhusb-base-20170825:1.1
	perseant-stdc-iso10646:1.1.0.14
	perseant-stdc-iso10646-base:1.1
	netbsd-8:1.1.0.12
	netbsd-8-base:1.1
	prg-localcount2-base3:1.1
	prg-localcount2-base2:1.1
	prg-localcount2-base1:1.1
	prg-localcount2:1.1.0.10
	prg-localcount2-base:1.1
	pgoyette-localcount-20170426:1.1
	bouyer-socketcan-base1:1.1
	jdolecek-ncq:1.1.0.8
	jdolecek-ncq-base:1.1
	pgoyette-localcount-20170320:1.1
	nick-nhusb-base-20170204:1.1
	bouyer-socketcan:1.1.0.6
	bouyer-socketcan-base:1.1
	pgoyette-localcount-20170107:1.1
	nick-nhusb-base-20161204:1.1
	pgoyette-localcount-20161104:1.1
	nick-nhusb-base-20161004:1.1
	localcount-20160914:1.1
	pgoyette-localcount-20160806:1.1
	pgoyette-localcount-20160726:1.1
	pgoyette-localcount:1.1.0.4
	pgoyette-localcount-base:1.1
	nick-nhusb-base-20160907:1.1
	nick-nhusb-base-20160529:1.1
	nick-nhusb-base-20160422:1.1
	nick-nhusb-base-20160319:1.1
	nick-nhusb-base-20151226:1.1
	nick-nhusb-base-20150921:1.1
	nick-nhusb-base-20150606:1.1
	nick-nhusb:1.1.0.2
	nick-nhusb-base-20150406:1.1;
locks; strict;
comment	@# @;


1.3
date	2025.01.01.17.53.07;	author skrll;	state Exp;
branches;
next	1.2;
commitid	Ag1WRTeu7GNR8ODF;

1.2
date	2024.08.13.07.20.23;	author skrll;	state Exp;
branches;
next	1.1;
commitid	adWwFhYjTaECdDlF;

1.1
date	2015.03.28.16.13.56;	author matt;	state Exp;
branches
	1.1.2.1
	1.1.18.1
	1.1.58.1;
next	;
commitid	SobwTQinlgtRiofy;

1.1.2.1
date	2015.03.28.16.13.56;	author skrll;	state dead;
branches;
next	1.1.2.2;
commitid	pz01Zhy7RP6iGxgy;

1.1.2.2
date	2015.04.06.15.18.01;	author skrll;	state Exp;
branches;
next	;
commitid	pz01Zhy7RP6iGxgy;

1.1.18.1
date	2015.03.28.16.13.56;	author jdolecek;	state dead;
branches;
next	1.1.18.2;
commitid	XcIYRZTAh1LmerhA;

1.1.18.2
date	2017.12.03.11.36.38;	author jdolecek;	state Exp;
branches;
next	;
commitid	XcIYRZTAh1LmerhA;

1.1.58.1
date	2025.08.02.05.56.02;	author perseant;	state Exp;
branches;
next	;
commitid	23j6GFaDws3O875G;


desc
@@


1.3
log
@risc-v: add support for PCI and the PCIe controller in the JH7110 SoC.

Testing as working with xhci and nvme on VisionFive2.

Uses legacy PCI interrupts currently. MSIs to be added later.

pcihost_fdt code is 99% the same as the Arm version and should be shared.
@
text
@#
# $NetBSD: std.riscv,v 1.2 2024/08/13 07:20:23 skrll Exp $
#
machine		riscv

include 	"conf/std"

options  	EXEC_ELF32
options  	EXEC_SCRIPT

options 	PCI_NETBSD_CONFIGURE
options 	__HAVE_PCI_CONF_HOOK

options 	SOC_SUN20I_D1

#no defflag COMPAT_09
#no defflag COMPAT_10
#no defflag COMPAT_11
#no defflag COMPAT_12
#no defflag COMPAT_13
#no defflag COMPAT_14
#no defflag COMPAT_15
#no defflag COMPAT_16
#no defflag COMPAT_20
#no defflag COMPAT_30
#no defflag COMPAT_40
#no defflag COMPAT_50
#no defflag COMPAT_60

#obsolete defflag COMPAT_60
#obsolete defflag COMPAT_50
#obsolete defflag COMPAT_40
#obsolete defflag COMPAT_30
#obsolete defflag COMPAT_20
#obsolete defflag COMPAT_16
#obsolete defflag COMPAT_15
#obsolete defflag COMPAT_14
#obsolete defflag COMPAT_13
#obsolete defflag COMPAT_12
#obsolete defflag COMPAT_11
#obsolete defflag COMPAT_10
#obsolete defflag COMPAT_09

@


1.2
log
@risc-v: Allwinner D1 support

Add the Allwinnder D1 support provided by Rui-Xiang Guo and updated
but me.

    https://mail-index.netbsd.org/port-riscv/2024/08/04/msg000127.html

Only driver listed as attaching in

    https://github.com/picohive/netbsd-mangopi-mq-pro/blob/main/boot.log

have been added.

There is no need for the platform stuff as the board's u-boot is able
to load bootriscv64.efi and boot a generic kernel.
@
text
@d2 1
a2 1
# $NetBSD: std.riscv,v 1.1 2015/03/28 16:13:56 matt Exp $
d11 3
@


1.1
log
@Beginnings of RISCV kernel support.  Note that the pmap support is not yet
committed and probably won't be for awhile.  This is mostly preliminary
waiting for the supervisor specification to come out.  Lots of missing pieces
but it mostly builds.
@
text
@d2 1
a2 1
# $NetBSD$
d11 2
@


1.1.58.1
log
@Sync with HEAD
@
text
@d2 1
a2 1
# $NetBSD: std.riscv,v 1.3 2025/01/01 17:53:07 skrll Exp $
a10 5
options 	PCI_NETBSD_CONFIGURE
options 	__HAVE_PCI_CONF_HOOK

options 	SOC_SUN20I_D1

@


1.1.18.1
log
@file std.riscv was added on branch tls-maxphys on 2017-12-03 11:36:38 +0000
@
text
@d1 38
@


1.1.18.2
log
@update from HEAD
@
text
@a0 38
#
# $NetBSD$
#
machine		riscv

include 	"conf/std"

options  	EXEC_ELF32
options  	EXEC_SCRIPT

#no defflag COMPAT_09
#no defflag COMPAT_10
#no defflag COMPAT_11
#no defflag COMPAT_12
#no defflag COMPAT_13
#no defflag COMPAT_14
#no defflag COMPAT_15
#no defflag COMPAT_16
#no defflag COMPAT_20
#no defflag COMPAT_30
#no defflag COMPAT_40
#no defflag COMPAT_50
#no defflag COMPAT_60

#obsolete defflag COMPAT_60
#obsolete defflag COMPAT_50
#obsolete defflag COMPAT_40
#obsolete defflag COMPAT_30
#obsolete defflag COMPAT_20
#obsolete defflag COMPAT_16
#obsolete defflag COMPAT_15
#obsolete defflag COMPAT_14
#obsolete defflag COMPAT_13
#obsolete defflag COMPAT_12
#obsolete defflag COMPAT_11
#obsolete defflag COMPAT_10
#obsolete defflag COMPAT_09

@


1.1.2.1
log
@file std.riscv was added on branch nick-nhusb on 2015-04-06 15:18:01 +0000
@
text
@d1 38
@


1.1.2.2
log
@Sync with HEAD
@
text
@a0 38
#
# $NetBSD: std.riscv,v 1.1 2015/03/28 16:13:56 matt Exp $
#
machine		riscv

include 	"conf/std"

options  	EXEC_ELF32
options  	EXEC_SCRIPT

#no defflag COMPAT_09
#no defflag COMPAT_10
#no defflag COMPAT_11
#no defflag COMPAT_12
#no defflag COMPAT_13
#no defflag COMPAT_14
#no defflag COMPAT_15
#no defflag COMPAT_16
#no defflag COMPAT_20
#no defflag COMPAT_30
#no defflag COMPAT_40
#no defflag COMPAT_50
#no defflag COMPAT_60

#obsolete defflag COMPAT_60
#obsolete defflag COMPAT_50
#obsolete defflag COMPAT_40
#obsolete defflag COMPAT_30
#obsolete defflag COMPAT_20
#obsolete defflag COMPAT_16
#obsolete defflag COMPAT_15
#obsolete defflag COMPAT_14
#obsolete defflag COMPAT_13
#obsolete defflag COMPAT_12
#obsolete defflag COMPAT_11
#obsolete defflag COMPAT_10
#obsolete defflag COMPAT_09

@


