1*fb32aadbSdholland /* $NetBSD: callvec.c,v 1.19 2016/06/11 19:11:20 dholland Exp $ */ 242fdd5dfSsimonb 342fdd5dfSsimonb /*- 442fdd5dfSsimonb * Copyright (c) 1992, 1993 542fdd5dfSsimonb * The Regents of the University of California. All rights reserved. 642fdd5dfSsimonb * 742fdd5dfSsimonb * This code is derived from software contributed to Berkeley by 842fdd5dfSsimonb * Ralph Campbell. 942fdd5dfSsimonb * 1042fdd5dfSsimonb * Redistribution and use in source and binary forms, with or without 1142fdd5dfSsimonb * modification, are permitted provided that the following conditions 1242fdd5dfSsimonb * are met: 1342fdd5dfSsimonb * 1. Redistributions of source code must retain the above copyright 1442fdd5dfSsimonb * notice, this list of conditions and the following disclaimer. 1542fdd5dfSsimonb * 2. Redistributions in binary form must reproduce the above copyright 1642fdd5dfSsimonb * notice, this list of conditions and the following disclaimer in the 1742fdd5dfSsimonb * documentation and/or other materials provided with the distribution. 18aad01611Sagc * 3. Neither the name of the University nor the names of its contributors 1942fdd5dfSsimonb * may be used to endorse or promote products derived from this software 2042fdd5dfSsimonb * without specific prior written permission. 2142fdd5dfSsimonb * 2242fdd5dfSsimonb * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 2342fdd5dfSsimonb * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2442fdd5dfSsimonb * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2542fdd5dfSsimonb * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2642fdd5dfSsimonb * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2742fdd5dfSsimonb * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2842fdd5dfSsimonb * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2942fdd5dfSsimonb * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 3042fdd5dfSsimonb * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 3142fdd5dfSsimonb * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3242fdd5dfSsimonb * SUCH DAMAGE. 3342fdd5dfSsimonb * 3442fdd5dfSsimonb * @(#)callvec.c 8.1 (Berkeley) 6/10/93 3542fdd5dfSsimonb */ 3642fdd5dfSsimonb 3742fdd5dfSsimonb #include <machine/dec_prom.h> 3842fdd5dfSsimonb 39290a34a0Smatt #ifndef _LP64 40290a34a0Smatt const 41290a34a0Smatt #endif 42290a34a0Smatt struct callback callvec = { 43290a34a0Smatt ._strcat = (void *)DEC_PROM_STRCAT, 44290a34a0Smatt ._strcmp = (void *)DEC_PROM_STRCMP, 45290a34a0Smatt ._strcpy = (void *)DEC_PROM_STRCPY, 46290a34a0Smatt ._strlen = (void *)DEC_PROM_STRLEN, 47290a34a0Smatt ._getchar = (void *)DEC_PROM_GETCHAR, 48*fb32aadbSdholland ._unsafe_gets = (void *)DEC_PROM_GETS, 49290a34a0Smatt ._puts = (void *)DEC_PROM_PUTS, 50290a34a0Smatt ._printf = (void *)DEC_PROM_PRINTF, 51290a34a0Smatt ._setenv = (void *)DEC_PROM_SETENV2, 52290a34a0Smatt ._getenv = (void *)DEC_PROM_GETENV2, 53290a34a0Smatt ._unsetenv = (void *)DEC_PROM_UNSETENV, 54290a34a0Smatt ._clear_cache = (void *)DEC_PROM_CLEARCACHE, 5542fdd5dfSsimonb }; 564bb143c0Ssimonb 574bb143c0Ssimonb const struct callback *callv = &callvec; 58