Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/luna68k/dev Match psgpam(4) only on LUNA-I. LUNA-I...
details: https://anonhg.NetBSD.org/src/rev/2bc5642eed48
branches: trunk
changeset: 366733:2bc5642eed48
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Sat Jun 11 14:45:37 2022 +0000
description:
Match psgpam(4) only on LUNA-I. LUNA-II doesn't have YM2149 at XP.
diffstat:
sys/arch/luna68k/dev/psgpam.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (29 lines):
diff -r 77fde0f6294f -r 2bc5642eed48 sys/arch/luna68k/dev/psgpam.c
--- a/sys/arch/luna68k/dev/psgpam.c Sat Jun 11 14:17:33 2022 +0000
+++ b/sys/arch/luna68k/dev/psgpam.c Sat Jun 11 14:45:37 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: psgpam.c,v 1.1 2022/06/10 21:42:23 tsutsui Exp $ */
+/* $NetBSD: psgpam.c,v 1.2 2022/06/11 14:45:37 tsutsui Exp $ */
/*
* Copyright (c) 2018 Yosuke Sugahara. All rights reserved.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: psgpam.c,v 1.1 2022/06/10 21:42:23 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: psgpam.c,v 1.2 2022/06/11 14:45:37 tsutsui Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -196,6 +196,10 @@
if (psgpam_matched)
return 0;
+ /* Only the first generation LUNA has YM2149 at XP */
+ if (machtype != LUNA_I)
+ return 0;
+
if (strcmp(xa->xa_name, psgpam_cd.cd_name))
return 0;
Home |
Main Index |
Thread Index |
Old Index