CVS commit: src/sys/arch/arc/include
Module Name:src Committed By: skrll Date: Tue Aug 16 14:00:03 UTC 2022 Modified Files: src/sys/arch/arc/include: pci_machdep.h Log Message: PRovide pci_intr_setattr To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/sys/arch/arc/include/pci_machdep.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/arc/include/pci_machdep.h diff -u src/sys/arch/arc/include/pci_machdep.h:1.14 src/sys/arch/arc/include/pci_machdep.h:1.15 --- src/sys/arch/arc/include/pci_machdep.h:1.14 Tue Aug 16 13:59:18 2022 +++ src/sys/arch/arc/include/pci_machdep.h Tue Aug 16 14:00:03 2022 @@ -1,4 +1,4 @@ -/* $NetBSD: pci_machdep.h,v 1.14 2022/08/16 13:59:18 skrll Exp $ */ +/* $NetBSD: pci_machdep.h,v 1.15 2022/08/16 14:00:03 skrll Exp $ */ /* NetBSD: pci_machdep.h,v 1.3 1999/03/19 03:40:46 cgd Exp */ /* @@ -66,6 +66,8 @@ struct arc_pci_chipset { pci_intr_handle_t *); const char *(*pc_intr_string)(pci_chipset_tag_t, pci_intr_handle_t, char *, size_t); + int (*pc_intr_setattr)(void *, pci_intr_handle_t *, + int, uint64_t); void *(*pc_intr_establish)(pci_chipset_tag_t, pci_intr_handle_t, int, int (*)(void *), void *); void (*pc_intr_disestablish)(pci_chipset_tag_t, void *); @@ -103,4 +105,13 @@ struct arc_pci_chipset { #define pci_conf_hook(c, b, d, f, i) \ (*(c)->pc_conf_hook)((c), (b), (d), (f), (i)) +static inline int +pci_intr_setattr(pci_chipset_tag_t pc, pci_intr_handle_t *ihp, +int attr, uint64_t data) +{ + if (!pc->pc_intr_setattr) + return ENODEV; + return pc->pc_intr_setattr(pc, ihp, attr, data); +} + #endif /* _MACHINE_PCI_MACHDEP_H_ */
CVS commit: src/sys/arch/arc/include
Module Name:src Committed By: skrll Date: Tue Aug 16 14:00:03 UTC 2022 Modified Files: src/sys/arch/arc/include: pci_machdep.h Log Message: PRovide pci_intr_setattr To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/sys/arch/arc/include/pci_machdep.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/arc/include
Module Name:src Committed By: skrll Date: Tue Aug 16 13:59:18 UTC 2022 Modified Files: src/sys/arch/arc/include: pci_machdep.h Log Message: Multiple inclusion protection. To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 src/sys/arch/arc/include/pci_machdep.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/arc/include/pci_machdep.h diff -u src/sys/arch/arc/include/pci_machdep.h:1.13 src/sys/arch/arc/include/pci_machdep.h:1.14 --- src/sys/arch/arc/include/pci_machdep.h:1.13 Tue Aug 16 13:57:29 2022 +++ src/sys/arch/arc/include/pci_machdep.h Tue Aug 16 13:59:18 2022 @@ -1,4 +1,4 @@ -/* $NetBSD: pci_machdep.h,v 1.13 2022/08/16 13:57:29 skrll Exp $ */ +/* $NetBSD: pci_machdep.h,v 1.14 2022/08/16 13:59:18 skrll Exp $ */ /* NetBSD: pci_machdep.h,v 1.3 1999/03/19 03:40:46 cgd Exp */ /* @@ -28,6 +28,9 @@ * rights to redistribute these changes. */ +#ifndef _MACHINE_PCI_MACHDEP_H_ +#define _MACHINE_PCI_MACHDEP_H_ + /* * Machine-specific definitions for PCI autoconfiguration. */ @@ -99,3 +102,5 @@ struct arc_pci_chipset { (*(c)->pc_conf_interrupt)((c), (b), (d), (f), (s), (i)) #define pci_conf_hook(c, b, d, f, i) \ (*(c)->pc_conf_hook)((c), (b), (d), (f), (i)) + +#endif /* _MACHINE_PCI_MACHDEP_H_ */
CVS commit: src/sys/arch/arc/include
Module Name:src Committed By: skrll Date: Tue Aug 16 13:59:18 UTC 2022 Modified Files: src/sys/arch/arc/include: pci_machdep.h Log Message: Multiple inclusion protection. To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 src/sys/arch/arc/include/pci_machdep.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/arc/include
Module Name:src Committed By: skrll Date: Tue Aug 16 13:57:29 UTC 2022 Modified Files: src/sys/arch/arc/include: pci_machdep.h Log Message: Whitespace To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/sys/arch/arc/include/pci_machdep.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/arc/include/pci_machdep.h diff -u src/sys/arch/arc/include/pci_machdep.h:1.12 src/sys/arch/arc/include/pci_machdep.h:1.13 --- src/sys/arch/arc/include/pci_machdep.h:1.12 Tue Jul 7 03:38:45 2020 +++ src/sys/arch/arc/include/pci_machdep.h Tue Aug 16 13:57:29 2022 @@ -1,4 +1,4 @@ -/* $NetBSD: pci_machdep.h,v 1.12 2020/07/07 03:38:45 thorpej Exp $ */ +/* $NetBSD: pci_machdep.h,v 1.13 2022/08/16 13:57:29 skrll Exp $ */ /* NetBSD: pci_machdep.h,v 1.3 1999/03/19 03:40:46 cgd Exp */ /* @@ -97,5 +97,5 @@ struct arc_pci_chipset { (*(c)->pc_intr_disestablish)((c), (iv)) #define pci_conf_interrupt(c, b, d, f, s, i)\ (*(c)->pc_conf_interrupt)((c), (b), (d), (f), (s), (i)) -#define pci_conf_hook(c, b, d, f, i)\ +#define pci_conf_hook(c, b, d, f, i) \ (*(c)->pc_conf_hook)((c), (b), (d), (f), (i))
CVS commit: src/sys/arch/arc/include
Module Name:src Committed By: skrll Date: Tue Aug 16 13:57:29 UTC 2022 Modified Files: src/sys/arch/arc/include: pci_machdep.h Log Message: Whitespace To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/sys/arch/arc/include/pci_machdep.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/arc/include
Module Name:src Committed By: skrll Date: Fri Apr 23 06:13:06 UTC 2021 Modified Files: src/sys/arch/arc/include: bus_funcs.h Log Message: Use sys/cdefs.h __CONCAT3 To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/arch/arc/include/bus_funcs.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/arc/include/bus_funcs.h diff -u src/sys/arch/arc/include/bus_funcs.h:1.1 src/sys/arch/arc/include/bus_funcs.h:1.2 --- src/sys/arch/arc/include/bus_funcs.h:1.1 Fri Jul 1 17:09:58 2011 +++ src/sys/arch/arc/include/bus_funcs.h Fri Apr 23 06:13:05 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: bus_funcs.h,v 1.1 2011/07/01 17:09:58 dyoung Exp $ */ +/* $NetBSD: bus_funcs.h,v 1.2 2021/04/23 06:13:05 skrll Exp $ */ /* NetBSD: bus.h,v 1.27 2000/03/15 16:44:50 drochner Exp */ /* $OpenBSD: bus.h,v 1.15 1999/08/11 23:15:21 niklas Exp $ */ @@ -67,15 +67,6 @@ #define _ARC_BUS_FUNCS_H_ #ifdef _KERNEL -/* - * Utility macro; do not use outside this file. - */ -#ifdef __STDC__ -#define __CONCAT3(a,b,c) a##b##c -#else -#define __CONCAT3(a,b,c) a/**/b/**/c -#endif - /* machine dependent utility function for bus_space users */ void arc_bus_space_malloc_set_safe(void); void arc_bus_space_init(bus_space_tag_t, const char *,
CVS commit: src/sys/arch/arc/include
Module Name:src Committed By: skrll Date: Fri Apr 23 06:13:06 UTC 2021 Modified Files: src/sys/arch/arc/include: bus_funcs.h Log Message: Use sys/cdefs.h __CONCAT3 To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/arch/arc/include/bus_funcs.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/arc/include
Module Name:src Committed By: thorpej Date: Sun Apr 7 03:42:31 UTC 2019 Modified Files: src/sys/arch/arc/include: param.h Log Message: G/C some obsolete definitions (we haven't had a fixed u. for quite some time). To generate a diff of this commit: cvs rdiff -u -r1.32 -r1.33 src/sys/arch/arc/include/param.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/arc/include/param.h diff -u src/sys/arch/arc/include/param.h:1.32 src/sys/arch/arc/include/param.h:1.33 --- src/sys/arch/arc/include/param.h:1.32 Thu Feb 7 04:31:49 2019 +++ src/sys/arch/arc/include/param.h Sun Apr 7 03:42:31 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: param.h,v 1.32 2019/02/07 04:31:49 mrg Exp $ */ +/* $NetBSD: param.h,v 1.33 2019/04/07 03:42:31 thorpej Exp $ */ /* $OpenBSD: param.h,v 1.9 1997/04/30 09:54:15 niklas Exp $ */ /* @@ -59,15 +59,6 @@ #define KERNBASE 0x8000 /* start of kernel virtual */ #define BTOPKERNBASE ((u_long)KERNBASE >> PGSHIFT) -#if defined(_LOCORE) && defined(notyet) -#define UADDR 0xc000 /* address of u */ -#else -#define UADDR 0xc000 /* address of u */ -#endif -#define USPACE (UPAGES*NBPG) /* size of u-area in bytes */ -#define UVPN (UADDR>>PGSHIFT)/* virtual page number of u */ -#define KERNELSTACK (UADDR+UPAGES*NBPG) /* top of kernel stack */ - /* bytes to disk blocks */ #define btodb(x) ((x) >> DEV_BSHIFT) #define dbtob(x) ((x) << DEV_BSHIFT)
CVS commit: src/sys/arch/arc/include
Module Name:src Committed By: thorpej Date: Sun Apr 7 03:42:31 UTC 2019 Modified Files: src/sys/arch/arc/include: param.h Log Message: G/C some obsolete definitions (we haven't had a fixed u. for quite some time). To generate a diff of this commit: cvs rdiff -u -r1.32 -r1.33 src/sys/arch/arc/include/param.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/arc/include
Module Name:src Committed By: christos Date: Thu Mar 28 08:28:16 UTC 2019 Modified Files: src/sys/arch/arc/include: vmparam.h Log Message: Expose kernel variables only to kernel. XXX: move this variable somewhere better? To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 src/sys/arch/arc/include/vmparam.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/arc/include/vmparam.h diff -u src/sys/arch/arc/include/vmparam.h:1.10 src/sys/arch/arc/include/vmparam.h:1.11 --- src/sys/arch/arc/include/vmparam.h:1.10 Wed Dec 16 18:19:06 2009 +++ src/sys/arch/arc/include/vmparam.h Thu Mar 28 04:28:16 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: vmparam.h,v 1.10 2009/12/16 23:19:06 matt Exp $ */ +/* $NetBSD: vmparam.h,v 1.11 2019/03/28 08:28:16 christos Exp $ */ /* $OpenBSD: vmparam.h,v 1.3 1997/04/19 17:19:59 pefo Exp $ */ /* NetBSD: vmparam.h,v 1.5 1994/10/26 21:10:10 cgd Exp */ @@ -19,6 +19,7 @@ #ifndef KSEG2IOBUFSIZE #define KSEG2IOBUFSIZE kseg2iobufsize /* reserve PTEs for KSEG2 I/O space */ - +#ifdef _KERNEL extern vsize_t kseg2iobufsize; #endif +#endif
CVS commit: src/sys/arch/arc/include
Module Name:src Committed By: christos Date: Thu Mar 28 08:28:16 UTC 2019 Modified Files: src/sys/arch/arc/include: vmparam.h Log Message: Expose kernel variables only to kernel. XXX: move this variable somewhere better? To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 src/sys/arch/arc/include/vmparam.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/arc/include
Module Name:src Committed By: maya Date: Wed Jul 13 00:04:28 UTC 2016 Modified Files: src/sys/arch/arc/include: param.h Log Message: Avoid redefining UPAGES (now defined in mips/mips_param.h) Fixes build To generate a diff of this commit: cvs rdiff -u -r1.29 -r1.30 src/sys/arch/arc/include/param.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/arc/include
Module Name:src Committed By: maya Date: Wed Jul 13 00:04:28 UTC 2016 Modified Files: src/sys/arch/arc/include: param.h Log Message: Avoid redefining UPAGES (now defined in mips/mips_param.h) Fixes build To generate a diff of this commit: cvs rdiff -u -r1.29 -r1.30 src/sys/arch/arc/include/param.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/arc/include/param.h diff -u src/sys/arch/arc/include/param.h:1.29 src/sys/arch/arc/include/param.h:1.30 --- src/sys/arch/arc/include/param.h:1.29 Fri Mar 18 16:17:22 2011 +++ src/sys/arch/arc/include/param.h Wed Jul 13 00:04:28 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: param.h,v 1.29 2011/03/18 16:17:22 tsutsui Exp $ */ +/* $NetBSD: param.h,v 1.30 2016/07/13 00:04:28 maya Exp $ */ /* $OpenBSD: param.h,v 1.9 1997/04/30 09:54:15 niklas Exp $ */ /* @@ -67,7 +67,6 @@ #define SSIZE 1 /* initial stack size/NBPG */ #define SINCR 1 /* increment of stack/NBPG */ -#define UPAGES 2 /* pages of u-area */ #if defined(_LOCORE) && defined(notyet) #define UADDR 0xc000 /* address of u */ #else
CVS commit: src/sys/arch/arc/include
Module Name:src Committed By: he Date: Wed Nov 16 12:40:53 UTC 2011 Modified Files: src/sys/arch/arc/include: intr.h Log Message: Make sure struct clockframe is declared before declaring a parameter as a pointer to that struct; fixes build problem for getfstypename.c as part of libkern. To generate a diff of this commit: cvs rdiff -u -r1.23 -r1.24 src/sys/arch/arc/include/intr.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/arc/include/intr.h diff -u src/sys/arch/arc/include/intr.h:1.23 src/sys/arch/arc/include/intr.h:1.24 --- src/sys/arch/arc/include/intr.h:1.23 Sun Feb 20 07:52:42 2011 +++ src/sys/arch/arc/include/intr.h Wed Nov 16 12:40:53 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: intr.h,v 1.23 2011/02/20 07:52:42 matt Exp $ */ +/* $NetBSD: intr.h,v 1.24 2011/11/16 12:40:53 he Exp $ */ /*- * Copyright (c) 2000, 2001 The NetBSD Foundation, Inc. @@ -37,6 +37,8 @@ #ifdef _KERNEL #ifndef _LOCORE +struct clockframe; + void arc_set_intr(uint32_t, uint32_t (*)(uint32_t, struct clockframe *), int); extern uint32_t cpu_int_mask;
CVS commit: src/sys/arch/arc/include
Module Name:src Committed By: tsutsui Date: Fri Mar 18 16:17:22 UTC 2011 Modified Files: src/sys/arch/arc/include: param.h Log Message: - no need to define MACHINE_ARCH in MD header - include mips/mips_param.h after MACHINE is defined To generate a diff of this commit: cvs rdiff -u -r1.28 -r1.29 src/sys/arch/arc/include/param.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/arc/include/param.h diff -u src/sys/arch/arc/include/param.h:1.28 src/sys/arch/arc/include/param.h:1.29 --- src/sys/arch/arc/include/param.h:1.28 Sun Mar 6 20:34:57 2011 +++ src/sys/arch/arc/include/param.h Fri Mar 18 16:17:22 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: param.h,v 1.28 2011/03/06 20:34:57 he Exp $ */ +/* $NetBSD: param.h,v 1.29 2011/03/18 16:17:22 tsutsui Exp $ */ /* $OpenBSD: param.h,v 1.9 1997/04/30 09:54:15 niklas Exp $ */ /* @@ -44,6 +44,9 @@ /* * Machine-dependent constants (VM, etc) common across MIPS cpus */ +#define _MACHINE arc +#define MACHINE arc + #include mips/mips_param.h /* @@ -53,13 +56,6 @@ * Deskstation Tyne * Etc */ -#define _MACHINE_ARCH mipsel -#define MACHINE_ARCH mipsel -#define _MACHINE arc -#ifdef _KERNEL -#define MACHINE arc -#endif - #define KERNBASE 0x8000 /* start of kernel virtual */ #define BTOPKERNBASE ((u_long)KERNBASE PGSHIFT)