Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/tc Add a temporary kludge to recognize PMAGD (HX+) a...
details: https://anonhg.NetBSD.org/src/rev/820989d4ba02
branches: trunk
changeset: 477666:820989d4ba02
user: nisimura <nisimura%NetBSD.org@localhost>
date: Wed Oct 27 04:32:35 1999 +0000
description:
Add a temporary kludge to recognize PMAGD (HX+) as 'sfb' hoping 8bpp
configration of it is compatible enough with PMAGB-BA.
diffstat:
sys/dev/tc/sfb.c | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diffs (34 lines):
diff -r fae5d5126373 -r 820989d4ba02 sys/dev/tc/sfb.c
--- a/sys/dev/tc/sfb.c Wed Oct 27 03:28:54 1999 +0000
+++ b/sys/dev/tc/sfb.c Wed Oct 27 04:32:35 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sfb.c,v 1.23 1999/10/26 10:57:04 nisimura Exp $ */
+/* $NetBSD: sfb.c,v 1.24 1999/10/27 04:32:35 nisimura Exp $ */
/*
* Copyright (c) 1998, 1999 Tohru Nishimura. All rights reserved.
@@ -32,7 +32,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: sfb.c,v 1.23 1999/10/26 10:57:04 nisimura Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sfb.c,v 1.24 1999/10/27 04:32:35 nisimura Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -277,9 +277,14 @@
{
struct tc_attach_args *ta = aux;
+#if 1
+ if (strncmp("PMAGB-BA", ta->ta_modname, TC_ROM_LLEN) != 0
+ && strncmp("PMAGD", ta->ta_modname, 5))
+ return (0);
+#else
if (strncmp("PMAGB-BA", ta->ta_modname, TC_ROM_LLEN) != 0)
return (0);
-
+#endif
return (1);
}
Home |
Main Index |
Thread Index |
Old Index