callvec.c revision 1.14
11.14Sagc/*	$NetBSD: callvec.c,v 1.14 2003/08/07 16:29:15 agc 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.14Sagc * 3. Neither the name of the University nor the names of its contributors
191.1Sderaadt *    may be used to endorse or promote products derived from this software
201.1Sderaadt *    without specific prior written permission.
211.1Sderaadt *
221.1Sderaadt * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
231.1Sderaadt * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
241.1Sderaadt * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
251.1Sderaadt * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
261.1Sderaadt * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
271.1Sderaadt * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
281.1Sderaadt * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
291.1Sderaadt * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
301.1Sderaadt * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
311.1Sderaadt * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
321.1Sderaadt * SUCH DAMAGE.
331.1Sderaadt *
341.4Scgd *	@(#)callvec.c	8.1 (Berkeley) 6/10/93
351.1Sderaadt */
361.1Sderaadt
371.10Ssimonb#include <machine/dec_prom.h>
381.1Sderaadt
391.1Sderaadtconst struct callback callvec = {
401.1Sderaadt	(void *(*) __P((void *s1, void *s2, int n)))0,
411.1Sderaadt	(void *(*) __P((void *s1, int c, int n)))0,
421.1Sderaadt	(char *(*) __P((char *s1, char *s2)))DEC_PROM_STRCAT,
431.1Sderaadt	(int (*) __P((char *s1, char *s2)))DEC_PROM_STRCMP,
441.1Sderaadt	(char *(*) __P((char *s1, char *s2)))DEC_PROM_STRCPY,
451.1Sderaadt	(int (*) __P((char *s1)))DEC_PROM_STRLEN,
461.1Sderaadt	(char *(*) __P((char *s1, char *s2, int n)))0,
471.1Sderaadt	(char *(*) __P((char *s1, char *s2, int n)))0,
481.1Sderaadt	(int (*) __P((char *s1, char *s2, int n)))0,
491.1Sderaadt	(int (*) __P((void)))DEC_PROM_GETCHAR,
501.1Sderaadt	(char *(*) __P((char *s)))DEC_PROM_GETS,
511.1Sderaadt	(int (*) __P((char *s)))DEC_PROM_PUTS,
521.1Sderaadt	(int (*) __P((char *fmt, ...)))DEC_PROM_PRINTF,
531.1Sderaadt	(int (*) __P((char *s, char *fmt, ...)))0,
541.1Sderaadt	(int (*) __P((void)))0,
551.1Sderaadt	(long (*) __P((char *s, char **endptr, int base)))0,
561.1Sderaadt	(psig_t (*) __P((int sig, psig_t func)))0,
571.1Sderaadt	(int (*) __P((int sig)))0,
581.1Sderaadt	(long (*) __P((long *tod)))0,
591.1Sderaadt	(int (*) __P((jmp_buf env)))0,
601.1Sderaadt	(void (*) __P((jmp_buf env, int value)))0,
611.6Sjonathan	(int (*) __P(( char *fname)))0,
621.1Sderaadt	(int (*) __P((int b, void *buffer, int n)))0,
631.1Sderaadt	(int (*) __P((int b, void *buffer, int n)))0,
641.1Sderaadt	(int (*) __P((char *name, char *value)))DEC_PROM_SETENV2,
651.1Sderaadt	(char *(*) __P((char *name)))DEC_PROM_GETENV2,
661.1Sderaadt	(int (*) __P((char *name)))DEC_PROM_UNSETENV,
671.1Sderaadt	(u_long (*) __P((int sn)))0,
681.1Sderaadt	(void (*) __P((void)))0,
691.1Sderaadt	(void (*) __P((int delay)))0,
701.1Sderaadt	(void (*) __P((int value)))0,
711.11Ssimonb	(void (*) __P((char *addr, int len)))DEC_PROM_CLEARCACHE,
721.1Sderaadt	(int (*) __P((void)))0,
731.1Sderaadt	(int (*) __P((memmap *map)))0,
741.1Sderaadt	(int (*) __P((int sn)))0,
751.1Sderaadt	(int (*) __P((int sn)))0,
761.1Sderaadt	(int (*) __P((int sn)))0,
771.1Sderaadt	(void *)0,
781.1Sderaadt	(int (*) __P((void)))0,
791.1Sderaadt	(void (*) __P((int *v, int cnt)))0,
801.1Sderaadt	(void (*) __P((void)))0,
811.7Sjonathan	(tcinfo *(*) __P((void)))0,	/* XXX what are the args for this?*/
821.1Sderaadt	(int (*) __P((char *cmd)))0,
831.1Sderaadt	(void (*) __P((char cmd)))0,
841.1Sderaadt};
851.13Ssimonb
861.13Ssimonbconst   struct callback *callv = &callvec;
87