NetBSD Problem Report #1122

From gnats  Wed Jun  7 12:10:12 1995
Received: from pain.lcs.mit.edu (pain.lcs.mit.edu [128.52.46.239]) by sun-lamp.cs.berkeley.edu (8.6.10/8.6.10) with ESMTP id MAA10831 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Wed, 7 Jun 1995 12:10:11 -0700
Message-Id: <199506071911.PAA17084@geneva.ai.mit.edu>
Date: Wed, 7 Jun 1995 15:11:12 -0400
From: boogles@martigny.ai.mit.edu
Reply-To: boogles@martigny.ai.mit.edu
To: gnats-bugs@NetBSD.ORG
Subject: sys/arch/hp300/stand/cons.c doesn't compile...
X-Send-Pr-Version: 3.2

>Number:         1122
>Category:       port-hp300
>Synopsis:       sys/arch/hp300/stand/cons.c doesn't compile...
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnats-admin
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jun 07 12:20:03 +0000 1995
>Closed-Date:    Fri Aug 04 07:51:00 +0000 1995
>Last-Modified:  Fri Aug 04 07:51:57 +0000 1995
>Originator:     Brian K Zuzga
>Release:        NetBSD-current as sup'ed 6/7/95
>Organization:
MIT AI
>Environment:

System: NetBSD geneva.ai.mit.edu 1.0A NetBSD 1.0A (DUALITY) #0: Sat Apr 1 14:12:40 EST 1995 mycroft@duality.gnu.ai.mit.edu:/build/src/sys/arch/hp300/compile/DUALITY hp300


>Description:
   The usage of the consdev struct used in cngetc() and cnputc() don't
match what is in /usr/include/dev/cons.h.  Just looks like the hp300
port lags a little behind the times.  I get a "too few arguments to
function" error.

>How-To-Repeat:

do a make in the sys/arch/hp300/stand dir.

>Fix:

Well, I don't know what the fix is, but I found the problem.  I don't
know what these new arguments are, so I guess I'm no help. :-)

/* From sys/arch/hp300/stand/cons.c: */

cngetc()
{
	if (cn_tab)
		return((*cn_tab->cn_getc)());
	return(0);
}

/* From /usr/include/dev/cons.h: */

struct consdev {
	void	(*cn_probe)	/* probe hardware and fill in consdev info */
		    __P((struct consdev *));
	void	(*cn_init)	/* turn on as console */
		    __P((struct consdev *));
	int	(*cn_getc)	/* kernel getchar interface */
		    __P((dev_t));
	void	(*cn_putc)	/* kernel putchar interface */
		    __P((dev_t, int));
	void	(*cn_pollc)	/* turn on and off polling */
		    __P((dev_t, int));
	dev_t	cn_dev;		/* major/minor of device */
	int	cn_pri;		/* pecking order; the higher the better */
};
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: thorpej 
State-Changed-When: Fri Aug 4 00:51:00 PDT 1995 
State-Changed-Why:  
Fixed the hp300 standalone code. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.