xref: /openbsd-src/usr.sbin/eeprom/defs.h (revision bf28f9032836e9b28dfd3d393f89dee27c566d23)
1*bf28f903Sjsg /*	$OpenBSD: defs.h,v 1.8 2024/05/19 00:03:10 jsg Exp $	*/
2608f9123Sniklas /*	$NetBSD: defs.h,v 1.2 1996/02/28 01:13:20 thorpej Exp $	*/
3df930be7Sderaadt 
4608f9123Sniklas /*-
5608f9123Sniklas  * Copyright (c) 1996 The NetBSD Foundation, Inc.
6df930be7Sderaadt  * All rights reserved.
7df930be7Sderaadt  *
8608f9123Sniklas  * This code is derived from software contributed to The NetBSD Foundation
9608f9123Sniklas  * by Jason R. Thorpe.
10608f9123Sniklas  *
11df930be7Sderaadt  * Redistribution and use in source and binary forms, with or without
12df930be7Sderaadt  * modification, are permitted provided that the following conditions
13df930be7Sderaadt  * are met:
14df930be7Sderaadt  * 1. Redistributions of source code must retain the above copyright
15df930be7Sderaadt  *    notice, this list of conditions and the following disclaimer.
16df930be7Sderaadt  * 2. Redistributions in binary form must reproduce the above copyright
17df930be7Sderaadt  *    notice, this list of conditions and the following disclaimer in the
18df930be7Sderaadt  *    documentation and/or other materials provided with the distribution.
19df930be7Sderaadt  *
20608f9123Sniklas  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
21608f9123Sniklas  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
22608f9123Sniklas  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23608f9123Sniklas  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE
24608f9123Sniklas  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25608f9123Sniklas  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26608f9123Sniklas  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27608f9123Sniklas  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28608f9123Sniklas  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29608f9123Sniklas  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30608f9123Sniklas  * POSSIBILITY OF SUCH DAMAGE.
31df930be7Sderaadt  */
32df930be7Sderaadt 
33df930be7Sderaadt #undef BUFSIZE
34df930be7Sderaadt #define BUFSIZE		1024
35df930be7Sderaadt 
36df930be7Sderaadt /*
37df930be7Sderaadt  * This is an entry in a table which describes a set of `exceptions'.
38df930be7Sderaadt  * In other words, these are Openprom fields that we either can't
39df930be7Sderaadt  * `just print' or don't know how to deal with.
40df930be7Sderaadt  */
41df930be7Sderaadt struct	extabent {
42df930be7Sderaadt 	char	*ex_keyword;		/* keyword for this entry */
43f3c3a9c6Smillert 	void	(*ex_handler)(struct extabent *, struct opiocdesc *, char *);
44df930be7Sderaadt 					/* handler function for this entry */
45df930be7Sderaadt };
46df930be7Sderaadt 
47fa530530Skettenis /* OpenPROM handlers. */
48c72b5b24Smillert char	*op_handler(char *, char *);
49c72b5b24Smillert void	 op_dump(void);
50ab95fc2fSfgsch void	 op_tree(void);
51