1*d6aaec91Ssevan /* $NetBSD: methods.h,v 1.5 2018/01/23 21:06:25 sevan Exp $ */ 212769637Sminoura 312769637Sminoura /*- 412769637Sminoura * Copyright (c) 1999 The NetBSD Foundation, Inc. 512769637Sminoura * All rights reserved. 612769637Sminoura * 712769637Sminoura * This code is derived from software contributed to The NetBSD Foundation 812769637Sminoura * by Minoura Makoto. 912769637Sminoura * 1012769637Sminoura * Redistribution and use in source and binary forms, with or without 1112769637Sminoura * modification, are permitted provided that the following conditions 1212769637Sminoura * are met: 1312769637Sminoura * 1. Redistributions of source code must retain the above copyright 1412769637Sminoura * notice, this list of conditions and the following disclaimer. 1512769637Sminoura * 2. Redistributions in binary form must reproduce the above copyright 1612769637Sminoura * notice, this list of conditions and the following disclaimer in the 1712769637Sminoura * documentation and/or other materials provided with the distribution. 1812769637Sminoura * 1912769637Sminoura * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 2012769637Sminoura * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 2112769637Sminoura * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 2212769637Sminoura * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 2312769637Sminoura * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 2412769637Sminoura * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 2512769637Sminoura * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 2612769637Sminoura * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 2712769637Sminoura * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 2812769637Sminoura * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 2912769637Sminoura * POSSIBILITY OF SUCH DAMAGE. 3012769637Sminoura */ 3112769637Sminoura 3212769637Sminoura 33*d6aaec91Ssevan int atoi_(const char**); 3412769637Sminoura 35*d6aaec91Ssevan int fill_uchar(struct property*); 36*d6aaec91Ssevan int fill_ushort(struct property*); 37*d6aaec91Ssevan int fill_ulong(struct property*); 3812769637Sminoura 39*d6aaec91Ssevan int flush_uchar(struct property*); 40*d6aaec91Ssevan int flush_ushort(struct property*); 41*d6aaec91Ssevan int flush_ulong(struct property*); 42*d6aaec91Ssevan int flush_dummy(struct property*); 4312769637Sminoura 44*d6aaec91Ssevan int parse_dummy(struct property*, const char*); 45*d6aaec91Ssevan int parse_uchar(struct property*, const char*); 46*d6aaec91Ssevan int parse_ushort(struct property*, const char*); 47*d6aaec91Ssevan int parse_ulong(struct property*, const char*); 48*d6aaec91Ssevan int parse_byte(struct property*, const char*); 49*d6aaec91Ssevan int parse_time(struct property*, const char*); 50*d6aaec91Ssevan int parse_bootdev(struct property*, const char*); 51*d6aaec91Ssevan int parse_serial(struct property*, const char*); 52*d6aaec91Ssevan int parse_srammode(struct property*, const char*); 5312769637Sminoura 54*d6aaec91Ssevan int print_uchar(struct property*, char*); 55*d6aaec91Ssevan int print_ucharh(struct property*, char*); 56*d6aaec91Ssevan int print_ushorth(struct property*, char*); 57*d6aaec91Ssevan int print_ulong(struct property*, char*); 58*d6aaec91Ssevan int print_ulongh(struct property*, char*); 59*d6aaec91Ssevan int print_magic(struct property*, char*); 60*d6aaec91Ssevan int print_timesec(struct property*, char*); 61*d6aaec91Ssevan int print_bootdev(struct property*, char*); 62*d6aaec91Ssevan int print_serial(struct property*, char*); 63*d6aaec91Ssevan int print_srammode(struct property*, char*); 64