callvec.c revision 1.13
11.13Ssimonb/*	$NetBSD: callvec.c,v 1.13 1999/11/27 06:44:00 simonb Exp $	*/
21.4Scgd
31.1Sderaadt/*-
41.2Sglass * Copyright (c) 1992, 1993
51.2Sglass *	The Regents of the University of California.  All rights reserved.
61.1Sderaadt *
71.1Sderaadt * This code is derived from software contributed to Berkeley by
81.1Sderaadt * Ralph Campbell.
91.1Sderaadt *
101.1Sderaadt * Redistribution and use in source and binary forms, with or without
111.1Sderaadt * modification, are permitted provided that the following conditions
121.1Sderaadt * are met:
131.1Sderaadt * 1. Redistributions of source code must retain the above copyright
141.1Sderaadt *    notice, this list of conditions and the following disclaimer.
151.1Sderaadt * 2. Redistributions in binary form must reproduce the above copyright
161.1Sderaadt *    notice, this list of conditions and the following disclaimer in the
171.1Sderaadt *    documentation and/or other materials provided with the distribution.
181.1Sderaadt * 3. All advertising materials mentioning features or use of this software
191.1Sderaadt *    must display the following acknowledgement:
201.1Sderaadt *	This product includes software developed by the University of
211.1Sderaadt *	California, Berkeley and its contributors.
221.1Sderaadt * 4. Neither the name of the University nor the names of its contributors
231.1Sderaadt *    may be used to endorse or promote products derived from this software
241.1Sderaadt *    without specific prior written permission.
251.1Sderaadt *
261.1Sderaadt * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
271.1Sderaadt * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
281.1Sderaadt * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
291.1Sderaadt * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
301.1Sderaadt * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
311.1Sderaadt * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
321.1Sderaadt * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
331.1Sderaadt * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
341.1Sderaadt * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
351.1Sderaadt * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
361.1Sderaadt * SUCH DAMAGE.
371.1Sderaadt *
381.4Scgd *	@(#)callvec.c	8.1 (Berkeley) 6/10/93
391.1Sderaadt */
401.1Sderaadt
411.10Ssimonb#include <machine/dec_prom.h>
421.1Sderaadt
431.1Sderaadtconst struct callback callvec = {
441.1Sderaadt	(void *(*) __P((void *s1, void *s2, int n)))0,
451.1Sderaadt	(void *(*) __P((void *s1, int c, int n)))0,
461.1Sderaadt	(char *(*) __P((char *s1, char *s2)))DEC_PROM_STRCAT,
471.1Sderaadt	(int (*) __P((char *s1, char *s2)))DEC_PROM_STRCMP,
481.1Sderaadt	(char *(*) __P((char *s1, char *s2)))DEC_PROM_STRCPY,
491.1Sderaadt	(int (*) __P((char *s1)))DEC_PROM_STRLEN,
501.1Sderaadt	(char *(*) __P((char *s1, char *s2, int n)))0,
511.1Sderaadt	(char *(*) __P((char *s1, char *s2, int n)))0,
521.1Sderaadt	(int (*) __P((char *s1, char *s2, int n)))0,
531.1Sderaadt	(int (*) __P((void)))DEC_PROM_GETCHAR,
541.1Sderaadt	(char *(*) __P((char *s)))DEC_PROM_GETS,
551.1Sderaadt	(int (*) __P((char *s)))DEC_PROM_PUTS,
561.1Sderaadt	(int (*) __P((char *fmt, ...)))DEC_PROM_PRINTF,
571.1Sderaadt	(int (*) __P((char *s, char *fmt, ...)))0,
581.1Sderaadt	(int (*) __P((void)))0,
591.1Sderaadt	(long (*) __P((char *s, char **endptr, int base)))0,
601.1Sderaadt	(psig_t (*) __P((int sig, psig_t func)))0,
611.1Sderaadt	(int (*) __P((int sig)))0,
621.1Sderaadt	(long (*) __P((long *tod)))0,
631.1Sderaadt	(int (*) __P((jmp_buf env)))0,
641.1Sderaadt	(void (*) __P((jmp_buf env, int value)))0,
651.6Sjonathan	(int (*) __P(( char *fname)))0,
661.1Sderaadt	(int (*) __P((int b, void *buffer, int n)))0,
671.1Sderaadt	(int (*) __P((int b, void *buffer, int n)))0,
681.1Sderaadt	(int (*) __P((char *name, char *value)))DEC_PROM_SETENV2,
691.1Sderaadt	(char *(*) __P((char *name)))DEC_PROM_GETENV2,
701.1Sderaadt	(int (*) __P((char *name)))DEC_PROM_UNSETENV,
711.1Sderaadt	(u_long (*) __P((int sn)))0,
721.1Sderaadt	(void (*) __P((void)))0,
731.1Sderaadt	(void (*) __P((int delay)))0,
741.1Sderaadt	(void (*) __P((int value)))0,
751.11Ssimonb	(void (*) __P((char *addr, int len)))DEC_PROM_CLEARCACHE,
761.1Sderaadt	(int (*) __P((void)))0,
771.1Sderaadt	(int (*) __P((memmap *map)))0,
781.1Sderaadt	(int (*) __P((int sn)))0,
791.1Sderaadt	(int (*) __P((int sn)))0,
801.1Sderaadt	(int (*) __P((int sn)))0,
811.1Sderaadt	(void *)0,
821.1Sderaadt	(int (*) __P((void)))0,
831.1Sderaadt	(void (*) __P((int *v, int cnt)))0,
841.1Sderaadt	(void (*) __P((void)))0,
851.7Sjonathan	(tcinfo *(*) __P((void)))0,	/* XXX what are the args for this?*/
861.1Sderaadt	(int (*) __P((char *cmd)))0,
871.1Sderaadt	(void (*) __P((char cmd)))0,
881.1Sderaadt};
891.13Ssimonb
901.13Ssimonbconst   struct callback *callv = &callvec;
91